Results 1 to 2 of 2

Thread: Chef cookbook for easyapache builds

  1. #1
    Registered User
    Join Date
    Jun 2012
    Posts
    2
    cPanel/WHM Access Level

    DataCenter Provider

    Default Chef cookbook for easyapache builds

    Hey all,

    I haven't come across any posts regarding people using Chef for configuration management, which I find a little surprising as infrastructure continues to grow. At this time we have about 29 cPanel servers. In order to manage these more efficiently we've implemented Chef (Chef | Opscode) for various tasks. One such task is to handle the easyapache builds via a Master .yaml file. For instance, in order to upgrade to the latest version of PHP, we update our .yaml file under version control on our Chef-server and push this out via Chef-client to all nodes.

    This is a community contribution, so feel free to submit requests for new features. Hopefully there is someone out there using Chef, or at least looking into it. The links for the project are below!

    https://github.com/derekschultz/easyapache
    Chef Cookbook: easyapache - Opscode Community



    Derek
    Linux Administrator
    Last edited by bobloblaw; 06-20-2012 at 01:51 PM.

  2. #2
    Registered User
    Join Date
    Jun 2012
    Posts
    2
    cPanel/WHM Access Level

    DataCenter Provider

    Default Re: Chef cookbook for easyapache builds

    In addition, I am looking into controlling /var/cpanel/cpanel.config to serve as a master template file for all servers in our environment. From an infrastructure view, all servers/nodes are required to have the same basic config. This is where Chef comes in for configuration management, allowing us to deploy this master template out to all servers, thereby taking away the tedious tasks of manually updating everything.

    The question being: suppose this master config file is in its current state, and a cPanel update comes around. What is the probability of this file being overwritten on the server (e.g. new options added)? In that case, we should see that the file has changed by doing a diff on the cPanel server and the Chef server. Well, we can then update the master config with what has been pushed out via the upgrade and continue on without issue.

    This also extends to various other configuration files:
    httpd.conf - we need to ensure certain attributes are set (TraceEnable, ServerTokens, FileETag)
    exim.conf - custom configurations
    pure-ftpd.conf - ensure anonymous FTP has not been re-enabled
    etc...

    It appears the cpanel.config is probably the safest to manage. It gets pushed out, and we issue a restart of cPanel services, right? What about other attributes in these conf files? Can they be successfully managed without WHM -> Tweak Settings, or Service Configuration for Apache and FTP?


    Derek
    Linux Administrator
    Last edited by bobloblaw; 06-21-2012 at 06:24 PM.

Similar Threads

  1. Help!! Apache Builds Failing.
    By Liberty-Host in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 03-19-2007, 05:15 AM
  2. new builds release
    By abubin in forum New User Questions
    Replies: 6
    Last Post: 08-21-2005, 10:09 PM
  3. New optimization builds?
    By fishfreek in forum cPanel & WHM Discussions
    Replies: 4
    Last Post: 07-09-2004, 03:30 PM
  4. new builds info
    By manokiss in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 08-14-2002, 03:04 AM
  5. How to Update New Cpanel Builds ?
    By hkewell in forum cPanel & WHM Discussions
    Replies: 6
    Last Post: 05-24-2002, 05:26 PM