Still fails for me. Perhaps it changed in some puppet version?
r...@puppet-test:~# puppet -V
0.24.8
r...@puppet-test:~# cat /var/tmp/puppet-cron.pp
package{ "cron":
ensure => "latest",
}
Cron {
require => [ Package["cron"], Service["cron"] ],
}
cron {"puppet cron test":
command => "echo test",
hour => 0,
user => "root",
}
r...@puppet-test:~# puppet /var/tmp/puppet-cron.pp
sh: Syntax error: Bad fd number
sh: Syntax error: Bad fd number
err: Could not create puppet cron test: Could not find a default
provider for cron
Could not find a default provider for cron
seph
Joe McDonagh <[email protected]> writes:
> You need to require both the package and service in all your cron
> resources. So, best thing to do is set it in your site.pp like Cron {
> require => [ Package["cron"], Service["cron"] ] }.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---