Installation of Enterprise chef server in AWS
- A T2 Small or greater AWS Instance is good enough
- Ubuntu Linux OS platform
- Public IP address
- Your local machine is good enough with min configuration
- Windows OS platform
- Chef DK installation file
- A node can be of any platform and configuration
- Depends on what you run on the node machine
- IP address
Set up an AWS instance to install enterprise chef-server
- When the AWS Instance is up & running, follow the commands to update the machine “apt-get update”.
- When this is done, change to your home directory and download the Chef Server package from the Chef’s official site (https://downloads.chef.io/chef-server) depending on your requirement download the version for your OS platform using the “wget [link]” command.
- To get the link, select the version you want to download and copy the URL for the following and this must be similar in the below picture
- In a while your Chef Server package gets downloaded.
- Install the downloaded package using “sudo dpkg -i package_name.deb”.
- And your Chef Server package gets installed.
- Once the installation is completed, you must call the reconfigure command which configure the components that makes up the server to work together in your specified environment. To do so, use the following command “sudo chef-server-ctl reconfigure” which takes a while to reconfigure.
- Create an Admin User in the below mentioned format
First Name: admin
Last Name: admin
- So, your complete command should look like the following “sudo chef-server-ctl user-create admin admin admin email@example.com admin@123 -f admin.pem” (where admin.pem is the file where your credentials are saved and stored in the server). Thus, a user is created.
- Now create an Organization in the below mentioned format
Short Name: omniwyse
Long Name: Omniwyse, Inc. or LTD or Pvt Ltd etc. (here I use only Omniwyse)
Association User: admin
Filename: omniwyse-validator.pem (This is your Organization validation key)
- So, your complete command should look like the following “sudo chef-server-ctl org-create omniwyse “Omniwyse, Inc.” –association_user admin -f omniwyse-validator.pem”.
- Once done, hit the IP address of your Chef Server in the browser which prompts to do additional three more steps which are
A: chef-server-ctl install chef-manage
B: chef-server-ctl reconfigure
C: chef-manage-ctl reconfigure
- After completing these steps, refresh your browser and you can login into your Chef Server using your credentials which you just created above.
Thus, your Chef Server is ready to serve.