Primary Backend¶
Use the following steps to set up the primary backend Chef server:
Download the packages from https://downloads.chef.io/chef-server/. For Red Hat and CentOS 6:
$ rpm -Uvh /tmp/chef-server-core-<version>.rpm
For Ubuntu:
$ dpkg -i /tmp/chef-server-core-<version>.deb
After a few minutes, the Chef server will be installed.
Create a file named chef-server.rb that is located in the
/etc/opscode/
directory. See the chef-server.rb section below for an example of the settings and values that are required.Install DRBD. These steps vary, depending on the platform.
For Ubuntu:
$ apt-get install drbd8-utils
For RedHat and CentOS (all versions), first check for the
xen
kernel:$ rpm -qa kernel\* | grep -ci xen
If anything other than
0
is returned, the machine is running thexen
kernel.For RedHat and CentOS 6.6, install ELRepo:
$ rpm --import http://elrepo.org/RPM-GPG-KEY-elrepo.org
and then:
$ rpm -Uvh http://elrepo.org/elrepo-release-6-5.el6.elrepo.noarch.rpm
Note
The ELRepo provides updated drivers for the Linux family of enterprise distributions (based on Red Hat Enterprise Linux.) With the introduction of Red Hat Enterprise Linux 6, Red Hat no longer distributes DRBD within the kernel. These modules provide properly built, community tested releases of the required kernel and DRBD userland.
If the server returned
0
for thexen
kernel, run:$ yum install -y drbd84-utils kmod-drbd84
If the server returned something other than
0
, run:$ yum install -y drbd84-utils kmod-drbd84-xen
For RedHat and CentOS 6.5, install ELRepo:
$ rpm --import http://elrepo.org/RPM-GPG-KEY-elrepo.org
and then:
$ rpm -Uvh http://elrepo.org/elrepo-release-6-5.el6.elrepo.noarch.rpm
Note
The ELRepo provides updated drivers for the Linux family of enterprise distributions (based on Red Hat Enterprise Linux.) With the introduction of Red Hat Enterprise Linux 6, Red Hat no longer distributes DRBD within the kernel. These modules provide properly built, community tested releases of the required kernel and DRBD userland.
If the server returned
0
for thexen
kernel, run:$ yum install -y drbd84-utils kmod-drbd84-8.4.5-1.el6.elrepo
If the server returned something other than
0
, run:$ yum install -y drbd84-utils kmod-drbd84-xen-8.4.5-1.el6.elrepo
For RedHat and CentOS 5.11, install ELRepo:
$ rpm --import http://elrepo.org/RPM-GPG-KEY-elrepo.org
and then:
$ rpm -Uvh http://www.elrepo.org/elrepo-release-5-5.el5.elrepo.noarch.rpm
Note
The ELRepo provides updated drivers for the Linux family of enterprise distributions (based on Red Hat Enterprise Linux.) With the introduction of Red Hat Enterprise Linux 6, Red Hat no longer distributes DRBD within the kernel. These modules provide properly built, community tested releases of the required kernel and DRBD userland.
If the server returned
0
for thexen
kernel, run:$ yum install -y drbd84-utils kmod-drbd84
If the server returned something other than
0
, run:$ yum install -y drbd84-utils kmod-drbd84-xen
- Reconfigure the Chef server and the Chef management console (standalone and frontend group members
of a High Availabilty installation):
$ chef-server-ctl reconfigure
This will configure DRBD. The installer will pause and ask for confirmation that DRBD has been set up. Confirm (
CTRL-C
), and then run the following commands:$ drbdadm create-md pc0
then:
$ drbdadm up pc0