How do I install chef on Ubuntu

0 votes
How do I install chef on Ubuntu?
Feb 26, 2019 in Chef by Yamini

1 answer to this question.

0 votes

Hey @Yamini, follow these steps to install chef on ubuntu:

Update repositories

$ sudo apt-get update

Change your hostname

$ hostname ''

set up NTP

$ apt install ntp
$ systemctl start ntp
$ systemctl enable ntp
$ ntpq -p

Download and install chef

$ wget

$ dpkg -i chef-server-*.deb

Configure chef

$ chef-server-ctl reconfigure

Check chef status

$ chef-server-ctl status

Install web-management console

$ chef-server-ctl install chef-manage
$ chef-server-ctl reconfigure

$ chef-manage-ctl reconfigure

$ chef-manage-ctl reconfigure --accept-license

Create a directory for holding all the keys

$ mkdir ~/.chef

Create new admin by executing the following command

$ chef-server-ctl user-create admin Chef Administrator StrongPassword -f ~/.chef/admin.pem

Create a new organization using the following command

$ chef-server-ctl org-create my_org 'My Organization' --association_user admin -f ~/.chef/my_org.pem

Access web-console


answered Feb 26, 2019 by Kalgi
• 52,370 points

Related Questions In Chef

0 votes
1 answer

How do I run chef client?

You've kinda answered your own question there. ...READ MORE

answered Jun 14, 2018 in Chef by ajs3033
• 7,280 points
0 votes
1 answer

How do I Force push a recipe to the end of run_list Iin Chef?

Here is a concept which you can ...READ MORE

answered Aug 7, 2018 in Chef by Damon Salvatore
• 5,980 points
+5 votes
2 answers
0 votes
1 answer

Chef server on windows - Is that possible?

You cannot set a chef server on ...READ MORE

answered Feb 27, 2019 in Chef by Lina
0 votes
2 answers
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
+1 vote
2 answers

Unable To Create a Chef Node "ChefNode2"

Try giving the password to access your ...READ MORE

answered Oct 16, 2018 in Chef by Kalgi
• 52,370 points
+2 votes
3 answers

Using attributes in Chef

There are 6 different types of attributes: default: A default attribute ...READ MORE

answered Oct 23, 2018 in Chef by Aditya