How do I install chef on Ubuntu?

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

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 'chef.yourdomain.com'

set up NTP

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

Download and install chef

$ wget https://packages.chef.io/files/stable/chef-server/12.15.8/ubuntu/16.04/chef-server-core_12.15.8-1_amd64.deb

$ 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 chef@yourdomain.com 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

http://Your-Server-IP

answered Feb 26 by Kalgi
• 39,310 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
24 views
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,510 points
46 views
+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 in Chef by Lina
16 views
0 votes
2 answers
+13 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,380 points
114 views
+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
• 39,310 points
253 views
+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
295 views