How to install chef 12.x server?



  • he installation of Chef server is fairly easy. The time is taken in making sure all the pre-requisites are in place first.

    Chef can be installed on various version of Linux: CentOS, Oracle Linux, Redhat Enterprise Linux, & Ubuntu

    Do some capacity planning, Chef can be configured in standalone, high availability or tiered methods.

    For instance if you have two datacenters, creatings one chef server in each datacenter is a good idea. Think about the number of client requests that are going to be polling the chef server every 30 mins for updates.

    Turn off role based security tool like SELinux & AppAmor

    SELinux

    $ sudo setenforce Permissive
    

    AppAmor

    $ sudo aa-complain /etc/appamor.d/*
    
    ** Disable Qpid on Centos & Redhat servers, using standard service & chkconfig 
    
    ** Make sure the FQDN is set for the server, Chef also supports IP and IPv6
    
    ** Make sure mail is setup properly & NTP the clock needs to be accurate
    
    ** Make sure groups opscode & opscode-pgsql and users opscode exist.
    

    Performing a standalone installation on Ubuntu

    Download the chef-server package from http://downloads.chef.io/chef-server/

    $ sudo dpkg -i /tmp/chef-server-core-<version>.deb
    

    To start all the service run:

    $ sudo chef-server-ctl reconfigure
    

    Create an admin account
    chef-server-ctl user-create user_name first_name last_name email password --filename FILE_NAME

    eg:

    $ sudo chef-server-ctl user-create brucewayne Bruce Wayne [email protected] fgh123 --filename /etc/chef//brucewayne.pem
    

    Create an organization.
    chef-server-ctl org-create short_name "full_organization_name" --association_user user_name --filename ORGANIZATION-validator.pem

    eg:

    $ sudo chef-server-ctl org-create gotham "Gotham City" --association_user brucewayne --filename /etc/chef/gotham-validator.pem
    

    Install additional tools, Chef manage, Reporting, Chef push jobs, & Replication.

    Install Chef Manage

    $ sudo chef-server-ctl install opscode-manage
    $ sudo chef-server-ctl reconfigure
    $ sudo opscode-manage-ctl reconfigure
    

    Install Chef Push Jobs

    $ sudo chef-server-ctl install opscode-push-jobs-server
    $ sudo chef-server-ctl reconfigure
    $ sudo opscode-push-jobs-server-ctl reconfigure
    

    Install Chef Replication

    $ sudo chef-server-ctl install chef-sync
    $ sudo chef-server-ctl reconfigure
    $ sudo chef-sync-ctl reconfigure
    

    Install Chef Reporting

    $ sudo chef-server-ctl install opscode-reporting
    $ sudo chef-server-ctl reconfigure
    $ sudo opscode-reporting-ctl reconfigure
    

Log in to reply
 

© Lightnetics 2024