refactor: reconfigure cobbler to module style
- split params into class - split class into individual functions
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
# profiles::cobbler::init
|
||||
class profiles::cobbler::init (
|
||||
) {
|
||||
# wait for enc_role to be populated, needed for hieradata to match
|
||||
if $facts['enc_role'] == 'roles::infra::cobbler::server' {
|
||||
include profiles::cobbler::config
|
||||
include profiles::cobbler::install
|
||||
include profiles::cobbler::ipxebins
|
||||
include profiles::cobbler::selinux
|
||||
include profiles::cobbler::service
|
||||
|
||||
Class['profiles::cobbler::install']
|
||||
-> Class['profiles::cobbler::config']
|
||||
-> Class['profiles::cobbler::ipxebins']
|
||||
-> Class['profiles::cobbler::selinux']
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user