Saturday, February 22, 2014

Chef OSS-

What is Chef ?

In this blog post we will talk about Open Source Chef Server Installation .

The Open Source Chef server is a free version of the server. Each instance of the Open Source Chef server must be configured and managed locally, including data migrations, applying updates, and ensuring that the local infrastructure scales appropriately. The Open Source Chef server includes support from the community. Support from Chef is optional.

After struggling for so many days with the chef server requirements and dependencies , I have come up with the automated script which will install OSS Chef on RPM based NIX distribution .

Note: Once more Script will only install OSS Chef Server on RPM based Linux.

Once you download the script you can access Chef Server via UI , but for that make sure you

have 443 and 80 ports open.

      https://FQDN or https://PUBLICIP

You need to install Chef Client , please follow below steps to install chef Client for your chef server.

  1. Run the command that appears (for UNIX and Linux environments) or download the omnibus installer (for Microsoft Windows environments). For example, for the Mac OS X:
    curl -L | sudo bash
    and then enter the password for the local machine.
  2. As the chef-client is being installed, the command window will show something like the following:
    Downloading Chef for mac_os_x...
      % Total    % Received  % Xferd   Average  Speed    Time     Time      Time   Current
                                       Dload   Upload    Total    Spent     Left   Speed
    100 23.9M  100 23.9M     0     0    944k       0   0:00:26  0:00:26  --:--:--   838k
    Installing Chef
  3. When the installation is finished enter the following to verify that the chef-client was installed:
    chef-client -v

Also if you are going to use self signed certificate with you Chef Server you
may end in issues while bootstrapping AWS instances with knife gem. Please use --no-check-certificate .

See my below solution on ServerFault , I asked question but noone helped , I found the solution and made some changes in code .

I will be writing another blog post to help you to write cookbooks and define roles in chef.

Some Important points:-

Chef Server Installation Directory 


Enjoy !!

My favorite Quote:-

"I would love to change this world , but they wont give me Source Code."

No comments: