[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 writes: > > >> I'm running out of ideas, I do this

[Puppet Users] Re: cron, package and provider

2009-07-22 Thread seph
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 writes: > I'm running out of ideas, I do this same thing, on the same OS and >

[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 writes: > > >> IDK if you saw my previous e-mail, but did you get

[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 writes: > IDK if you saw my previous e-mail, but did you get this from > ftp.ubuntu.com or rubyge

[Puppet Users] Re: cron, package and provider

2009-07-22 Thread Joe McDonagh
seph wrote: > Joe McDonagh 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 ma

[Puppet Users] Re: cron, package and provider

2009-07-22 Thread seph
Joe McDonagh 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 manifest? This is exactly

[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 writes:

[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 writes: > seph wrote: >> Still fa

[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"] ]

[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: > 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 pa

[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 Teyo Tyree
Delivered from mobile device. On Jul 22, 2009, at 8:40 AM, Nigel Kersten wrote: > > On Wed, Jul 22, 2009 at 8:35 AM, seph 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

[Puppet Users] Re: cron, package and provider

2009-07-22 Thread Nigel Kersten
On Wed, Jul 22, 2009 at 8:35 AM, seph 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 of provider befor