On Mon, Jan 26, 2009 at 09:59:18AM -0800, kevin wrote:
>
> Hi, I need to bulk enable a series of apache modules on
> debian/ubuntu.
>
> on the server itself I would just use this invocation: ( works,
> not sure about the style points )
>
> perl -e 'print join " ", map { /^(.*?)\.load/ } <*.load>' |
> a2enmod
>
> Now i just need to get puppet to do this for me, so i can restart
> apache once instead of each time i add a module.
>
> how to execute this ?
Puppet will only do things once, in general, that have been
requested by other things. I use the apache::module bit of
http://reductivelabs.com/trac/puppet/wiki/CompleteConfiguration
If you have a bunch of modules that all "before" an apache restart,
it'll only get restarted once, and I think Schmitt's Apache module
does that already.
-Robin
--
They say: "The first AIs will be built by the military as weapons."
And I'm thinking: "Does it even occur to you to try for something
other than the default outcome?" -- http://shorl.com/tydruhedufogre
http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---