c6918e5da6
The deployment guide is currently pointed at triplo-docs but it has been requested that we actually publish a deployment guide. This change extracts many of the installation doc pages and moves them into the deploy-guide source tree. Once the deploy-guide is published, we will follow up to reference the deployment guide from tripleo-docs. Change-Id: I0ebd26f014180a92c6cf4ab0929d99b2d860796f
1.4 KiB
1.4 KiB
Running validations using Ansible
Validations
You can run the prep
validations to verify the hardware.
Later in the process, the validations will be run by the undercloud
processes.
However, the undercloud is not set up yet. You can install Ansible on your local machine (that has SSH connectivity to the undercloud) and validate the undercloud from there.
You need Ansible version 2 and the hostname/IP address of the
undercloud (referred to $UNDERCLOUD_HOST
here):
$ sudo yum install ansible
$ git clone https://git.openstack.org/openstack/tripleo-validations
$ cd tripleo-validations
$ printf "[undercloud]\n$UNDERCLOUD_HOST" > hosts
$ export ANSIBLE_STDOUT_CALLBACK=validation_output
$ export ANSIBLE_CALLBACK_PLUGINS="${PWD}/callback_plugins"
$ export ANSIBLE_ROLES_PATH="${PWD}/roles"
$ export ANSIBLE_LOOKUP_PLUGINS="${PWD}/lookup_plugins"
$ export ANSIBLE_LIBRARY="${PWD}/library"
Then get the prep
validations:
$ grep -l '^\s\+-\s\+prep' -r playbooks
And run them one by one:
$ ansible-playbook -i hosts playbooks/validation-name.yaml
Or run them all in one shot:
$ for PREP_VAL in `grep -l '^\s\+-\s\+prep' -r playbooks`; do echo "=== $PREP_VAL ==="; ansible-playbook -i hosts $PREP_VAL; done