[Puppet Users] Re: cron, package and provider

2009-07-22 Thread Nigel Kersten
On Wed, Jul 22, 2009 at 8:35 AM, sephs...@directionless.org wrote: I'd like to use puppet to manage some cron jobs. Unfortunately, I do not have cron installed on my servers. So, I'd like to use puppet to install cron. Unfortunately, this doesn't seem to work. Puppet complains about the lack

[Puppet Users] Re: cron, package and provider

2009-07-22 Thread Teyo Tyree
Delivered from mobile device. On Jul 22, 2009, at 8:40 AM, Nigel Kersten nig...@google.com wrote: On Wed, Jul 22, 2009 at 8:35 AM, sephs...@directionless.org wrote: I'd like to use puppet to manage some cron jobs. Unfortunately, I do not have cron installed on my servers. So, I'd like

[Puppet Users] Re: cron, package and provider

2009-07-22 Thread seph
Sorry, package[anacron] is a bad example, since that package doesn't actually provide cron. But it behaves identically with package[cron]. The issue is as Teyo describes -- the failure occurs before the package resource is ever executed. I get the same error if the package doesn't exist, or

[Puppet Users] Re: cron, package and provider

2009-07-22 Thread Joe McDonagh
seph wrote: Sorry, package[anacron] is a bad example, since that package doesn't actually provide cron. But it behaves identically with package[cron]. The issue is as Teyo describes -- the failure occurs before the package resource is ever executed. I get the same error if the package

[Puppet Users] Re: cron, package and provider

2009-07-22 Thread seph
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:

[Puppet Users] Re: cron, package and provider

2009-07-22 Thread Joe McDonagh
seph wrote: 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 Users] Re: cron, package and provider

2009-07-22 Thread seph
I'm running on ubuntu. Anyhow, I'm running puppet with only that file. Nothing more. So if it needs an explicit service definition, it should complain about it. Anyhow I tried it, same error. The cron thing fails out before it gets anywhere. seph Joe McDonagh joseph.e.mcdon...@gmail.com

[Puppet Users] Re: cron, package and provider

2009-07-22 Thread Joe McDonagh
seph wrote: I'm running on ubuntu. Anyhow, I'm running puppet with only that file. Nothing more. So if it needs an explicit service definition, it should complain about it. Anyhow I tried it, same error. The cron thing fails out before it gets anywhere. seph Joe McDonagh

[Puppet Users] Re: cron, package and provider

2009-07-22 Thread seph
Joe McDonagh joseph.e.mcdon...@gmail.com writes: I think it would be non-trivial to make the provider aware of what packages and what services it needs, which it would need to do to tell you anything more than the provider can't be found. Is the cron package installed after you run the

[Puppet Users] Re: cron, package and provider

2009-07-22 Thread Joe McDonagh
seph wrote: Joe McDonagh joseph.e.mcdon...@gmail.com writes: I think it would be non-trivial to make the provider aware of what packages and what services it needs, which it would need to do to tell you anything more than the provider can't be found. Is the cron package installed

[Puppet Users] Re: cron, package and provider

2009-07-22 Thread seph
These are the ubuntu packages. r...@puppet-test:~# dpkg -s puppet | grep Version Version: 0.24.8-1 r...@puppet-test:~# dpkg -s facter | grep Version Version: 1.5.1-0.1 seph Joe McDonagh joseph.e.mcdon...@gmail.com writes: IDK if you saw my previous e-mail, but did you get this from

[Puppet Users] Re: cron, package and provider

2009-07-22 Thread Joe McDonagh
seph wrote: These are the ubuntu packages. r...@puppet-test:~# dpkg -s puppet | grep Version Version: 0.24.8-1 r...@puppet-test:~# dpkg -s facter | grep Version Version: 1.5.1-0.1 seph Joe McDonagh joseph.e.mcdon...@gmail.com writes: IDK if you saw my previous e-mail, but

[Puppet Users] Re: cron, package and provider

2009-07-22 Thread Joe McDonagh
seph wrote: I got the same error when it was run from a puppetmaster, I switched to a simpler local example to debug it. If you don't have cron installed, does puppet error out, or install it like it ought? seph Joe McDonagh joseph.e.mcdon...@gmail.com writes: I'm running out of