openstack-ansible/playbooks
Jean-Philippe Evrard 03a57d6668 Set the default pip index dynamically
Before the repo server is up, only bare metal hosts
need pip installed, openstack-hosts-setup take care
of that part by default, with the openstack_host role
calling pip_install.

Once the repo server is up, the pypi cache will be available
to be used. This implements the changes to detect whether it
is available - this is important for the plays doing pip
installs before the repo server is available. Once it is
available the same plays will use it.

To be available, we need to wait for haproxy playbook to
load balance towards the repo container, or the baremetal
node if need be.

Once the repo server and the load balancer are up, we
can configure everything to use the repo server, and this
will be done with the repo-use.yml playbook, which is
calling the pip_install role.

We also remove the use of the pip_lock_to_internal_repo
from group variables, as we want to change the pip.conf
dynamically depending on the availability of the default
index.

Finally, we set the AIO in OpenStack-Infra to make use of
the appropriate infra mirror for the nginx reverse proxy.

Because the gates are blocked without this patch, this
patch should land in priority. The current upstream state
prevents that, so we temporarily disable the ceph testing,
which fails due to [1]. On top of it, we need to bump
shas to a known working state, else tempest would fail.
To avoid circular dependencies, we include the content
of patch [2], which is the sha bump pending this work.

[1]: https://bugs.launchpad.net/cinder/+bug/1737015
[2]: https://review.openstack.org/#/c/522850/

Change-Id: If19442918baa9ddacf7c19940c9b5007694bee61
Depends-On: I56f22f46ff849a7049ac7ae873af7a4bc526fa63
Depends-On: Ic4fd64f4dc82121a65088f3d7f4ae53f373df608
Depends-On: I7bd31f2d89d3fe9d48e32c79ddef7a8ef1392eb7
Depends-On: Icd93c0c801bfee1b4fdc8154d078067722c0640a
Depends-On: I1e9782eb0fd72690a9644c7a01e8c83a4486872b
Co-Authored-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2017-12-08 15:46:06 +00:00
..
common-playbooks Avoid using gather_facts as a variable 2017-10-16 14:59:21 +00:00
common-tasks Set the default pip index dynamically 2017-12-08 15:46:06 +00:00
defaults/repo_packages Set the default pip index dynamically 2017-12-08 15:46:06 +00:00
inventory Hyper-converge our container usage 2017-10-23 03:06:08 +00:00
roles/system_crontab_coordination Fix crontab errors on CentOS/SUSE 2017-12-04 14:57:29 +00:00
ceph-install.yml Run the ceph-mons deploy in serial 2017-10-05 15:00:28 +00:00
etcd-install.yml Avoid using gather_facts as a variable 2017-10-16 14:59:21 +00:00
galera-install.yml Remove jinja2 delimiters in when 2017-11-29 13:16:32 -06:00
haproxy-install.yml Avoid using gather_facts as a variable 2017-10-16 14:59:21 +00:00
healthcheck-infrastructure.yml Add infra healthchecks 2017-11-02 18:29:16 +00:00
lxc-containers-create.yml Set the default pip index dynamically 2017-12-08 15:46:06 +00:00
lxc-containers-destroy.yml Cleanup/standardize usage of tags in plays 2016-09-15 10:08:48 +00:00
lxc-hosts-setup.yml Set the default pip index dynamically 2017-12-08 15:46:06 +00:00
memcached-install.yml Avoid using gather_facts as a variable 2017-10-16 14:59:21 +00:00
openstack-hosts-setup.yml Set the default pip index dynamically 2017-12-08 15:46:06 +00:00
os-aodh-install.yml Avoid using gather_facts as a variable 2017-10-16 14:59:21 +00:00
os-barbican-install.yml Avoid using gather_facts as a variable 2017-10-16 14:59:21 +00:00
os-ceilometer-install.yml Avoid using gather_facts as a variable 2017-10-16 14:59:21 +00:00
os-cinder-install.yml Move resolvconf JIT execution to common tasks 2017-09-21 08:08:59 -05:00
os-designate-install.yml Avoid using gather_facts as a variable 2017-10-16 14:59:21 +00:00
os-glance-install.yml Move resolvconf JIT execution to common tasks 2017-09-21 08:08:59 -05:00
os-gnocchi-install.yml Move resolvconf JIT execution to common tasks 2017-09-21 08:08:59 -05:00
os-heat-install.yml Avoid using gather_facts as a variable 2017-10-16 14:59:21 +00:00
os-horizon-install.yml Avoid using gather_facts as a variable 2017-10-16 14:59:21 +00:00
os-ironic-install.yml Avoid using gather_facts as a variable 2017-10-16 14:59:21 +00:00
os-keystone-install.yml Remove jinja2 delimiters in when 2017-11-29 13:16:32 -06:00
os-magnum-install.yml Move resolvconf JIT execution to common tasks 2017-09-21 08:08:59 -05:00
os-molteniron-install.yml Avoid using gather_facts as a variable 2017-10-16 14:59:21 +00:00
os-neutron-install.yml Move dynamic grouping conditional 2017-10-22 03:09:26 +00:00
os-nova-install.yml Do not implement reload for novnc/spice service 2017-11-23 11:55:13 +00:00
os-octavia-install.yml Avoid using gather_facts as a variable 2017-10-16 14:59:21 +00:00
os-rally-install.yml Avoid using gather_facts as a variable 2017-10-16 14:59:21 +00:00
os-sahara-install.yml Avoid using gather_facts as a variable 2017-10-16 14:59:21 +00:00
os-swift-install.yml Avoid using gather_facts as a variable 2017-10-16 14:59:21 +00:00
os-swift-sync.yml Avoid using gather_facts as a variable 2017-10-16 14:59:21 +00:00
os-tacker-install.yml Avoid using gather_facts as a variable 2017-10-16 14:59:21 +00:00
os-tempest-install.yml Avoid using gather_facts as a variable 2017-10-16 14:59:21 +00:00
os-trove-install.yml Avoid using gather_facts as a variable 2017-10-16 14:59:21 +00:00
rabbitmq-install.yml Avoid using gather_facts as a variable 2017-10-16 14:59:21 +00:00
repo-build.yml Avoid using gather_facts as a variable 2017-10-16 14:59:21 +00:00
repo-install.yml Remove upstream repo dependency 2015-08-24 08:32:07 +01:00
repo-server.yml Allow pip_install to run in repo-server playbook 2017-11-24 16:34:29 +00:00
repo-use.yml Set the default pip index dynamically 2017-12-08 15:46:06 +00:00
rsyslog-install.yml Avoid using gather_facts as a variable 2017-10-16 14:59:21 +00:00
security-hardening.yml Avoid using gather_facts as a variable 2017-10-16 14:59:21 +00:00
setup-everything.yml Convert existing roles into galaxy roles 2015-02-18 10:56:25 +00:00
setup-hosts.yml Include security role in setup-hosts.yml 2016-03-29 03:28:15 +00:00
setup-infrastructure.yml Set the default pip index dynamically 2017-12-08 15:46:06 +00:00
setup-openstack.yml Add tacker installation 2017-08-21 16:27:32 +02:00
unbound-install.yml Avoid using gather_facts as a variable 2017-10-16 14:59:21 +00:00
utility-install.yml Move resolvconf JIT execution to common tasks 2017-09-21 08:08:59 -05:00