Today we will install chef server in our home lab based on proxmox 3.4.6. So we have installed server 2cpu, 2Gb memory, Centos 6.7
First of all I switched off selinux, and configured hostname of server in /etc/sysconfig/network and /etc/hosts
Let's go on:
#wget https://web-dl.packagecloud.io/chef/stable/packages/el/6/chef-server-core-12.1.2-1.el6.x86_64.rpm
# rpm -Uvh chef-server-core-12.1.2-1.el6.x86_64.rpm
# chef-server-ctl reconfigure
#chef-server-ctl user-create vovando Volodymyr Vrublevskyy user@!!!.com [passrord] –filename /tmp/vovando.pem
#chef-server-ctl org-create vovando "Vovandos Com" –association_user vovando –filename /tmp/VOVANDO-validator.pem
If you have problem with create user such as:
ERROR: Connection refused connecting to https://127.0.0.1/users/, retry 1/5
- Edit /etc/hosts and add your server's hostname (FQDN).
- Run chef-server-ctl reconfigure
- Run chef-server-ctl status to make sure all the processes are running (none should say down. If one is down, try running chef-server-ctl restart).
- Run your chef-server-ctl user-create… command again. Сheck your firewall and selinux also.
Enable additional features of the Chef server! The packages may be downloaded directly as part of the installation process or they may be first downloaded to a local directory, and then installed.
Use Downloads
The install subcommand downloads packages from https://packagecloud.io/ by default. For systems that are not behind a firewall (and have connectivity to https://packagecloud.io/), these packages can be installed as described below.
Feature | Command |
---|---|
Chef Manage |
Use Chef management console to manage data bags, attributes, run-lists, roles, environments, and cookbooks from a web user interface. On the Chef server, run:
then:
and then:
|
Chef Push Jobs |
Use Chef push jobs to run jobs—an action or a command to be executed—against nodes independently of a chef-client run. On the Chef server, run:
then:
and then:
|
Reporting |
Use Chef reporting to keep track of what happens during every chef-client runs across all of the infrastructure being managed by Chef. Run Chef reporting with Chef management console to view reports from a web user interface. On the Chef server, run:
then:
and then:
|
Done.
Leave a Reply