I'm trying to create a simple module which sets settings based on hiera data.
I have the file modules/settings/manifests/init.pp
I've tried:
class settings {
ini_setting { 'set check-in frequency':
ensure => present,
path => '/etc/puppetlabs/puppet/puppet.conf',
section => 'agent',
setting => 'runinterval',
value => '4h',
}
}
I also tried putting that code into a config.pp
and then calling in init.pp
:
class settings {
contain ntp::config
Class['::ntp::config']
}
How can I have the puppet manifest in my module run on each check-in for nodes with it installed?