How do I install chef on Ubuntu

0 votes
How do I install chef on Ubuntu?
Feb 26, 2019 in Chef by Yamini
790 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, 2019 by Kalgi
• 52,350 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,300 points
724 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,980 points
1,189 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 28, 2019 in Chef by Lina
579 views
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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,062 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
• 52,350 points
1,609 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
3,362 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP