[chef] managing custom apache configs chef


Chronological Thread 
  • From: Zippy Zeppoli < >
  • To:
  • Subject: [chef] managing custom apache configs chef
  • Date: Tue, 14 Aug 2012 20:48:28 -0700

Hi List,
Is it possible to do the following with Chef and an httpd.conf file.
Here is my logic:

if environment_name (perhaps comes from a file on the system) == PRODUCTION
then sed -i s/LogLevel DEBUG/LogLevel INFO/
fi

So basically if a server meets some condition, then modify the file that is being managed by chef.

Are there any example recipes/cookbooks to this point?

Thank you,
Z



Archive powered by MHonArc 2.6.16.

§