Hello,
I'm stuck at this point while adding a case statement regex for hostname's
macthing...
Here is my sample code I'm working on...
class clearlogs::components::idm {
case $::hostname {
*'idm-wc-(\d+)p'*: {
file { "/etc/cron.d/idm.sh":
ensure=> present,
mode => '0755',
owner => 'root',
group => 'root',
content =>
template('clearlogs/idm.erb'),
}
cron { 'clearinglogs':
command => 'sh
/etc/cron.d/idm.sh',
user => 'root',
weekday => [Monday, Wednesday,
Saturday],
hour => '01',
minute=> '00',
require =>
File['/etc/cron.d/idm.sh'],
}
}
}
}
This code simply does copying of script and running cron job for my
hostnames say idm-wc-1p, idm-wc-2p, idm-wc-3p, idm-wc-4p, idm-wc-5p.
So please correct me where i'm doing wrong. It's not working for meAnd
I'm using puppet open source(3.7.8) without future parser.
Thanks for the help!
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/d6245b6e-85a4-4f80-809c-70d6013e93c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.