Chef-Infra-Server Standalone Installation

Installation Steps

  • The content of this series is created to help installing the Chef-Infra-Server Standalone. Please refer here for original documentation
  • As per The Chef Infra Server Prerequisites we would use the following configuration in this series, for complete info refer here
    • Operating System: Ubuntu Server 18.04 LTS
    • Hardware Configuration:
      • CPU: 4 vCPU
      • RAM: 16 GB
      • DISK size: 30 GB
    • note: You can try any other flavor of linux as recommended over here
  • ssh into the server and execute the following commands for ubuntu, If you are trying other flavor the only command that will change is the installation using rpm or dpkg. Download the chef-server from [here]
sudo apt-get update
cd /tmp
  • Now install the debian package
sudo dpkg -i /tmp/chef-server-core_13.2.0-1_amd64.deb
  • On the infra-server is installed, then run the following command to start all the services
sudo chef-server-ctl reconfigure
  • Run the following command to create an administrator:
sudo chef-server-ctl user-create USER_NAME FIRST_NAME LAST_NAME EMAIL 'PASSWORD' --filename FILE_NAME

# I would be using the following values
sudo chef-server-ctl user-create khaja khaja lt 'admin@123' --filename /tmp/khaja.pem
  • Now create the organization using the following command
sudo chef-server-ctl org-create short_name 'full_organization_name' --association_user user_name --filename ORGANIZATION-validator.pem

# I would be using the following values
sudo chef-server-ctl org-create learningthoughts 'Learning Thoughts'  --association_user khaja --filename /tmp/khaja-validator.pem
  • Now navigate to https://publicip, you will get server in secure warning Preview Preview

  • At this moment the homepage will not be appearing as what we expect, it would have some static links to documentation

  • Now we need to install chef-manage by executing the following commands

sudo chef-server-ctl install chef-manage
sudo chef-server-ctl reconfigure
sudo chef-manage-ctl reconfigure
  • Now navigate to https://publicip and enter username and credentials Preview
  • Now the home page looks like hosted chef-server Preview
  • Now Download Starterkit and get started Preview

Leave a Reply

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

About learningthoughtsadmin