Skip to content

Private Chef Server Setup on RHEL7

  • Following is the guide to install & configure Private chef server 12.17.X on RHEL7.X.
  • Chef server is deployed and configured on the Google Cloud Platform
  • Chef Server minimum system requirements are as follows:
    • 64-bit architecture
    • 4 total cores (physical or virtual)
    • 8 GB of RAM or more
    • 5 GB of free disk space in /opt
    • 5 GB of free disk space in /var

 

[code lang=”bash” title=”Update Package Cache”]
sudo yum update -y && sudo yum upgrade -y
[/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.17.33/el/7/chef-server-core-12.17.33-1.el7.x86_64.rpm
[/code]

[code lang=”bash” title=”Install Chef Server”]
sudo rpm -Uvh chef-server-core-12.17.33-1.el7.x86_64.rpm
[/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=”Editing Host configurations”]
sudo vi /etc/hosts
IP_ADDRESS chefserver.yebbare.com chefserver
[/code]

[code lang=”bash” title=”Access Chef Server”]
https://FQDN
or
https://IP_ADDRESS
or
https://chefserver.yebbare.com
[/code]

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: