Create configure-mirrors role
This will be used to replace our current confgure_mirror.sh script that we today as a ready-script in nodepool. This only adds support for ubuntu today. As we move forward and configuration openstack-infra from JJB to ansible, we'll need to add more distros. Attach the role to the unittests base job for now. It should ultimately be attached to the base job, but adding it to the unittests job lets us test it more easily. Co-Authored-By: Monty Taylor <mordred@inaugust.com> Change-Id: I9bfa28c87390c09bb2c4cd0de6ce4c7890f8d81a Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
8
roles/configure-mirrors/templates/.pydistutils.cfg.j2
Normal file
8
roles/configure-mirrors/templates/.pydistutils.cfg.j2
Normal file
@@ -0,0 +1,8 @@
|
||||
# This file is generated by Ansible
|
||||
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
|
||||
#
|
||||
[easy_install]
|
||||
index_url = {{ pypi_mirror }}
|
||||
{% if mirror_domain is defined %}
|
||||
allow_hosts = *.{{ mirror_domain }}
|
||||
{% endif %}
|
||||
@@ -0,0 +1,7 @@
|
||||
# This file is generated by Ansible
|
||||
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
|
||||
#
|
||||
deb {{ package_mirror }} {{ ansible_distribution_release }} main universe
|
||||
deb {{ package_mirror }} {{ ansible_distribution_release }}-updates main universe
|
||||
deb {{ package_mirror }} {{ ansible_distribution_release }}-backports main universe
|
||||
deb {{ package_mirror }} {{ ansible_distribution_release }}-security main universe
|
||||
8
roles/configure-mirrors/templates/etc/pip.conf.j2
Normal file
8
roles/configure-mirrors/templates/etc/pip.conf.j2
Normal file
@@ -0,0 +1,8 @@
|
||||
# This file is generated by Ansible
|
||||
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
|
||||
#
|
||||
[global]
|
||||
timeout = 60
|
||||
index-url = {{ pypi_mirror }}
|
||||
trusted-host = {{ mirror_host }}
|
||||
extra-index-url = {{ wheel_mirror }}
|
||||
Reference in New Issue
Block a user