So I started http://reductivelabs.com/trac/puppet/wiki/MigratingFrom0.23To0.24 because I figured it would save some poor soul some time. But it requires more content. A topic I''d like to add that is currently biting me with 0.24.4 is the deprecation of plugins. I read http://reductivelabs.com/trac/puppet/wiki/PluginsInModules but its advice is not working for me. I added pluginsync = true pluginsource = puppet://$server/plugins factpath = $vardir/lib/facter to puppet.conf and created the custom module as the page states. [root@mgr1.ppe1 puppet]# pwd /var/lib/puppet [root@mgr1.ppe1 lib]# puppetd --configprint libdir /var/lib/puppet/lib [root@mgr1.ppe1 puppet]# rm -rf lib [root@mgr1.ppe1 puppet]# puppetd -t --server mgr1.ppe1.example.com info: Retrieving plugins notice: /File[/var/lib/puppet/lib]/mode: mode changed ''755'' to ''775'' notice: /File[/var/lib/puppet/lib/facter]/ensure: created notice: /File[/var/lib/puppet/lib/type]/ensure: created notice: /File[/var/lib/puppet/lib/type/checkout.rb]/ensure: created notice: Ignoring cache err: Could not retrieve catalog: Could not find resource type checkout at /cc/ops/config/puppet/modules/opswww/manifests/init.pp:12 on node mgr1.ppe1.example.com warning: Not using cache on failed catalog [root@mgr1.ppe1 puppet]# find lib -ls 3433999 4 drwxrwxr-x 4 root root 4096 Mar 29 02:04 lib 3434001 4 drwxrwxr-x 2 root root 4096 Mar 29 02:04 lib/facter 3434002 4 drwxrwxr-x 2 root root 4096 Mar 29 02:04 lib/type 3434003 8 -rw-r--r-- 1 root root 5152 Mar 29 02:04 lib/type/checkout.rb [root@mgr1.ppe1 puppet]# So the type file exists. An strace shows that checkout.rb is being opened and read. Any idea what is going on? Why can''t puppetd find the type? -- Jos Backus jos at catnook.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jos Backus wrote: | So I started http://reductivelabs.com/trac/puppet/wiki/MigratingFrom0.23To0.24 | because I figured it would save some poor soul some time. But it requires more | content. Jos Hope you don''t mind but I''ve migrated this content to: http://reductivelabs.com/trac/puppet/wiki/UPGRADE This way we can track upgrade steps between more than just 0.23 and 0.24. I''ll eventually, when sufficient content is available, create some documentation that can be added to the package. Regards James Turnbull - -- James Turnbull (james@lovedthanlost.net) - -- Author of: - - Pulling Strings with Puppet (http://www.amazon.com/gp/product/1590599780/) - - Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/) - - Hardening Linux (http://www.amazon.com/gp/product/1590594444/) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFH7eBK9hTGvAxC30ARAqS0AJwJ4xpUwy2Fn72QGH/UCW+BHwnKxwCgnboR mo1CBg9897AbAmlyW5kOKDc=eT5V -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ 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 Sat, Mar 29, 2008 at 05:23:07PM +1100, James Turnbull wrote:> Hope you don''t mind but I''ve migrated this content to: > > http://reductivelabs.com/trac/puppet/wiki/UPGRADEExcellent idea, thanks James. -- Jos Backus jos at catnook.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jos Backus wrote: | On Sat, Mar 29, 2008 at 05:23:07PM +1100, James Turnbull wrote: |> Hope you don''t mind but I''ve migrated this content to: |> |> http://reductivelabs.com/trac/puppet/wiki/UPGRADE | | Excellent idea, thanks James. | The http://reductivelabs.com/trac/puppet/wiki/UPGRADE page is pretty much complete. It runs from 0.20.0 to 0.24.4 currently and lists most of the major feature, configuration and language changes. Please point people at this document if they have upgrade related questions. Please also feel free to edit/argue/update/etc. The page has been included in the Documentation Start and Download pages also - if you think it merits inclusion else where again feel free to add it. I''ll look at adding a text version to the distributed tarballs/etc at a later date. Regards James Turnbull - -- James Turnbull (james@lovedthanlost.net) - -- Author of: - - Pulling Strings with Puppet (http://www.amazon.com/gp/product/1590599780/) - - Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/) - - Hardening Linux (http://www.amazon.com/gp/product/1590594444/) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFH74ZE9hTGvAxC30ARAgucAKCbNPMbds3IF6SFqnq1o8Dq5ulCSACeMsZ+ rtUEm9kfPsWIeETG59ud+6s=6uDG -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ 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 Mar 29, 2008, at 1:17 AM, Jos Backus wrote:> [root@mgr1.ppe1 puppet]# find lib -ls > 3433999 4 drwxrwxr-x 4 root root 4096 Mar 29 02:04 > lib > 3434001 4 drwxrwxr-x 2 root root 4096 Mar 29 02:04 > lib/facter > 3434002 4 drwxrwxr-x 2 root root 4096 Mar 29 02:04 > lib/type > 3434003 8 -rw-r--r-- 1 root root 5152 Mar 29 02:04 > lib/type/checkout.rb > [root@mgr1.ppe1 puppet]# > > So the type file exists. An strace shows that checkout.rb is being > opened and > read. Any idea what is going on? Why can''t puppetd find the type?The types need to be in lib/puppet/type, not just lib/type. -- I think that''s how Chicago got started. A bunch of people in New York said, ''Gee, I''m enjoying the crime and the poverty, but it just isn''t cold enough. Let''s go west.'' --Richard Jeni --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com --~--~---------~--~----~------------~-------~--~----~ 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 Sun, Mar 30, 2008 at 12:44:17PM -0500, Luke Kanies wrote:> The types need to be in lib/puppet/type, not just lib/type.Thanks for the reply, Luke. That''s what I thought, too. But: [root@mgr1.ppe1 lib]# pwd /var/lib/puppet/lib [root@mgr1.ppe1 lib]# find . ./facter ./type ./type/checkout.rb [root@mgr1.ppe1 lib]# mkdir puppet [root@mgr1.ppe1 lib]# mv type/ puppet/ [root@mgr1.ppe1 lib]# find . ./puppet ./puppet/type ./puppet/type/checkout.rb ./facter [root@mgr1.ppe1 lib]# puppetd -t --server mgr1.ppe1.example.com info: Retrieving plugins notice: /File[/var/lib/puppet/lib]/checksum: checksum changed ''{mtime}Sun Mar 30 17:28:16 -0400 2008'' to ''{mtime}Sun Mar 30 18:53:45 -0400 2008'' notice: /File[/var/lib/puppet/lib/puppet]/ensure: removed notice: /File[/var/lib/puppet/lib/type]/ensure: created notice: /File[/var/lib/puppet/lib/type/checkout.rb]/ensure: created notice: Ignoring cache err: Could not retrieve catalog: Could not find resource type checkout at /cc/ops/config/puppet/modules/opswww/manifests/init.pp:12 on node mgr1.ppe1.example.com warning: Not using cache on failed catalog [root@mgr1.ppe1 lib]# find . ./facter ./type ./type/checkout.rb [root@mgr1.ppe1 lib]# Iow, puppetd clobbers what looks like the correct setup and recreates the broken setup. Some config variable must not be set correctly but I have been following PluginsInModules and this setup was working fine before with 0.23.2. So what am I doing wrong? -- Jos Backus jos at catnook.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Have you got the type on your puppetmaster? --trace is your (and our) friend. Regards, Arjuna Christensen | Systems Engineer Maximum Internet Ltd 7a Parkhead Pl, Albany, North Shore, 0632 | PO Box 8006, Auckland, 1150, NZ DDI: + 64 9 913 9683 | Ph: +64 9 915 1825 | Fax:: +64 9 300 7227 arjuna.christensen@maxnet.co.nz| www.maxnet.co.nz ________________________________ Maxnet | mission critical internet ________________________________ This email (including any attachments) is confidential and intended only for the person to whom it is addressed. If you have received this email in error, please notify the sender immediately and erase all copies of this message and attachments. The views expressed in this email do not necessarily reflect those held by Maxnet. -----Original Message----- From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On Behalf Of Jos Backus Sent: Monday, 31 March 2008 12:05 p.m. To: puppet-users@googlegroups.com Subject: [Puppet Users] Re: Migrating from 0.23 to 0.24 On Sun, Mar 30, 2008 at 12:44:17PM -0500, Luke Kanies wrote:> The types need to be in lib/puppet/type, not just lib/type.Thanks for the reply, Luke. That''s what I thought, too. But: [root@mgr1.ppe1 lib]# pwd /var/lib/puppet/lib [root@mgr1.ppe1 lib]# find . ./facter ./type ./type/checkout.rb [root@mgr1.ppe1 lib]# mkdir puppet [root@mgr1.ppe1 lib]# mv type/ puppet/ [root@mgr1.ppe1 lib]# find . ./puppet ./puppet/type ./puppet/type/checkout.rb ./facter [root@mgr1.ppe1 lib]# puppetd -t --server mgr1.ppe1.example.com info: Retrieving plugins notice: /File[/var/lib/puppet/lib]/checksum: checksum changed ''{mtime}Sun Mar 30 17:28:16 -0400 2008'' to ''{mtime}Sun Mar 30 18:53:45 -0400 2008'' notice: /File[/var/lib/puppet/lib/puppet]/ensure: removed notice: /File[/var/lib/puppet/lib/type]/ensure: created notice: /File[/var/lib/puppet/lib/type/checkout.rb]/ensure: created notice: Ignoring cache err: Could not retrieve catalog: Could not find resource type checkout at /cc/ops/config/puppet/modules/opswww/manifests/init.pp:12 on node mgr1.ppe1.example.com warning: Not using cache on failed catalog [root@mgr1.ppe1 lib]# find . ./facter ./type ./type/checkout.rb [root@mgr1.ppe1 lib]# Iow, puppetd clobbers what looks like the correct setup and recreates the broken setup. Some config variable must not be set correctly but I have been following PluginsInModules and this setup was working fine before with 0.23.2. So what am I doing wrong? -- Jos Backus jos at catnook.com --~--~---------~--~----~------------~-------~--~----~ 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 Mon, Mar 31, 2008 at 01:46:56PM +1300, Arjuna Christensen wrote:> Have you got the type on your puppetmaster?This is on the puppetmaster (I''m testing 0.24.4 on a single system). The problem is that puppetd looks in $libdir/puppet/type but the type is deposited in $libdir/type. Stating it that way helped me figure it out (finally). One needs to set `plugindest'' to `$vardir/lib/puppet'' (or `$libdir/puppet'' -- not sure which one is best). I added this to the PluginsInModules page since the UPGRADE page refers to it.> --trace is your (and our) friend.I don''t think that helps here -- with or without it, the puppetd output is the same. -- Jos Backus jos at catnook.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Plugins are working fine here on 0.24.4 and I don''t explicitly set plugindest. ''vardir'' is all you need. root@asterisk02:/var/lib/puppet/lib# puppetd --vardir /var/lib/puppet --configprint plugindest /var/lib/puppet/lib Regards, Arjuna Christensen | Systems Engineer Maximum Internet Ltd 7a Parkhead Pl, Albany, North Shore, 0632 | PO Box 8006, Auckland, 1150, NZ DDI: + 64 9 913 9683 | Ph: +64 9 915 1825 | Fax:: +64 9 300 7227 arjuna.christensen@maxnet.co.nz| www.maxnet.co.nz ________________________________ Maxnet | mission critical internet ________________________________ This email (including any attachments) is confidential and intended only for the person to whom it is addressed. If you have received this email in error, please notify the sender immediately and erase all copies of this message and attachments. The views expressed in this email do not necessarily reflect those held by Maxnet. -----Original Message----- From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On Behalf Of Jos Backus Sent: Monday, 31 March 2008 3:01 p.m. To: puppet-users@googlegroups.com Subject: [Puppet Users] Re: Migrating from 0.23 to 0.24 On Mon, Mar 31, 2008 at 01:46:56PM +1300, Arjuna Christensen wrote:> Have you got the type on your puppetmaster?This is on the puppetmaster (I''m testing 0.24.4 on a single system). The problem is that puppetd looks in $libdir/puppet/type but the type is deposited in $libdir/type. Stating it that way helped me figure it out (finally). One needs to set `plugindest'' to `$vardir/lib/puppet'' (or `$libdir/puppet'' -- not sure which one is best). I added this to the PluginsInModules page since the UPGRADE page refers to it.> --trace is your (and our) friend.I don''t think that helps here -- with or without it, the puppetd output is the same. -- Jos Backus jos at catnook.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---