Found a recipe that indicates the following will uninstall (equiv of apt-get remove vlc) the vlc package. # /etc/puppet/manifests/classes/packages.pp class packages { $packages = ["vlc"] package{ $packages: ensure => absent } } When I run sudo puppetd --test I see the following sudo puppetd --test info: Retrieving plugins err: /File[/var/lib/puppet/lib]: Failed to generate additional resources during transaction: Cannot access mount[plugins] err: /File[/var/lib/puppet/lib]: Failed to retrieve current state of resource: Cannot access mount[plugins] Could not describe /plugins: Cannot access mount[plugins] info: Caching catalog at /var/lib/puppet/state/localconfig.yaml notice: Starting catalog run notice: Finished catalog run in 0.55 seconds test@ubuntu:~$ which vlc /usr/bin/vlc As you can see the last two lines of the paragraph indicate VLC is still installed. Googling has only produced the option of changing absent to purged, this returns the same results. I was able to successfully install vlc w/ the same recipe by changing absent to installed. Would really appreciate help on this. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Am fairly certain --test implies --dry-run and won''t actually enact any changes. You have other issues w/your config, though. -scott On Jul 23, 2009, at 9:50, awreneau <awreneau@gmail.com> wrote:> > Found a recipe that indicates the following will uninstall (equiv of > apt-get remove vlc) the vlc package. > > # /etc/puppet/manifests/classes/packages.pp > > class packages { > $packages = ["vlc"] > package{ $packages: > ensure => absent > } > } > > > When I run sudo puppetd --test I see the following > > > sudo puppetd --test > info: Retrieving plugins > err: /File[/var/lib/puppet/lib]: Failed to generate additional > resources during transaction: Cannot access mount[plugins] > err: /File[/var/lib/puppet/lib]: Failed to retrieve current state of > resource: Cannot access mount[plugins] Could not describe /plugins: > Cannot access mount[plugins] > info: Caching catalog at /var/lib/puppet/state/localconfig.yaml > notice: Starting catalog run > notice: Finished catalog run in 0.55 seconds > test@ubuntu:~$ which vlc > /usr/bin/vlc > > > As you can see the last two lines of the paragraph indicate VLC is > still installed. Googling has only produced the option of changing > absent to purged, this returns the same results. > > > I was able to successfully install vlc w/ the same recipe by changing > absent to installed. > > Would really appreciate help on this. > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Scott Smith wrote:> Am fairly certain --test implies --dry-run and won''t actually enact > any changes.Sorry, but --test certainly does apply changes. We use it a lot! cYa, Avi --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Thu, Jul 23, 2009 at 5:03 PM, Scott Smith<scott@ohlol.net> wrote:> > Am fairly certain --test implies --dry-run and won''t actually enact > any changes.Nope. --test is basically shorthand for: --verbose --ignorecache --no-usecacheonfailure --no-splay --show_diff --no-daemonize IIRC.> > You have other issues w/your config, though. > > -scott > > > > On Jul 23, 2009, at 9:50, awreneau <awreneau@gmail.com> wrote: > >> >> Found a recipe that indicates the following will uninstall (equiv of >> apt-get remove vlc) the vlc package. >> >> # /etc/puppet/manifests/classes/packages.pp >> >> class packages { >> $packages = ["vlc"] >> package{ $packages: >> ensure => absent >> } >> } >> >> >> When I run sudo puppetd --test I see the following >> >> >> sudo puppetd --test >> info: Retrieving plugins >> err: /File[/var/lib/puppet/lib]: Failed to generate additional >> resources during transaction: Cannot access mount[plugins] >> err: /File[/var/lib/puppet/lib]: Failed to retrieve current state of >> resource: Cannot access mount[plugins] Could not describe /plugins: >> Cannot access mount[plugins] >> info: Caching catalog at /var/lib/puppet/state/localconfig.yaml >> notice: Starting catalog run >> notice: Finished catalog run in 0.55 seconds >> test@ubuntu:~$ which vlc >> /usr/bin/vlc >> >> >> As you can see the last two lines of the paragraph indicate VLC is >> still installed. Googling has only produced the option of changing >> absent to purged, this returns the same results. >> >> >> I was able to successfully install vlc w/ the same recipe by changing >> absent to installed. >> >> Would really appreciate help on this. >> >> >> > > > > >-- Nigel Kersten nigelk@google.com System Administrator Google, Inc. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Avi Miller wrote:> Scott Smith wrote: >> Am fairly certain --test implies --dry-run and won''t actually enact >> any changes. > > Sorry, but --test certainly does apply changes. We use it a lot! >D''oh, I misread. That''s what I get for reading E-mail on my iphone while riding the bus :( -scott --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
So, back to my original question, how would I purge vlc and the other dependencies that are installed as a result of the original recipe? Thanks On Thu, Jul 23, 2009 at 8:12 PM, Scott Smith <scott@ohlol.net> wrote:> > Avi Miller wrote: > > Scott Smith wrote: > >> Am fairly certain --test implies --dry-run and won''t actually enact > >> any changes. > > > > Sorry, but --test certainly does apply changes. We use it a lot! > > > > D''oh, I misread. That''s what I get for reading E-mail on my iphone > while riding the bus :( > > -scott > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi. This is really strange and should not be. We use ubuntu (hardy/intrepid) a lot and package management with puppet works really well. What ubuntu version and what puppet version? What happens if you user --verbose for puppetd? That should show you a message about the Package["vlc"] What happens if you manually uninstall vlc "aptitude remove vlc"? Some packages have strange dependencies that are first removed and then installed again if another package that depends on those should be installed (via puppet). We use puppet 0.24.8 (from debian/unstable) and puppetmaster 0.24.8, but in all previous versions (since 0.22) we never had such problems with apt/dpkg based Linux-boxes. bye. udo On 24.07.2009, at 15:52, Wes Reneau wrote:> So, back to my original question, how would I purge vlc and the > other dependencies that are installed as a result of the original > recipe? > > Thanks > > > On Thu, Jul 23, 2009 at 8:12 PM, Scott Smith <scott@ohlol.net> wrote: > > Avi Miller wrote: > > Scott Smith wrote: > >> Am fairly certain --test implies --dry-run and won''t actually enact > >> any changes. > > > > Sorry, but --test certainly does apply changes. We use it a lot! > > > > D''oh, I misread. That''s what I get for reading E-mail on my iphone > while riding the bus :( > > -scott > > > > > --~--~---------~--~----~------------~-------~--~----~ > 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 > -~----------~----~----~----~------~----~------~--~--- >-- :: udo waechter - root@zoide.net :: N 52º16''30.5" E 8º3''10.1" :: genuine input for your ears: http://auriculabovinari.de :: your eyes: http://ezag.zoide.net :: your brain: http://zoide.net
Ubuntu 9.04 (Juanty) Server and Client run Jaunty Puppetmaster 0.24.4-3 Puppet (client)0.24.5-3 sudo puppetd --verbose err: Could not create PID file: /var/run/puppet/puppetd.pid Seems that I have underlying problems. On Fri, Jul 24, 2009 at 10:38 AM, Udo Waechter < udo.waechter@uni-osnabrueck.de> wrote:> Hi. > > This is really strange and should not be. > We use ubuntu (hardy/intrepid) a lot and package management with puppet > works really well. > > What ubuntu version and what puppet version? > > What happens if you user --verbose for puppetd? That should show you a > message about the Package["vlc"] > What happens if you manually uninstall vlc "aptitude remove vlc"? Some > packages have strange dependencies that are first removed and then installed > again if another package that depends on those should be installed (via > puppet). > > We use puppet 0.24.8 (from debian/unstable) and puppetmaster 0.24.8, but in > all previous versions (since 0.22) we never had such problems with apt/dpkg > based Linux-boxes. > > bye. > udo > > > On 24.07.2009, at 15:52, Wes Reneau wrote: > > So, back to my original question, how would I purge vlc and the other >> dependencies that are installed as a result of the original recipe? >> >> Thanks >> >> >> On Thu, Jul 23, 2009 at 8:12 PM, Scott Smith <scott@ohlol.net> wrote: >> >> Avi Miller wrote: >> > Scott Smith wrote: >> >> Am fairly certain --test implies --dry-run and won''t actually enact >> >> any changes. >> > >> > Sorry, but --test certainly does apply changes. We use it a lot! >> > >> >> D''oh, I misread. That''s what I get for reading E-mail on my iphone >> while riding the bus :( >> >> -scott >> >> >> >> >> >> >> > -- > :: udo waechter - root@zoide.net :: N 52º16''30.5" E 8º3''10.1" > :: genuine input for your ears: http://auriculabovinari.de > :: your eyes: http://ezag.zoide.net > :: your brain: http://zoide.net > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi, several problems: On 24.07.2009, at 16:52, Wes Reneau wrote:> Ubuntu 9.04 (Juanty) Server and Client run Jaunty > Puppetmaster 0.24.4-3 > Puppet (client)0.24.5-3 >Usually you should not run newer puppet-clients againts older puppet- master. The other way round usually works. If Jaunty has different version for master/client, this is a bug with ubuntu and should be filed there. As a off-topic side note: The most recent version of Ubuntu (not LTS) usually has problems... for production environments we have the rule to be one non-LTS version behind.> sudo puppetd --verbose > err: Could not create PID file: /var/run/puppet/puppetd.pidYep, this is a problem. does /var/run/puppet exist? udo. -- :: udo waechter - root@zoide.net :: N 52º16''30.5" E 8º3''10.1" :: genuine input for your ears: http://auriculabovinari.de :: your eyes: http://ezag.zoide.net :: your brain: http://zoide.net
Replied in line, blue. On Fri, Jul 24, 2009 at 11:10 AM, Udo Waechter < udo.waechter@uni-osnabrueck.de> wrote:> Hi, > several problems: > On 24.07.2009, at 16:52, Wes Reneau wrote: > > Ubuntu 9.04 (Juanty) Server and Client run Jaunty >> Puppetmaster 0.24.4-3 >> Puppet (client)0.24.5-3 >> >> Usually you should not run newer puppet-clients againts older > puppet-master. The other way round usually works. >Client and Server were both installed from default REPO''s. If Jaunty has different version for master/client, this is a bug with ubuntu and should be filed there. I''ll look into this.> > As a off-topic side note: The most recent version of Ubuntu (not LTS) > usually has problems... for production environments we have the rule to be > one non-LTS version behind.Funny you mention this, I argued the same point when everyone wanted to jump on Jaunty. I prefer the LTS versions, knowing that some things will be forever broken until you upgrade distros.> > > sudo puppetd --verbose >> err: Could not create PID file: /var/run/puppet/puppetd.pid >> > Yep, this is a problem. does /var/run/puppet exist?It exists.> > > udo. > > > -- > :: udo waechter - root@zoide.net :: N 52º16''30.5" E 8º3''10.1" > :: genuine input for your ears: http://auriculabovinari.de > :: your eyes: http://ezag.zoide.net > :: your brain: http://zoide.net > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
The puppetmaster was still on 8.04. Upgrading to 9.04 hopefully solve my problems. How stupid of me. On Fri, Jul 24, 2009 at 12:25 PM, Wes Reneau <awreneau@gmail.com> wrote:> Replied in line, blue. > > On Fri, Jul 24, 2009 at 11:10 AM, Udo Waechter < > udo.waechter@uni-osnabrueck.de> wrote: > >> Hi, >> several problems: >> On 24.07.2009, at 16:52, Wes Reneau wrote: >> >> Ubuntu 9.04 (Juanty) Server and Client run Jaunty >>> Puppetmaster 0.24.4-3 >>> Puppet (client)0.24.5-3 >>> >>> Usually you should not run newer puppet-clients againts older >> puppet-master. The other way round usually works. >> > Client and Server were both installed from default REPO''s. > > If Jaunty has different version for master/client, this is a bug with > ubuntu and should be filed there. > I''ll look into this. > >> >> As a off-topic side note: The most recent version of Ubuntu (not LTS) >> usually has problems... for production environments we have the rule to be >> one non-LTS version behind. > > Funny you mention this, I argued the same point when everyone wanted to > jump on Jaunty. I prefer the LTS versions, knowing that some things will be > forever broken until you upgrade distros. > >> >> >> sudo puppetd --verbose >>> err: Could not create PID file: /var/run/puppet/puppetd.pid >>> >> Yep, this is a problem. does /var/run/puppet exist? > > It exists. > >> >> >> udo. >> >> >> -- >> :: udo waechter - root@zoide.net :: N 52º16''30.5" E 8º3''10.1" >> :: genuine input for your ears: http://auriculabovinari.de >> :: your eyes: http://ezag.zoide.net >> :: your brain: http://zoide.net >> >> >> >> >> >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---