Alexander Fortin
2011-Nov-28 13:58 UTC
[Puppet Users] Uninstall Puppet and Facter from OSX
Hi folks, I''m a new Mac user and a while ago I installed puppet (2.6.7) + facter (1.5.8) from tarballs provided by puppetlabs.com on my Lion machine. Now, I''d like to go for gem install and get puppet 2.7, but I''m not sure if I need to remove the puppet I''ve got installed right now before doing so. Thanks for your time, -- Alexander Fortin http://about.me/alexanderfortin/ -- 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.
Nigel Kersten
2011-Nov-28 16:59 UTC
Re: [Puppet Users] Uninstall Puppet and Facter from OSX
On Mon, Nov 28, 2011 at 5:58 AM, Alexander Fortin < alexander.fortin@gmail.com> wrote:> Hi folks, > > I''m a new Mac user and a while ago I installed puppet (2.6.7) + facter > (1.5.8) from tarballs provided by puppetlabs.com on my Lion machine. > > Now, I''d like to go for gem install and get puppet 2.7, but I''m not sure > if I need to remove the puppet I''ve got installed right now before doing so. > > Thanks for your time, >You should, yes. I''d actually suggest the best thing to do is to run "conf/osx/createpackage.sh" to generate a proper Mac pkg out of the tarball. That will do some extra things like set up the right directory ownership for you. The previous install.rb install should have put files into: /usr/lib/ruby/site_ruby/1.8/puppet* /usr/bin/puppet* /usr/bin/filebucket /usr/bin/pi /usr/bin/ralsh /usr/sbin/puppet* and removing all those should effectively remove the install. -- 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.
Alexander Fortin
2011-Nov-29 08:53 UTC
Re: [Puppet Users] Uninstall Puppet and Facter from OSX
On 11/28/11 5:59 PM, Nigel Kersten wrote:> You should, yes. > > I''d actually suggest the best thing to do is to run > "conf/osx/createpackage.sh" to generate a proper Mac pkg out of the > tarball. That will do some extra things like set up the right directory > ownership for you. > > The previous install.rb install should have put files into: > > /usr/lib/ruby/site_ruby/1.8/puppet* > /usr/bin/puppet* > /usr/bin/filebucket > /usr/bin/pi > /usr/bin/ralsh > /usr/sbin/puppet* > and removing all those should effectively remove the install.Thanks Nigel, I''ve followed your suggestion and now I''m running puppet v2.7.6 installed via gem PS I wasn''t able to find the createpackage.sh script you suggested though -- Alexander Fortin http://about.me/alexanderfortin/ -- 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 Tue, Nov 29, 2011 at 8:53 AM, Alexander Fortin <alexander.fortin@gmail.com> wrote:> On 11/28/11 5:59 PM, Nigel Kersten wrote: >> >> You should, yes. >> >> I''d actually suggest the best thing to do is to run >> "conf/osx/createpackage.sh" to generate a proper Mac pkg out of the >> tarball. That will do some extra things like set up the right directory >> ownership for you. >> >> The previous install.rb install should have put files into: >> >> /usr/lib/ruby/site_ruby/1.8/puppet* >> /usr/bin/puppet* >> /usr/bin/filebucket >> /usr/bin/pi >> /usr/bin/ralsh >> /usr/sbin/puppet* >> and removing all those should effectively remove the install. > > > Thanks Nigel, I''ve followed your suggestion and now I''m running puppet > v2.7.6 installed via gem > > PS I wasn''t able to find the createpackage.sh script you suggested thoughhttps://github.com/puppetlabs/puppet/tree/master/conf/osx HTH, Nan -- 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.
Allister Banks
2011-Nov-29 18:19 UTC
[Puppet Users] Re: Uninstall Puppet and Facter from OSX
As createpackage has not been updated for quite some time, an alternative method of generating the package has been developed. It utilizes Apple''s Developer Tools/GCC and a project called the Luggage, which in turn uses make to generate the package. It also can be dynamically fed new version numbers, for both Puppet and Facter. https://github.com/unixorn/luggage https://github.com/unixorn/luggage-examples/tree/master/puppet https://github.com/unixorn/luggage-examples/tree/master/facter If you are deploying it using a patch management tool like Munki (munki.googlecode.com), it can use the proper protocol of querying the receipt db and therefore remove all the bits and pieces that were installed based upon their bill of materials. Allister Banks @sacrilicious On Nov 29, 3:53 am, Alexander Fortin <alexander.for...@gmail.com> wrote:> On 11/28/11 5:59 PM, Nigel Kersten wrote: > > > > > > > > > > > You should, yes. > > > I''d actually suggest the best thing to do is to run > > "conf/osx/createpackage.sh" to generate a proper Mac pkg out of the > > tarball. That will do some extra things like set up the right directory > > ownership for you. > > > The previous install.rb install should have put files into: > > > /usr/lib/ruby/site_ruby/1.8/puppet* > > /usr/bin/puppet* > > /usr/bin/filebucket > > /usr/bin/pi > > /usr/bin/ralsh > > /usr/sbin/puppet* > > and removing all those should effectively remove the install. > > Thanks Nigel, I''ve followed your suggestion and now I''m running puppet > v2.7.6 installed via gem > > PS I wasn''t able to find the createpackage.sh script you suggested though > > -- > Alexander Fortinhttp://about.me/alexanderfortin/-- 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.
Alexander Fortin
2011-Nov-29 18:46 UTC
Re: [Puppet Users] Uninstall Puppet and Facter from OSX
On 11/29/11 6:12 PM, Nan Liu wrote:>> > Thanks Nigel, I''ve followed your suggestion and now I''m running puppet >> > v2.7.6 installed via gem >> > >> > PS I wasn''t able to find the createpackage.sh script you suggested though > https://github.com/puppetlabs/puppet/tree/master/conf/osx > > HTH,Yes it does ;) Thanks -- Alexander Fortin http://about.me/alexanderfortin/ -- 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.
Gary Larizza
2011-Nov-30 03:31 UTC
Re: [Puppet Users] Re: Uninstall Puppet and Facter from OSX
On Tue, Nov 29, 2011 at 10:19 AM, Allister Banks <al@aru-b.com> wrote:> As createpackage has not been updated for quite some time, an > alternative method of generating the package has been developed. It > utilizes Apple''s Developer Tools/GCC and a project called the Luggage, > which in turn uses make to generate the package. It also can be > dynamically fed new version numbers, for both Puppet and Facter. > https://github.com/unixorn/luggage > https://github.com/unixorn/luggage-examples/tree/master/puppet > https://github.com/unixorn/luggage-examples/tree/master/facter > > If you are deploying it using a patch management tool like Munki > (munki.googlecode.com), it can use the proper protocol of querying the > receipt db and therefore remove all the bits and pieces that were > installed based upon their bill of materials. > > Allister Banks > @sacrilicious > > On Nov 29, 3:53 am, Alexander Fortin <alexander.for...@gmail.com> > wrote: > > On 11/28/11 5:59 PM, Nigel Kersten wrote: > > > > > > > > > > > > > > > > > > > > > You should, yes. > > > > > I''d actually suggest the best thing to do is to run > > > "conf/osx/createpackage.sh" to generate a proper Mac pkg out of the > > > tarball. That will do some extra things like set up the right directory > > > ownership for you. > > > > > The previous install.rb install should have put files into: > > > > > /usr/lib/ruby/site_ruby/1.8/puppet* > > > /usr/bin/puppet* > > > /usr/bin/filebucket > > > /usr/bin/pi > > > /usr/bin/ralsh > > > /usr/sbin/puppet* > > > and removing all those should effectively remove the install. > > > > Thanks Nigel, I''ve followed your suggestion and now I''m running puppet > > v2.7.6 installed via gem > > > > PS I wasn''t able to find the createpackage.sh script you suggested though > > > > -- > > Alexander Fortinhttp://about.me/alexanderfortin/ > >--> 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. > >Just to add some clarity, The createpackage.sh script in conf/osx actually works quite well, regardless of how old it is. Untar or git clone Puppet from source, make sure you''re in the root of the directory, and run: sudo conf/osx/createpackage.sh That should build a package for you and place it in the same directory (puppet-2.7.7.pkg). I initially created the recipe in The Luggage as a proof of concept so I could build multiple packages from different Puppet versions, and it works quite well for that, but you should find it much easier to use the package bundled with source. Let us know if you have any issues :) Cheers! -- Gary Larizza Professional Services Engineer Puppet Labs -- 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.
Alexander Fortin
2011-Nov-30 07:58 UTC
Re: [Puppet Users] Re: Uninstall Puppet and Facter from OSX
On 11/30/11 4:31 AM, Gary Larizza wrote:> Just to add some clarity, > > The createpackage.sh script in conf/osx actually works quite well, > regardless of how old it is. Untar or git clone Puppet from source, > make sure you''re in the root of the directory, and run: > > sudo conf/osx/createpackage.sh > > That should build a package for you and place it in the same directory > (puppet-2.7.7.pkg). > > I initially created the recipe in The Luggage as a proof of concept so I > could build multiple packages from different Puppet versions, and it > works quite well for that, but you should find it much easier to use the > package bundled with source. Let us know if you have any issues :)Cool! I suggest you to somehow make this visible from the puppetlabs download page, maybe just a link to the github sources or something, otherwise I think the "mean" user as the one I am will always be unaware of this and that''s a shame. PS I went for gem install and everything is working OK now, next time I''ll try the createpackage.sh solution for sure. Have a nice day, -- Alexander Fortin http://about.me/alexanderfortin/ -- 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.