
Note:
Installing the Chef server on Ubuntu 16.04 LTS. The cloud platform used is the google cloud platform. Make sure you have proper FQDN
[code lang=”bash” title=”Update Package Cache”]
sudo apt update && sudo apt upgrade -y
[/code]
[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]
[code lang=”bash” title=”Updating TimeZone”]
sudo timedatectl set-timezone Asia/Kolkata
[/code]
[code lang=”bash” title=”Download Chef Server”]
wget https://packages.chef.io/files/stable/chef-server/12.16.14/ubuntu/16.04/chef-server-core_12.16.14-1_amd64.deb
[/code]
[code lang=”bash” title=”Install Chef Server”]
sudo dpkg -i chef-server-core_12.16.14-1_amd64.deb
[/code]
[code lang=”bash” title=”Configure newly installed chef server”]
sudo chef-server-ctl reconfigure
[/code]
[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]
[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]
[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]
[code lang=”bash” title=”Creating .chef directory to store keys”]
sudo mkdir -p ~/.chef
sudo mv admin.pem skydevops-validator.pem ~/.chef
[/code]
[code lang=”bash” title=”Access Chef Server”]
https://FQDN
[/code]
No comments:
Post a Comment
If you have any doubts or questions, please let us know.