promote develop to master #6

Merged
unkinben merged 449 commits from develop into master 2024-06-01 14:48:48 +10:00
2 changed files with 29 additions and 0 deletions
Showing only changes of commit 8d80fa3c51 - Show all commits

View File

@ -29,6 +29,7 @@ class profiles::base (
include profiles::base::hosts include profiles::base::hosts
include profiles::accounts::sysadmin include profiles::accounts::sysadmin
include profiles::ntp::client include profiles::ntp::client
include profiles::cloudinit::init
# configure dns records for client # configure dns records for client
profiles::dns::client {"${facts['networking']['fqdn']}-default":} profiles::dns::client {"${facts['networking']['fqdn']}-default":}

View File

@ -0,0 +1,28 @@
# profiles::cloudinit::init
class profiles::cloudinit::init (
Boolean $enabled = false,
String $package = 'cloud-init',
String $service = 'cloud-init',
){
if $enabled {
package { $package:
ensure => installed,
}
service { $service:
ensure => running,
enable => true,
require => Package[$package],
}
} else {
service { $service:
ensure => stopped,
enable => false,
}
package { $package:
ensure => absent,
}
}
}