5 Commits

Author SHA1 Message Date
Jesse Pretorius
87af014b16 Switch compute to use different inventory_hostname
Our role tests execute as non-root users, and the roles
need to access the environment variables for that non-root
user. Ansible, when targeting localhost, changes to
'connection: local' and thus breaks everything we need
to do against localhost as root unless we use 'become: true',
but we if generally use that against remote hosts we lose
the environment variables for the non-root user.

As such, we switch the inventory to target 'compute1' instead,
which has the address '10.1.1.1' (br-mgmt), so that we do not
have to deal with the implict connection type changes implemented
by Ansible.

Depends-On: https://review.openstack.org/584033
Change-Id: I3c29bab37b5dbbd0faec246c02e3a39fe4c1033a
2018-07-20 10:21:12 +01:00
Jimmy McCrory
938282295e Fix role gate tests for Ansible 2.3
'ansible_become' defined as a host_var or in the inventory for a host
has a higher precedence than 'become' defined within a playbook.

In change Id5b76a87809f03951c954fc3d752419a673403f7, 'become' was
defined explicitly for each play running against localhost so
'ansible_become' should be removed from its host_vars.

Change-Id: If8e8330a6829405a9b17e8a89ba2b48c4a6d6a21
2017-04-19 19:13:30 -07:00
German Eichberger
38e365f945 Adds iptables rules to protect octavia server container
- Adds iptables rules
 - Makes sure that health manager ip is the one
   on the management interface
 - Reworks variables
 - Improves documentation
 - Tests now run with an extra octavia network
 - renamed mgmt network to lbaas-mgmt
 - added ubuntu/centos specific iptables save/restore
   commands/packages

Change-Id: I761ce0d2dce73d018c2ba2022798a3962e44b235
2017-04-07 09:47:13 -04:00
German Eichberger
97ee48059e Clarifications and doc improvements
- adds a few lines the install doc
- adds a comment to test network config

Change-Id: I98b005aee7ad220634b8f58b098ce459b4c78179
2017-03-09 09:22:12 -05:00
Major Hayden
f510d6561c Octavia role hacking
- installs Octavia service in OSA
- adds a test which installs Octavia (but uses noop
  to work around gate limitations)

Co-Authored-By: German Eichberger <German.eichberger@rackspace.com>

Change-Id: Idb419a4ca5daa311d39c90eda5f83412ccf576ad
2017-03-01 12:48:12 -05:00