Skip to content

Latest commit

 

History

History
157 lines (114 loc) · 5.49 KB

install_server.md

File metadata and controls

157 lines (114 loc) · 5.49 KB

+++ title = "Install the Chef Infra Server" draft = false

gh_repo = "chef-server"

aliases = ["/install_server.html", "/install_server/"]

[menu] [menu.server] title = "Install Chef Infra Server" identifier = "server/installation/Install Chef Infra Server" parent = "server/installation" weight = 10 +++

There are three configuration scenarios for the Chef Infra Server:

  • [Standalone]({{< relref "#standalone" >}}) (everything on a single machine)
  • [High availability]({{< relref "#high-availability" >}}) (machines configured for front-end and back-end, allowing for failover on the back-end and load-balancing on the front-end, as required)
  • [Tiered]({{< relref "#tiered-single-backend" >}}) (machines configured for front-end and back-end, with a single back-end and load-balancing on the front-end, as required)

Supported Platforms

{{< readfile file="content/server/reusable/md/adopted_platforms_server.md" >}}

Prerequisites

The Chef Infra Server has the following prerequisites:

  • An x86_64 compatible system architecture; Red Hat Enterprise Linux and CentOS may require updates prior to installation
  • A resolvable hostname that is specified using a FQDN or an IP address
  • A connection to Network Time Protocol (NTP) to prevent clock drift
  • If host-based firewalls (iptables, ufw, etc.) are being used, ensure that ports 80 and 443 are open. See the [firewalls]({{< relref "install_server_pre/#firewalls" >}}) section of the install prerequisites for additional details.
  • A local mail transfer agent that allows the Chef Infra Server to send email notifications
  • Using cron and the /etc/cron.d directory for periodic maintenance tasks
  • Disabling the Apache Qpid daemon on CentOS and Red Hat systems. See the [Apache Qpid]({{< relref "install_server_pre/#apache-qpid" >}}) of the prerequisite documentation for detailed steps.
  • Optional. A local user account under which services will run, a local user account for PostgreSQL, and a group account under which services will run. See [UIDs and GIDs]({{< relref "install_server_pre/#uids-and-gids" >}}) for more information.

{{< note >}}

See the [expanded list of prerequisites]({{< relref "install_server_pre" >}}) for a detailed list of software and hardware requirements.

{{< /note >}}

Standalone

The standalone installation of Chef Infra Server creates a working installation on a single server. This installation is also useful when you are installing Chef Infra Server in a virtual machine, for proof-of-concept deployments, or as a part of a development or testing loop.

To install Chef Infra Server:

  1. Download the package from Chef Downloads.

  2. Upload the package to the machine that will run the Chef Infra Server, and then record its location on the file system. The rest of these steps assume this location is in the /tmp directory.

  3. {{< readfile file="content/server/reusable/md/install_chef_server_install_package.md" >}}

  4. Run the following to start all of the services:

    sudo chef-server-ctl reconfigure

    Because the Chef Infra Server is composed of many different services that work together to create a functioning system, this step may take a few minutes to complete.

  5. {{< readfile file="content/server/reusable/md/ctl_chef_server_user_create_admin.md" >}}

  6. {{< readfile file="content/server/reusable/md/ctl_chef_server_org_create_summary.md" >}}

Update Configuration for Purchased Nodes

To use more than 25 nodes, you'll need to change Chef Infra Server configuration for the server to recognize your purchased licenses. Edit your /etc/opscode/chef-server.rb file by following the process below:

  1. On your Chef Infra Server, if the chef-server.rb file does not exist, create it.

    sudo mkdir /etc/opscode && sudo touch /etc/opscode/chef-server.rb
  2. Open up the newly created chef-server.rb file in your favorite text editor, for example:

    sudo vi /etc/opscode/chef-server.rb
  3. Paste or add the following text. Please note the placement of the single quotation (') marks. If you're using the vi text editor, you'll need to use the i key to insert the text.

    license['nodes'] = N where N is the number of licensed nodes you have purchased
  4. Save the file. If you're using vi, from the example above, use the esc key and then:

    :wq
  5. Run chef-server-ctl reconfigure for the changes to be picked up by your Chef Infra Server.

    sudo chef-server-ctl reconfigure

For more information on configuring your Chef Infra Server, see [chef-server.rb Settings]({{< relref "config_rb_server" >}}) and [chef-server.rb Optional Settings]({{< relref "config_rb_server_optional_settings" >}}).

High Availability

The following links describe how to configure the Chef Infra Server for high availability. The Backend Cluster setup is strongly recommended for new installations:

  • [High Availability using Backend Cluster]({{< relref "install_server_ha" >}})

Tiered (Single Backend)

The following link describes how to configure the Chef Infra Server with a single backend machine and multiple frontend machines. Note that this process has been deprecated in favor of a [Backend Cluster]({{< relref "install_server_ha" >}}) setup:

  • [Tiered Installation]({{< relref "install_server_tiered" >}})