Hi all, I''ve noticed, that once using storeconfig, if the db (in my case mysql) is down than puppet wont start... is there a real reason for making puppet depend on the db? Thanks, Ohad _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
Hi> I''ve noticed, that once using storeconfig, if the db (in my case mysql) is > down than puppet wont start... > is there a real reason for making puppet depend on the db?Please correct me if I''m wrong: Well if Puppet cannot read from storedconfigs it won''t be able to fully compile your recipes and therefore will fail anyway. And if you would ignore that, you might even come to the point that puppet will configure a host in a different way as it might not have necessary information from the db. And this would be disastrous. greets pete
On Feb 13, 2008, at 6:13 AM, Peter Meier wrote:> Hi > >> I''ve noticed, that once using storeconfig, if the db (in my case >> mysql) is >> down than puppet wont start... >> is there a real reason for making puppet depend on the db? > > Please correct me if I''m wrong: > > Well if Puppet cannot read from storedconfigs it won''t be able to > fully > compile your recipes and therefore will fail anyway. And if you would > ignore that, you might even come to the point that puppet will > configure > a host in a different way as it might not have necessary information > from the db. And this would be disastrous.Exactly. -- Levy''s Law: The truth is always more interesting than your preconception of what it might be. --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
--- Luke Kanies <luke@madstop.com> wrote:> On Feb 13, 2008, at 6:13 AM, Peter Meier wrote: > > > Hi > > > >> I''ve noticed, that once using storeconfig, if the > db (in my case > >> mysql) is > >> down than puppet wont start... > >> is there a real reason for making puppet depend > on the db? > > > > Please correct me if I''m wrong: > > > > Well if Puppet cannot read from storedconfigs it > won''t be able to > > fully > > compile your recipes and therefore will fail > anyway. And if you would > > ignore that, you might even come to the point that > puppet will > > configure > > a host in a different way as it might not have > necessary information > > from the db. And this would be disastrous. > > Exactly.That doesn''t make sense to me. I can turn the storedconfigs option on or off on puppetmaster and the only thing that changes is whether or not stats are inserted to the DB. Also, I can drop the tables at any time, puppetmaster just recreates them and starts from scratch. I don''t see anything disastrous about that. AFAICT, storedconfigs are just used for reporting. ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
Hi> AFAICT, storedconfigs are just used for reporting.not if you are using modules like this: http://git.black.co.at/?p=module-munin;a=tree see http://reductivelabs.com/trac/puppet/wiki/VirtualResources and http://reductivelabs.com/trac/puppet/wiki/UsingStoredConfiguration greets pete
If the store is unavailable you would get any changed or new configs but any previously collected resource should still be there, unless I''m wrong. If that''s the case I wouldn''t expect that the store being unavailable shouldn''t result in puppetmaster not being able to start. Though it''s kinda slippery slope. I use a very similar munin module to David''s and if the store is unavailable munin isn''t setup right but that''s not catastrophic from an individual machine''s perspective. It all depends on what you are doing with storeconfigs. C On 2/13/08, Peter Meier <peter.meier@immerda.ch> wrote:> > Hi > > > AFAICT, storedconfigs are just used for reporting. > > not if you are using modules like this: > http://git.black.co.at/?p=module-munin;a=tree > > see http://reductivelabs.com/trac/puppet/wiki/VirtualResources and > http://reductivelabs.com/trac/puppet/wiki/UsingStoredConfiguration > > greets pete > _______________________________________________ > 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 Feb 13, 2008, at 12:15 PM, Chris MacLeod wrote:> If the store is unavailable you would get any changed or new configs > but any previously collected resource should still be there, unless > I''m wrong. If that''s the case I wouldn''t expect that the store > being unavailable shouldn''t result in puppetmaster not being able to > start. Though it''s kinda slippery slope. I use a very similar > munin module to David''s and if the store is unavailable munin isn''t > setup right but that''s not catastrophic from an individual machine''s > perspective. It all depends on what you are doing with storeconfigs.There''s only so much Puppet can do to isolate itself from dependencies. In 0.25, this will probably be a bit more tunable, at least allowing you to use storeconfigs and (probably painfully slow) collections without a db (using yaml or something instead), but for now, using it requires it, and anything else would be a huge amount of work. You don''t hear people complaining that web apps aren''t starting just because the db is down, so I don''t think the complaint is appropriate here, either. -- He played the king as if afraid someone else would play the ace. --John Mason Brown --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
John Philips schrieb:> AFAICT, storedconfigs are just used for reporting.As Chris mentioned, this is not true. To give a notion of how far-reaching consequences not having the resource from storeconfig can be, I can tell you that my site''s smtpscanner''s relay rules are configured from storeconfigs. Not having the exported resources would mean instant death to any mail communication here. Regards, DavidS