Evan Hisey
2008-Jun-17 20:54 UTC
[Puppet Users] Suggestions for one-time initializtion by puppet
I am having a small problem. I am setting up puppet to handle a small RHEL cluster The basic of installing the apps, getting services turned on is all working. The problem is I need a way to do the initialization of luci ( the redhat webinterface to the Conga suite). This a one time operation and should only happen when luci is first installed. I have found that is normally smarter and easier to resotre data to a clean configured puppet managed box after it has been put online than to attempt to have puppet do the data restore on a server rebuild.. The old adage of the right tool for the right job, let puppet handle the SCM and teh backup system handle the backup/restore. I am at a loss as to the right tool to handle one-time service init tasks. Any pointers, recommendations or suggestions? Evan --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Luke Kanies
2008-Jun-17 21:10 UTC
[Puppet Users] Re: Suggestions for one-time initializtion by puppet
On Jun 17, 2008, at 3:54 PM, Evan Hisey wrote:> > I am having a small problem. I am setting up puppet to handle a small > RHEL cluster The basic of installing the apps, getting services turned > on is all working. The problem is I need a way to do the > initialization of luci ( the redhat webinterface to the Conga suite). > This a one time operation and should only happen when luci is first > installed. > > I have found that is normally smarter and easier to resotre data to a > clean configured puppet managed box after it has been put online than > to attempt to have puppet do the data restore on a server rebuild.. > The old adage of the right tool for the right job, let puppet handle > the SCM and teh backup system handle the backup/restore. I am at a > loss as to the right tool to handle one-time service init tasks. > > Any pointers, recommendations or suggestions?In this situation, I would normally have an external script that did that work, and just trigger that from puppet as part of the install. -- Susskind''s Rule of Thumb: Don''t ask what they think. Ask what they do. --------------------------------------------------------------------- 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 -~----------~----~----~----~------~----~------~--~---
Mike Renfro
2008-Jun-17 21:12 UTC
[Puppet Users] Re: Suggestions for one-time initializtion by puppet
On 6/17/2008 3:54 PM, Evan Hisey wrote:> I am having a small problem. I am setting up puppet to handle a small > RHEL cluster The basic of installing the apps, getting services turned > on is all working. The problem is I need a way to do the > initialization of luci ( the redhat webinterface to the Conga suite). > This a one time operation and should only happen when luci is first > installed.If luci is a package, you can have an exec with a require dependency on that package''s installation. If the initialization leaves traces on the filesystem, or through any shell command so that you know it''s been done, you can either use a ''creates'' with the exec for a file, or an ''onlyif'' with the exec for a shell command. http://reductivelabs.com/bzr/modules/subversion/manifests/svnrepo.pp has an example that only creates repositories once, that you could use for a jumping off point. -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---