Commit Graph

7 Commits

Author SHA1 Message Date
Jonathan Rosser 3a16e0eaa9 Remove use of 'private' for include_role for ansible 2.8
"This option is a no op, and the functionality described
in previous versions was not implemented. This option will
be removed in Ansible v2.8"

Change-Id: If8fdda822903a7cbfbe5eb8c3464b0ca36db33c6
2019-05-16 21:56:15 +01:00
Chandan Kumar f44635f975 Setup clouds.yaml on tempest node
Since clouds.yaml is used by os_tempest role to perform most of
the resource creation stuff, so we need to setup clouds.yaml on
the same.

Change-Id: Idd23ce08949a64831db8d777216d9aef3d0531db
2019-01-18 18:59:38 +05:30
Jesse Pretorius 839aec5abe Ensure remote_user and become are consistently implemented
It makes no sense to use become when you're connecting to a
host via the root remote_user. As such, we remove all uses of
'become: true' from the test plays with the exception of the
'test-prepare-keys.yml' playbook which uses a local connection
rather than a remote one and it therefore needs to use become.

We also transition all plays to use 'remote_user' which is the
correct parameter to replace 'user' (since ansible 1.4).

Finally, we switch the horizon nova service setup to its own
playbook using a local connection and the upstream keystone
modules.

Change-Id: I20517c22f07b1bb811a51d8c63741604360fe7f8
2018-07-06 09:45:29 +01:00
Jesse Pretorius dad9515c35 Implement any_errors_fatal for all test playbooks
Sometimes a test will result in a failure, but it
takes more time than necessary to find the failure
due to Ansible continuing to execute on other hosts
after removing one from the play execution.

This patch ensures that any error will result in
an immediate failure so that the fatal error is
easier to find.

Change-Id: I4e89bfdb1e48d0ac65f9fb8549e55a19ab773f9f
2017-07-17 10:09:11 +00:00
Jimmy McCrory 84ebca7228 Add become to all plays
The swift role includes tasks that delegate to the physical host of
containers (localhost in gate tests). Since ansible_become was removed
from localhost's vars, set become in this play to fix tests that install
swift.

Also add the become option to all other plays to avoid this issue for
any other roles that may now or in the future delegate tasks to localhost.

Change-Id: I08cada62636a1a7a1e2c1b15e0052876437e24aa
2017-04-23 02:17:55 +00:00
Andy McCrae 2d5b6d0d1a Add rolename setting for tempest
Allow tempest to deploy itself, using the tempest_rolename variable,
this is required for tempest to use the test-install-tempest.yml play,
as the rolename will be "{toxinidir}" for the tempest repository.

Change-Id: I4834413b4a006567be4bcc649bd674dcb3c93c2e
2016-09-26 21:56:47 +01:00
Andy McCrae 7e95e72303 Add Nova vars/plays 2016-05-26 11:33:20 +01:00