Skip to content

Chef Server Installation

Installing Chef server on Ubuntu 16.04 LTS. Cloud platform used is google cloud platform. Make sure you have proper FQDN

[code lang=”bash” title=”Update Package Cache”]
sudo apt update && sudo apt upgrade -y

[code lang=”bash” title=”Update Locale”]
sudo locale-gen en_GB.UTF-8
export LANGUAGE=en_US.UTF-8 && export LC_ALL=en_US.UTF-8 && export LANG=en_US.UTF-8 && export LC_TYPE=en_US.UTF-8

[code lang=”bash” title=”Updating TimeZone”]
sudo timedatectl set-timezone Asia/Kolkata

[code lang=”bash” title=”Download Chef Server”]

[code lang=”bash” title=”Install Chef Server”]
sudo dpkg -i chef-server-core_12.16.14-1_amd64.deb

[code lang=”bash” title=”Configure newly installed chef server”]
sudo chef-server-ctl reconfigure

[code lang=”bash” title=”Installing Chef Manage”]
sudo chef-server-ctl install chef-manage
sudo chef-server-ctl reconfigure
sudo chef-manage-ctl reconfigure –accept-license

[code lang=”bash” title=”Creating Admin User”]
sudo chef-server-ctl user-create USER_NAME FIRST_NAME LAST_NAME EMAIL ‘PASSWORD’ –filename FILE_NAME.pem

[code lang=”bash” title=”Creating Organization”]
sudo chef-server-ctl org-create short_name ‘full_organization_name’ –association_user user_name –filename ORGANIZATION-validator.pem

[code lang=”bash” title=”Creating .chef directory to store keys”]
sudo mkdir -p ~/.chef
sudo mv admin.pem skydevops-validator.pem ~/.chef

[code lang=”bash” title=”Access Chef Server”]

Shashi View All

-== Superman ==-

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: