cron module directory structure
1 2 3 4 5 6 7 |
cron/ |-- files | |-- everybody.cron | `-- restricted.cron `-- manifests |-- init.pp `-- restricted.pp |
cron/mainfests/init.pp
1 2 3 4 5 6 7 8 |
{ file {"everybody.cron": mode => 755, name => "/etc/cron.hourly/everybody.cron", owner => "root", group => "root", source => "puppet:///cron/everybody.cron"; } } |
cron/manifests/restricted.pp
1 2 3 4 5 6 7 8 |
inherits cron { file {"restricted.cron": mode => 755, name => "/etc/cron.hourly/restricted.cron", owner => "root", group => "root", source => "puppet:///cron/restricted.cron"; } } |
nodes.pp
1 2 3 4 5 6 7 |
node "client.example.com" inherits basenode { include cron } node "secure.example.com" inherits basenode { include cron::restricted } |
