How do I install chef on Ubuntu?

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

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
• 35,800 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,040 points
17 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,270 points
25 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
11 views
0 votes
1 answer
+13 votes
2 answers
+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
• 35,800 points
192 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
175 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.