Home Linux & Systems Cybersecurity Cloud & DevOps Networks & Infrastructure SIEM & Monitoring DFIR & Threat Intel Development & Other All categories Projects About Tools

Installing Chef-Server on GNU/Linux

Leer en espanol
Installing Chef-Server on GNU/Linux

Table of contents

Chef is an infrastructure automation system developed by Opscode that makes it easier to deploy servers and applications to any physical, virtual or cloud location ===

What is Chef?

chef-architectureChef is an infrastructure automation system developed by Opscode that makes it easier to deploy servers and applications to any physical, virtual, or cloud location, regardless of the size of the infrastructure. Each organization consists of one (or more) Workstations, a single server, and each node to be configured and maintained by Chef.

Initial Configuration

First we must add our internal DNS server or configure the FQDN in the file /etc/hosts

Bash
root@chef:~# cat /etc/hosts

127.0.0.1 localhost

127.0.1.1 chef.redorbita.com chef
192.168.1.88 chef.redorbita.com chef

Facility

We download the software from the official website https://downloads.chef.io/chef-server/

Ubuntu: 

text
wget https://web-dl.packagecloud.io/chef/stable/packages/ubuntu/trusty/chef-server-core_12.1.2-1_amd64.deb
dpkg -i  chef-server-core_12.1.2-1_amd64.deb

Red hat:

Bash
wget https://web-dl.packagecloud.io/chef/stable/packages/el/7/chef-server-core-12.1.2-1.el7.x86_64.rpm
yum localinstall chef-server-core-12.1.2-1.el7.x86_64.rpm

We configure chef-server

Bash
sudo chef–server–ctl reconfigure

We test the configuration

Bash
sudo chef–server–ctl test

We create the user and organization:

Syntax:

text
chef-server-ctl user-create USERNAME FIRST_NAME LAST_NAME EMAIL PASSWORD
  • Username: admin
  • First Name: admin
  • Last Name: admin
  • E-mail: admin@redorbita.com
  • Password: admin
  • Filename: admin.pem

Example:

Bash
sudo chef-server-ctl user-create admin admin admin admin@redorbita.com admin1234 -f admin.pem

We create the organization:

Syntax:

text
chef-server-ctl org-create SHORTNAME LONGNAME –association_user USERNAME
  • Short Name: rokitoh
  • Long Name: redorbita
  • Association User: admin
  • Filename: rokitoh-validator.pem

Example:

Bash
sudo chef-server-ctl org-create rokitoh «Red-Orbita» –association_user admin -f rokitoh-validator.pem

We install opscode-manage

text
chef-server-ctl install opscode-manage

We configure the new installation:

text
chef-server-ctl reconfigure
opscode-manage-ctl reconfigure

We access through our browser: https://chef.redorbita.com/login

Captura de pantalla de 2015-07-26 23:35:54

Captura de pantalla de 2015-07-26 23:35:59

Regards, Rokitoh

:wq!

Comments