refactor: reconfigure cobbler to module style

- split params into class
- split class into individual functions
This commit is contained in:
2024-05-07 22:37:16 +10:00
parent 7286dfe574
commit 72077d64a2
11 changed files with 184 additions and 122 deletions
@@ -0,0 +1,17 @@
# profiles::cobbler::service
class profiles::cobbler::service inherits profiles::cobbler::params {
# ensure cobblerd is running
service {'cobblerd':
ensure => 'running',
enable => true,
require => File['/etc/cobbler/settings.yaml'],
}
# ensure httpd is running
service {'httpd':
ensure => 'running',
enable => true,
require => File['/etc/httpd/conf.d/ssl.conf'],
}
}