refactor: reconfigure cobbler to module style
- split params into class - split class into individual functions
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
# profiles::cobbler::params
|
||||
class profiles::cobbler::params (
|
||||
Stdlib::Absolutepath $httpd_ssl_certificate = '/etc/pki/tls/vault/certificate.crt',
|
||||
Stdlib::Absolutepath $httpd_ssl_privatekey = '/etc/pki/tls/vault/private.key',
|
||||
Stdlib::Absolutepath $tftpboot_path = '/var/lib/tftpboot/boot',
|
||||
Stdlib::Fqdn $service_cname = $facts['networking']['fqdn'],
|
||||
String $default_password_crypted = 'changeme',
|
||||
String $server = $::facts['networking']['ip'],
|
||||
String $next_server = $::facts['networking']['ip'],
|
||||
Boolean $pxe_just_once = true,
|
||||
Array $packages = [
|
||||
'cobbler',
|
||||
'cobbler3.2-web',
|
||||
'httpd',
|
||||
'syslinux',
|
||||
'dnf-plugins-core',
|
||||
'debmirror',
|
||||
'pykickstart',
|
||||
'fence-agents',
|
||||
'selinux-policy-devel',
|
||||
'ipxe-bootimgs',
|
||||
]
|
||||
){
|
||||
}
|
||||
Reference in New Issue
Block a user