Basil Kurian
2012-Oct-08 09:14 UTC
[Puppet Users] require => Package[''name''] directive is not working as expected
I have this definition added in one of my class files 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], > } >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 >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 >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.
Basil Kurian
2012-Oct-08 09:15 UTC
[Puppet Users] Re: require => Package[''name''] directive is not working as expected
Correction 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 ''1349664509'' > notice: /Stage[main]/Base/Cron[puppet]/ensure: created > notice: Finished catalog run in 0.22 seconds >On 8 October 2012 14:44, Basil Kurian <basilkurian@gmail.com> wrote:> I have this definition added in one of my class files > > > 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], >> } >> > > > 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 >> > > > 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 >> > > > That is the ''require => Package[vixie-cron],'' thing is not working as > expected. > > > Any clues ? > > -- > Regards > > Basil > > > > >-- 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.
Matthew Burgess
2012-Oct-08 09:25 UTC
Re: [Puppet Users] require => Package[''name''] directive is not working as expected
On Mon, Oct 8, 2012 at 10:14 AM, Basil Kurian <basilkurian@gmail.com> wrote:> I have this definition added in one of my class files > > >> 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], >> } > > > > 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 cronI remember running into this as well. http://projects.puppetlabs.com/issues/11362 looks relevant but links to a closed bug at http://projects.puppetlabs.com/issues/6907. I didn''t bother looking into it much beyond that; I just made sure that when our RHEL boxes were kickstarted, that vixie-cron was installed prior to the puppet client''s first run. By the looks of #6907 though, it looks like this is expected to work, so it might be worth opening a ticket to have that investigated. I''ll see if I can reproduce on a VM here today. Thanks, Matt. -- 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.
Basil Kurian
2012-Oct-08 09:40 UTC
Re: [Puppet Users] require => Package[''name''] directive is not working as expected
Thanks Matt. From http://projects.puppetlabs.com/issues/11362> This was fixed in #6907 <http://projects.puppetlabs.com/issues/6907> and > released in puppet 2.7.8 >Now it is clear. The client that I''m using is a lower version one. [root@client ~]# rpm -qa | grep puppet puppet-2.6.17-2.el5 On 8 October 2012 14:55, Matthew Burgess <matthew.2.burgess@googlemail.com>wrote:> On Mon, Oct 8, 2012 at 10:14 AM, Basil Kurian <basilkurian@gmail.com> > wrote: > > I have this definition added in one of my class files > > > > > >> 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], > >> } > > > > > > > > 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 > > I remember running into this as well. > http://projects.puppetlabs.com/issues/11362 looks relevant but links > to a closed bug at http://projects.puppetlabs.com/issues/6907. I > didn''t bother looking into it much beyond that; I just made sure that > when our RHEL boxes were kickstarted, that vixie-cron was installed > prior to the puppet client''s first run. > > By the looks of #6907 though, it looks like this is expected to work, > so it might be worth opening a ticket to have that investigated. I''ll > see if I can reproduce on a VM here today. > > Thanks, > > Matt. > > -- > 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. > >-- 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.
Basil Kurian
2012-Oct-08 09:57 UTC
Re: [Puppet Users] require => Package[''name''] directive is not working as expected
Tried upgrading the puppet master and client to 2.7.19. and that fixed the issue :) [root@client yum.repos.d]# rpm -qa | grep puppet> puppet-2.7.19-1.el5 > [root@client yum.repos.d]# >[root@client yum.repos.d]# /usr/sbin/puppetd --onetime --no-daemonize> --verbose --server puppet.example.com > info: Caching catalog for client.example.com > info: Applying configuration version ''1349670321'' > notice: /Stage[main]/Base/Package[vixie-cron]/ensure: created > notice: /Stage[main]/Base/Cron[puppet]/ensure: created > notice: Finished catalog run in 4.12 seconds >On 8 October 2012 15:10, Basil Kurian <basilkurian@gmail.com> wrote:> Thanks Matt. > > > From http://projects.puppetlabs.com/issues/11362 > > > >> This was fixed in #6907 <http://projects.puppetlabs.com/issues/6907> and >> released in puppet 2.7.8 >> > > > Now it is clear. The client that I''m using is a lower version one. > > [root@client ~]# rpm -qa | grep puppet > puppet-2.6.17-2.el5 > > > > > On 8 October 2012 14:55, Matthew Burgess <matthew.2.burgess@googlemail.com > > wrote: > >> On Mon, Oct 8, 2012 at 10:14 AM, Basil Kurian <basilkurian@gmail.com> >> wrote: >> > I have this definition added in one of my class files >> > >> > >> >> 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], >> >> } >> > >> > >> > >> > 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 >> >> I remember running into this as well. >> http://projects.puppetlabs.com/issues/11362 looks relevant but links >> to a closed bug at http://projects.puppetlabs.com/issues/6907. I >> didn''t bother looking into it much beyond that; I just made sure that >> when our RHEL boxes were kickstarted, that vixie-cron was installed >> prior to the puppet client''s first run. >> >> By the looks of #6907 though, it looks like this is expected to work, >> so it might be worth opening a ticket to have that investigated. I''ll >> see if I can reproduce on a VM here today. >> >> Thanks, >> >> Matt. >> >> -- >> 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. >> >> > > > -- > Regards > > Basil > > > > >-- 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.
Matthew Burgess
2012-Oct-08 10:02 UTC
Re: [Puppet Users] require => Package[''name''] directive is not working as expected
On Mon, Oct 8, 2012 at 10:40 AM, Basil Kurian <basilkurian@gmail.com> wrote:> Now it is clear. The client that I''m using is a lower version one. > > [root@client ~]# rpm -qa | grep puppet > puppet-2.6.17-2.el5OK. I suspect I must have been on an old version too, when I first tested this. Just for my own peace of mind, I''ve tested your manifest on a fresh 3.0.0 puppet master and it correctly installs vixie-cron, then creates the crontab entry. Regards, Matt. -- 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.
Basil Kurian
2012-Oct-08 10:03 UTC
Re: [Puppet Users] require => Package[''name''] directive is not working as expected
:-) On 8 October 2012 15:32, Matthew Burgess <matthew.2.burgess@googlemail.com>wrote:> On Mon, Oct 8, 2012 at 10:40 AM, Basil Kurian <basilkurian@gmail.com> > wrote: > > > Now it is clear. The client that I''m using is a lower version one. > > > > [root@client ~]# rpm -qa | grep puppet > > puppet-2.6.17-2.el5 > > OK. I suspect I must have been on an old version too, when I first tested > this. > > Just for my own peace of mind, I''ve tested your manifest on a fresh 3.0.0 > puppet master and it correctly installs vixie-cron, then creates the > crontab entry. > > Regards, > > Matt. > > -- > 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. > >-- 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.