Hi there, I''ve known puppet since more than a year now, but never used it until now. I''ve been reading a lot about puppet: Installation guide, simplest puppet recipe, Best practices... But I still feel kinda lost to start. :( As I''m starting to test on a stand alone server, I think I don''t really need to run the puppetmasterd server, am I right? What should I do in this case? I have less than 2 weeks to migrate our current prduction environment (which was setup by a previous employee) to new servers. Right now we have (basicaly): * 2 application servers running RHEL 4 and this services: ntp, monit, nginx, mongrel (running ruby on rails applications), pgpool and PowerDNS. * 2 database servers running RHEL 4 and this services: monit, postgresql, and slony. Almost all of this services have been custom compiled and installed on the same servers. Ugly, but we may need to keep doing this for some services. The new servers run a vanilla installation of RHEL 5. I have been administering linux servers for years with many services. But I''ve never used a centralized management approach as puppet. I want to start with just a few services, yes. But I need to advance fast. :) So any recommendations would be helpful. -- Diego Algorta Casamayou http://www.oboxodo.com - http://diego.algorta.net
Hi Diego, One of the first things I read was David Lutterkort''s overview: http://people.redhat.com/dlutter/puppet-app.html Which helped me get a good jump start on using puppet. As you begin to ask questions, the puppet wiki is full of examples, especially the recipe section: http://reductivelabs.com/trac/puppet/tags/puppet%2Crecipe I''d also have a look at a real-world configuration example such as David Schmitt''s modules: http://git.black.co.at/?p=manifests.git;a=tree Cheers, Ryan On Jan 30, 2008, at 10:16 AM, Diego Algorta Casamayou wrote:> Hi there, > > I''ve known puppet since more than a year now, but never used it > until now. > > I''ve been reading a lot about puppet: Installation guide, simplest > puppet recipe, Best practices... > But I still feel kinda lost to start. :( > > As I''m starting to test on a stand alone server, I think I don''t > really need to run the puppetmasterd server, am I right? What should I > do in this case? > > I have less than 2 weeks to migrate our current prduction environment > (which was setup by a previous employee) to new servers. > > Right now we have (basicaly): > * 2 application servers running RHEL 4 and this services: ntp, monit, > nginx, mongrel (running ruby on rails applications), pgpool and > PowerDNS. > * 2 database servers running RHEL 4 and this services: monit, > postgresql, and slony. > > Almost all of this services have been custom compiled and installed on > the same servers. Ugly, but we may need to keep doing this for some > services. > > The new servers run a vanilla installation of RHEL 5. > > I have been administering linux servers for years with many services. > But I''ve never used a centralized management approach as puppet. > I want to start with just a few services, yes. But I need to advance > fast. :) > > So any recommendations would be helpful. > -- > Diego Algorta Casamayou > http://www.oboxodo.com - http://diego.algorta.net > _______________________________________________ > Puppet-users mailing list > Puppet-users@madstop.com > https://mail.madstop.com/mailman/listinfo/puppet-users
And don''t forget about James Turnbull''s Puppet book...I don''t have it myself but I believe that my employer is ordering several copies of it. The ebook is available now and might be of use to you.>As Luke mentioned on his weblog >(http://www.madstop.com/puppet/puppet_book_now_on_amazon.html)I''ve>written a book about Puppet. > >The book is a beginner-to-intermediate introduction to Puppetand the>rough table of contents is: > >Chapter 1 - Introduction >Chapter 2 - Installation >Chapter 3 - The Puppet language >Chapter 4 - How to use Puppet >Chapter 5 - Reports and reporting >Chapter 6 - Advanced Puppet: external nodes, LDAP nodes, andscalability>Chapter 7 - Extending Puppet and Facter: creating new facts,types and>providers. > >The book has now been released and can be seen at thepublishers at:> >http://www.apress.com/book/view/1590599780 > >and Amazon.com: > >http://www.amazon.com/Pulling-Strings-Puppet-Configuration-Management/dp/1590599780/ref=sr_1_7?ie=UTF8&s=books&qid=1195422888&sr=1-7 > >It is available as both an e-book and a paper-based book.---- Original message ---->Date: Wed, 30 Jan 2008 10:24:51 -0800 >From: Ryan Dooley <rd@powerset.com> >Subject: Re: [Puppet-users] Newie with a deadline... >To: Puppet User Discussion <puppet-users@madstop.com> > >Hi Diego, > >One of the first things I read was David Lutterkort''s overview: > > http://people.redhat.com/dlutter/puppet-app.html > >Which helped me get a good jump start on using puppet. Asyou begin>to ask questions, the puppet wiki is full of examples,especially the>recipe section: > > http://reductivelabs.com/trac/puppet/tags/puppet%2Crecipe > >I''d also have a look at a real-world configuration examplesuch as>David Schmitt''s modules: > > http://git.black.co.at/?p=manifests.git;a=tree > >Cheers, >Ryan > >On Jan 30, 2008, at 10:16 AM, Diego Algorta Casamayou wrote: > >> Hi there, >> >> I''ve known puppet since more than a year now, but neverused it>> until now. >> >> I''ve been reading a lot about puppet: Installation guide,simplest>> puppet recipe, Best practices... >> But I still feel kinda lost to start. :( >> >> As I''m starting to test on a stand alone server, I think Idon''t>> really need to run the puppetmasterd server, am I right?What should I>> do in this case? >> >> I have less than 2 weeks to migrate our current prductionenvironment>> (which was setup by a previous employee) to new servers. >> >> Right now we have (basicaly): >> * 2 application servers running RHEL 4 and this services:ntp, monit,>> nginx, mongrel (running ruby on rails applications), pgpool and >> PowerDNS. >> * 2 database servers running RHEL 4 and this services: monit, >> postgresql, and slony. >> >> Almost all of this services have been custom compiled andinstalled on>> the same servers. Ugly, but we may need to keep doing thisfor some>> services. >> >> The new servers run a vanilla installation of RHEL 5. >> >> I have been administering linux servers for years with manyservices.>> But I''ve never used a centralized management approach aspuppet.>> I want to start with just a few services, yes. But I needto advance>> fast. :) >> >> So any recommendations would be helpful. >> -- >> Diego Algorta Casamayou >> http://www.oboxodo.com - http://diego.algorta.net >> _______________________________________________ >> Puppet-users mailing list >> Puppet-users@madstop.com >> https://mail.madstop.com/mailman/listinfo/puppet-users > >_______________________________________________ >Puppet-users mailing list >Puppet-users@madstop.com >https://mail.madstop.com/mailman/listinfo/puppet-users
Perhaps you should consider bringing in a consultant to help get you started, considering your deadline. Reductive Labs provides commercial support, though I can''t speak to their availability. On Wed, Jan 30, 2008 at 04:16:59PM -0200, Diego Algorta Casamayou wrote:> Hi there, > > I''ve known puppet since more than a year now, but never used it until now. > > I''ve been reading a lot about puppet: Installation guide, simplest > puppet recipe, Best practices... > But I still feel kinda lost to start. :( > > As I''m starting to test on a stand alone server, I think I don''t > really need to run the puppetmasterd server, am I right? What should I > do in this case? > > I have less than 2 weeks to migrate our current prduction environment > (which was setup by a previous employee) to new servers. > > Right now we have (basicaly): > * 2 application servers running RHEL 4 and this services: ntp, monit, > nginx, mongrel (running ruby on rails applications), pgpool and > PowerDNS. > * 2 database servers running RHEL 4 and this services: monit, > postgresql, and slony. > > Almost all of this services have been custom compiled and installed on > the same servers. Ugly, but we may need to keep doing this for some > services. > > The new servers run a vanilla installation of RHEL 5. > > I have been administering linux servers for years with many services. > But I''ve never used a centralized management approach as puppet. > I want to start with just a few services, yes. But I need to advance fast. :) > > So any recommendations would be helpful. > -- > Diego Algorta Casamayou > http://www.oboxodo.com - http://diego.algorta.net > _______________________________________________ > Puppet-users mailing list > Puppet-users@madstop.com > https://mail.madstop.com/mailman/listinfo/puppet-users------------------------------------------------------------------ Russell Adams RLAdams@AdamsInfoServ.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3
Russel has an excellent point there, Reductive offers a bootstrap option that would probably meet Diego''s needs perfectly. C On 1/30/08, Russell Adams <RLAdams@adamsinfoserv.com> wrote:> > Perhaps you should consider bringing in a consultant to help get you > started, considering your deadline. > > Reductive Labs provides commercial support, though I can''t speak to > their availability. > > On Wed, Jan 30, 2008 at 04:16:59PM -0200, Diego Algorta Casamayou wrote: > > Hi there, > > > > I''ve known puppet since more than a year now, but never used it until > now. > > > > I''ve been reading a lot about puppet: Installation guide, simplest > > puppet recipe, Best practices... > > But I still feel kinda lost to start. :( > > > > As I''m starting to test on a stand alone server, I think I don''t > > really need to run the puppetmasterd server, am I right? What should I > > do in this case? > > > > I have less than 2 weeks to migrate our current prduction environment > > (which was setup by a previous employee) to new servers. > > > > Right now we have (basicaly): > > * 2 application servers running RHEL 4 and this services: ntp, monit, > > nginx, mongrel (running ruby on rails applications), pgpool and > > PowerDNS. > > * 2 database servers running RHEL 4 and this services: monit, > > postgresql, and slony. > > > > Almost all of this services have been custom compiled and installed on > > the same servers. Ugly, but we may need to keep doing this for some > > services. > > > > The new servers run a vanilla installation of RHEL 5. > > > > I have been administering linux servers for years with many services. > > But I''ve never used a centralized management approach as puppet. > > I want to start with just a few services, yes. But I need to advance > fast. :) > > > > So any recommendations would be helpful. > > -- > > Diego Algorta Casamayou > > http://www.oboxodo.com - http://diego.algorta.net > > _______________________________________________ > > Puppet-users mailing list > > Puppet-users@madstop.com > > https://mail.madstop.com/mailman/listinfo/puppet-users > > > ------------------------------------------------------------------ > Russell Adams RLAdams@AdamsInfoServ.com > > PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ > > Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3 > _______________________________________________ > Puppet-users mailing list > Puppet-users@madstop.com > https://mail.madstop.com/mailman/listinfo/puppet-users >-- stickm@gmail.com -==< Stick >==- _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
On Jan 30, 2008 5:15 PM, Chris MacLeod <stickm@gmail.com> wrote:> Russel has an excellent point there, Reductive offers a bootstrap option > that would probably meet Diego''s needs perfectly.I know, I know. But that''s not my call. And, I''d like to learn how to use it by myself. At least I want to give it a try. -- Diego Algorta Casamayou http://www.oboxodo.com - http://diego.algorta.net
On Jan 30, 2008 4:24 PM, Ryan Dooley <rd@powerset.com> wrote:> Hi Diego, > > One of the first things I read was David Lutterkort''s overview: > > http://people.redhat.com/dlutter/puppet-app.htmlCool. Read it.> > Which helped me get a good jump start on using puppet. As you begin > to ask questions, the puppet wiki is full of examples, especially the > recipe section: > > http://reductivelabs.com/trac/puppet/tags/puppet%2Crecipe > > I''d also have a look at a real-world configuration example such as > David Schmitt''s modules: > > http://git.black.co.at/?p=manifests.git;a=tree >I have all of that. But I need something more basic to start with. All documentation is based on the client/server side of puppet. For testing purposes I''m trying to run it standalone (puppet, not puppetd). I can''t find useful documentation for that. I started with this but can''t get it to run: # site.pp file { "/tmp/testing-puppet": owner => "diego", group => "root", mode => 440; } package {sudo: ensure => installed } file { "/etc/sudoers": owner => "root", group => "root", mode => 440; "/usr/bin/sudo": owner => "root", group => "root", mode => 4755 } puppet --verbose --use-nodes master/manifests/site.pp And it shows... nothing. And does nothing. I suppose I may need a node definition? But this is to apply on the localhost, on standalone. What could be my error? -- Diego Algorta Casamayou http://www.oboxodo.com - http://diego.algorta.net
> puppet --verbose --use-nodes master/manifests/site.pp > > And it shows... nothing. And does nothing. >If you don''t have nodes defined, don''t use ''--use-nodes''. ;] I use puppet "offline" quite a bit. ------------------------------------------------------------------ Russell Adams RLAdams@AdamsInfoServ.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3
On Jan 30, 2008 7:18 PM, Russell Adams <RLAdams@adamsinfoserv.com> wrote:> > puppet --verbose --use-nodes master/manifests/site.pp > > > > And it shows... nothing. And does nothing. > > > > If you don''t have nodes defined, don''t use ''--use-nodes''. ;]OK. Cool. But then... how should I run it? How should I inform puppet where are its instructions? It would be good to have some kind of command line parameters documentation. Running puppet --help doesn''t help: ~~~~~~~~~~~~~~~~ $ puppet --help This file was generated by RubyGems. The application ''puppet'' is installed as part of a gem, and this file is here to facilitate running it. ~~~~~~~~~~~~~~~~ Thx for the help. -- Diego Algorta Casamayou http://www.oboxodo.com - http://diego.algorta.net
Diego Algorta Casamayou schrieb:> On Jan 30, 2008 7:18 PM, Russell Adams <RLAdams@adamsinfoserv.com> wrote: >>> puppet --verbose --use-nodes master/manifests/site.pp >>> >>> And it shows... nothing. And does nothing. >>> >> If you don''t have nodes defined, don''t use ''--use-nodes''. ;] > > OK. Cool. But then... how should I run it? How should I inform puppet > where are its instructions?puppet --verbose master/manifests/site.pp Regards, DavidS
On Jan 31, 2008 11:09 AM, David Schmitt <david@schmitt.edv-bus.at> wrote:> Diego Algorta Casamayou schrieb: > > On Jan 30, 2008 7:18 PM, Russell Adams <RLAdams@adamsinfoserv.com> wrote: > >>> puppet --verbose --use-nodes master/manifests/site.pp > >>> > >>> And it shows... nothing. And does nothing. > >>> > >> If you don''t have nodes defined, don''t use ''--use-nodes''. ;] > > > > OK. Cool. But then... how should I run it? How should I inform puppet > > where are its instructions? > > puppet --verbose master/manifests/site.pp >Thank you. But... it does nothing :( 1) Do you know where/how could I get a list of what parameters does puppet accept? 2) This is the output of running the command as you proposed (with the adition of sudo so puppet has the needed rights): $ sudo puppet --verbose master/manifests/site.pp $ As you can see... thare are no errors. And --verbose seems to have no effect. No news, good news? No. It didn''t do anything I had in my manifest. So my manifest can be wrong, but puppet doesn''t tell me so: # site.pp file { "/tmp/testing-puppet": owner => "diego", group => "root", mode => 440; } package {sudo: ensure => installed } file { "/etc/sudoers": owner => "root", group => "root", mode => 440; "/usr/bin/sudo": owner => "root", group => "root", mode => 4755 } I''m expecting puppet to tell me something about my non-existant file /tmp/testing/puppet -- Diego Algorta Casamayou http://www.oboxodo.com - http://diego.algorta.net
Diego Algorta Casamayou schrieb:> On Jan 31, 2008 11:09 AM, David Schmitt <david@schmitt.edv-bus.at> wrote: >> Diego Algorta Casamayou schrieb: >>> On Jan 30, 2008 7:18 PM, Russell Adams <RLAdams@adamsinfoserv.com> wrote: >>>>> puppet --verbose --use-nodes master/manifests/site.pp >>>>> >>>>> And it shows... nothing. And does nothing. >>>>> >>>> If you don''t have nodes defined, don''t use ''--use-nodes''. ;] >>> OK. Cool. But then... how should I run it? How should I inform puppet >>> where are its instructions? >> puppet --verbose master/manifests/site.pp >> > > Thank you. But... it does nothing :( > > 1) Do you know where/how could I get a list of what parameters does > puppet accept?http://reductivelabs.com/trac/puppet/wiki/ConfigurationReference> 2) This is the output of running the command as you proposed (with the > adition of sudo so puppet has the needed rights): > $ sudo puppet --verbose master/manifests/site.pp > $ > > As you can see... thare are no errors. And --verbose seems to have no > effect. No news, good news? No. It didn''t do anything I had in my > manifest. So my manifest can be wrong, but puppet doesn''t tell me so: > > # site.pp > file { > "/tmp/testing-puppet": > owner => "diego", > group => "root", > mode => 440; > } > package {sudo: ensure => installed } > file { > "/etc/sudoers": > owner => "root", > group => "root", > mode => 440; > "/usr/bin/sudo": > owner => "root", > group => "root", > mode => 4755 > } > > I''m expecting puppet to tell me something about my non-existant file > /tmp/testing/puppetAs you yourself recognized on IRC, you''re missing the "ensure" parameter. Read http://reductivelabs.com/trac/puppet/wiki/TypeReference for more info. Regards, David
On Jan 31, 2008 12:01 PM, David Schmitt <david@schmitt.edv-bus.at> wrote:> Diego Algorta Casamayou schrieb: > > On Jan 31, 2008 11:09 AM, David Schmitt <david@schmitt.edv-bus.at> wrote: > >> Diego Algorta Casamayou schrieb: > >>> On Jan 30, 2008 7:18 PM, Russell Adams <RLAdams@adamsinfoserv.com> wrote: > >>>>> puppet --verbose --use-nodes master/manifests/site.pp > >>>>> > >>>>> And it shows... nothing. And does nothing. > >>>>> > >>>> If you don''t have nodes defined, don''t use ''--use-nodes''. ;] > >>> OK. Cool. But then... how should I run it? How should I inform puppet > >>> where are its instructions? > >> puppet --verbose master/manifests/site.pp > >> > > > > Thank you. But... it does nothing :( > > > > 1) Do you know where/how could I get a list of what parameters does > > puppet accept? > > http://reductivelabs.com/trac/puppet/wiki/ConfigurationReference > > > 2) This is the output of running the command as you proposed (with the > > adition of sudo so puppet has the needed rights): > > $ sudo puppet --verbose master/manifests/site.pp > > $ > > > > As you can see... thare are no errors. And --verbose seems to have no > > effect. No news, good news? No. It didn''t do anything I had in my > > manifest. So my manifest can be wrong, but puppet doesn''t tell me so: > > > > # site.pp > > file { > > "/tmp/testing-puppet": > > owner => "diego", > > group => "root", > > mode => 440; > > } > > package {sudo: ensure => installed } > > file { > > "/etc/sudoers": > > owner => "root", > > group => "root", > > mode => 440; > > "/usr/bin/sudo": > > owner => "root", > > group => "root", > > mode => 4755 > > } > > > > I''m expecting puppet to tell me something about my non-existant file > > /tmp/testing/puppet > > As you yourself recognized on IRC, you''re missing the "ensure" parameter. > > Read http://reductivelabs.com/trac/puppet/wiki/TypeReference for more info. > > > Regards, DavidThank you. -- Diego Algorta Casamayou http://www.oboxodo.com - http://diego.algorta.net
David Schmitt <david@schmitt.edv-bus.at> writes:> Diego Algorta Casamayou schrieb: >> >> 1) Do you know where/how could I get a list of what parameters does >> puppet accept? > > http://reductivelabs.com/trac/puppet/wiki/ConfigurationReferenceTo OP: to avoid going to the web for a quick help message, I find it useful just to read the docs embedded in the source: less `which puppet` or less `which puppetd` Or, if you have "rdoc" package installed then puppet --help or puppetd --help will show you the docs as well. -Brett.