openstack-ansible/doc/source/install-guide/install-foundation.rst
Charles Farquhar ed3d4e7dcc Fix bootstrap-ansible.sh invocation directory
Add steps to prevent bootstrap-ansible.sh from failing due to
invocation directory

Closes-Bug: 1544165
Change-Id: I5952ecf246326fe9053586d5065f50f6498e4586
2016-02-10 11:08:39 -06:00

2.1 KiB

Home OpenStack-Ansible Installation Guide

Chapter 5. Foundation playbooks

install-foundation-run.rst

Figure 5.1. Installation work flow

image

The main Ansible foundation playbook prepares the target hosts for infrastructure and OpenStack services and performs the following operations:

  • Perform deployment host initial setup
  • Build containers on target hosts
  • Restart containers on target hosts
  • Install common components into containers on target hosts

Running the foundation playbook

Before continuing, the configuration files may be validated using the

guidance in "Checking the integrity of your configuration files".

  1. Change to the /opt/openstack-ansible/playbooks directory.

  2. Run the host setup playbook, which runs a series of sub-playbooks:

    # openstack-ansible setup-hosts.yml

    Confirm satisfactory completion with zero items unreachable or failed:

    PLAY RECAP ********************************************************************
    ...
    deployment_host                :  ok=18   changed=11   unreachable=0    failed=0
  3. If using HAProxy:

    Note

    If you plan to run haproxy on multiple hosts, you'll need keepalived to make haproxy highly-available. The keepalived role should have been downloaded during the bootstrap-ansible stage. If not, you should rerun the following command before running the haproxy playbook:

    # pushd /opt/openstack-ansible; scripts/bootstrap-ansible.sh; popd

    or

    # ansible-galaxy install -r ../ansible-role-requirements.yml

Run the playbook to deploy haproxy:

# openstack-ansible haproxy-install.yml