package { vixie-cron: ensure => installed, }
cron { puppet:
command => "/usr/sbin/puppetd --onetime --no-daemonize --verbose
--server puppet.example.com",
user => root,
hour => '*',
minute => '*/15',
require => Package[vixie-cron],
}
command => "/usr/sbin/puppetd --onetime --no-daemonize --verbose
--server puppet.example.com",
user => root,
hour => '*',
minute => '*/15',
require => Package[vixie-cron],
}
But i 'm getting the error that
[root@client ~]# /usr/sbin/puppetd --onetime --no-daemonize --verbose
--server puppet.example.com
info: Caching catalog for client.example.com
err: Failed to apply catalog: Could not find a default provider for cron
info: Caching catalog for client.example.com
err: Failed to apply catalog: Could not find a default provider for cron
But, If I already have the vixie-cron package installed , then it will
work.
[root@client ~]# /usr/sbin/puppetd --onetime --no-daemonize --verbose
--server puppet.example.com
info: Caching catalog for client.example.com
info: Applying configuration version '1349664487'
notice: /Stage[main]/Base/Package[vixie-cron]/ensure: created
notice: Finished catalog run in 4.37 seconds
info: Caching catalog for client.example.com
info: Applying configuration version '1349664487'
notice: /Stage[main]/Base/Package[vixie-cron]/ensure: created
notice: Finished catalog run in 4.37 seconds
That is the 'require => Package[vixie-cron],' thing is not working as
expected.
Any clues ?
--
Regards
Basil
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.