Zuul clone openstack-infra dependencies

This allows us to also support Depends-On for zuul, nodepool, shade,
and diskimage-builder.  Along side our ansible roles.

Change-Id: I0aea13cbbd6efa660c52d9b331b3031f6e656cca
Depends-On: Icc09164743da0d537c369040510998869486f3b3
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2017-01-21 17:37:55 -05:00
parent 668f58425f
commit 6487d40e38
9 changed files with 59 additions and 18 deletions

View File

@ -13,18 +13,26 @@
# under the License.
---
# windmill.diskimage-builder
diskimage_builder_install_method: pip
diskimage_builder_pip_name: file:///tmp/diskimage-builder
diskimage_builder_pip_virtualenv: /opt/venv/nodepool-builder
# windmill.nodepool
nodepool_file_nodepool_builder_service_config_src: nodepool/etc/sysconfig/nodepool.j2
# We default to pip, since we zuul clone nodepool into the /tmp folder.
nodepool_install_method: pip
nodepool_pip_name: file:///tmp/nodepool
nodepool_pip_virtualenv: /opt/venv/nodepool-builder
nodepool_file_nodepool_builder_service_config_src: nodepool/etc/sysconfig/nodepool.j2
nodepool_service_nodepool_manage: false
nodepool_service_nodepool_deleter_manage: false
nodepool_service_nodepool_launcher_manage: false
# windmill.shade
# We default to pip, since we zuul clone shade into the /tmp folder.
shade_install_method: pip
shade_pip_name: file:///tmp/shade
shade_pip_virtualenv: /opt/venv/nodepool-builder
# openstack.sudoers

View File

@ -13,15 +13,21 @@
# under the License.
---
# windmill.nodepool
nodepool_file_nodepool_deleter_service_config_src: nodepool/etc/sysconfig/nodepool.j2
# We default to pip, since we zuul clone nodepool into the /tmp folder.
nodepool_install_method: pip
nodepool_pip_name: file:///tmp/nodepool
nodepool_pip_virtualenv: /opt/venv/nodepool-deleter
nodepool_file_nodepool_deleter_service_config_src: nodepool/etc/sysconfig/nodepool.j2
nodepool_service_nodepool_manage: false
nodepool_service_nodepool_builder_manage: false
nodepool_service_nodepool_launcher_manage: false
# windmill.shade
# We default to pip, since we zuul clone shade into the /tmp folder.
shade_install_method: pip
shade_pip_name: file:///tmp/shade
shade_pip_virtualenv: /opt/venv/nodepool-deleter
windmill_nodepool_service_config:

View File

@ -13,15 +13,21 @@
# under the License.
---
# windmill.nodepool
nodepool_file_nodepool_launcher_service_config_src: nodepool/etc/sysconfig/nodepool.j2
# We default to pip, since we zuul clone nodepool into the /tmp folder.
nodepool_install_method: pip
nodepool_pip_name: file:///tmp/nodepool
nodepool_pip_virtualenv: /opt/venv/nodepool-launcher
nodepool_file_nodepool_launcher_service_config_src: nodepool/etc/sysconfig/nodepool.j2
nodepool_service_nodepool_manage: false
nodepool_service_nodepool_builder_manage: false
nodepool_service_nodepool_deleter_manage: false
# windmill.shade
# We default to pip, since we zuul clone shade into the /tmp folder.
shade_install_method: pip
shade_pip_name: file:///tmp/shade
shade_pip_virtualenv: /opt/venv/nodepool-launcher
windmill_nodepool_service_config:

View File

@ -13,10 +13,13 @@
# under the License.
---
# windmill.nodepool
nodepool_file_nodepool_service_config_src: nodepool/etc/sysconfig/nodepool.j2
# We default to pip, since we zuul clone nodepool into the /tmp folder.
nodepool_install_method: pip
nodepool_pip_name: file:///tmp/nodepool
nodepool_pip_virtualenv: /opt/venv/nodepool
nodepool_file_nodepool_service_config_src: nodepool/etc/sysconfig/nodepool.j2
nodepool_service_nodepool_builder_manage: false
nodepool_service_nodepool_deleter_manage: false
nodepool_service_nodepool_launcher_manage: false
@ -28,6 +31,9 @@ ssh_key_public_content: |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDPFYsTS2aTFpgJHACEZjtkr4kt7rf9fHjavl5OhCq7rwAzfiQfq25YSaCZRRPywjUg6stm5JmBCLvQAa1LuhpsrUTE61TvGBIxeRwE6B0OecPW8SoXNbhgvfdrgVb4OIvH51tndPmXYPMpVN03iWyoSfN58YE77Z0VipDuG++dAjSJg+bmBlmmVE3L1419E2Jm56OnRDADWEDlvYciEIXaFWN9pIYXTL+Q1QdYKkWGPfuvMu6k5xSgQtNeXO4IWLSKyqkqj/PRQeY7XVBNstRhGzy+10fV0J4LrYcTAs/80rI2qgvrRoiDuXuhPMXyyD0OxoVrlIO4/f7BD2xk1lbq6JrUQthsNeLn9O5KVX9H7zhnFM1EUSRZz+knasDRfv8jrfrhUtM1QpF/3LITKftrjbr9whpOrxGSKSRRtnYlS5OrY1o9qqEfYPbelQdnz4oa+aTl0R7ApLfRpg64tbF1uNyVXwJvm7EYY2Ju1t0dY6vxFWlC8lLujE4Zq/VWajf5FhzsIh6SD0NVdz8UK1W/sZYKczejo0UHgQujfuJeJ3wRWAB/idzP2B69/uFJn7gp6199637j3v/3l38xRPi/kbh8zK0LjwvR8PKOlTx8pMJzNFaLzRqOTVJzhl4YmlYXtiNpxf/7/dPRUu8kJlb+yvVPo811v537EnmtsXin9w== nodepool@example.org
# windmill.shade
# We default to pip, since we zuul clone shade into the /tmp folder.
shade_install_method: pip
shade_pip_name: file:///tmp/shade
shade_pip_virtualenv: /opt/venv/nodepool
windmill_nodepool_service_config:

View File

@ -16,10 +16,13 @@
jenkins_job_builder_pip_virtualenv: /opt/venv/zuul-launcher
# windmill.zuul
zuul_file_zuul_launcher_service_config_src: zuul/etc/sysconfig/zuul-launcher
# We default to pip, since we zuul clone zuul into the /tmp folder.
zuul_install_method: pip
zuul_pip_name: file:///tmp/zuul
zuul_pip_virtualenv: /opt/venv/zuul-launcher
zuul_file_zuul_launcher_service_config_src: zuul/etc/sysconfig/zuul-launcher
zuul_service_zuul_merger_enabled: no
zuul_service_zuul_merger_manage: false
zuul_service_zuul_merger_state: stopped

View File

@ -13,10 +13,13 @@
# under the License.
---
# windmill.zuul
zuul_file_zuul_merger_service_config_src: zuul/etc/sysconfig/zuul-merger
# We default to pip, since we zuul clone zuul into the /tmp folder.
zuul_install_method: pip
zuul_pip_name: file:///tmp/zuul
zuul_pip_virtualenv: /opt/venv/zuul-merger
zuul_file_zuul_merger_service_config_src: zuul/etc/sysconfig/zuul-merger
zuul_service_zuul_launcher_enabled: no
zuul_service_zuul_launcher_manage: false
zuul_service_zuul_launcher_state: stopped

View File

@ -13,10 +13,13 @@
# under the License.
---
# windmill.zuul
zuul_file_zuul_server_service_config_src: zuul/etc/sysconfig/zuul-server
# We default to pip, since we zuul clone zuul into the /tmp folder.
zuul_install_method: pip
zuul_pip_name: file:///tmp/zuul
zuul_pip_virtualenv: /opt/venv/zuul-server
zuul_file_zuul_server_service_config_src: zuul/etc/sysconfig/zuul-server
zuul_service_zuul_launcher_enabled: no
zuul_service_zuul_launcher_manage: false
zuul_service_zuul_launcher_state: stopped

View File

@ -22,6 +22,8 @@ cat > $CLONEMAP << EOF
clonemap:
- name: 'openstack/ansible-role-(.*)'
dest: 'playbooks/roles/openstack.\1'
- name: 'openstack(-infra)?/(?!ansible-role)(.*)'
dest: '/tmp/\2'
EOF
zuul-cloner -m $CLONEMAP \
@ -35,4 +37,8 @@ zuul-cloner -m $CLONEMAP \
openstack/ansible-role-sudoers \
openstack/ansible-role-virtualenv \
openstack/ansible-role-zookeeper \
openstack/ansible-role-zuul
openstack/ansible-role-zuul \
openstack/diskimage-builder \
openstack-infra/nodepool \
openstack-infra/shade \
openstack-infra/zuul

View File

@ -19,7 +19,7 @@ commands = bindep test
deps = -r{toxinidir}/requirements.txt
commands =
{toxinidir}/tools/install_bindep.sh
{toxinidir}/tools/install_roles.sh
{toxinidir}/tools/zuul_cloner.sh
# NOTE(pabelanger): Because ansible default ansible_user to null now, we need to pass it via CLI.
ansible-playbook -i playbooks/inventory playbooks/build-images.yaml -e ansible_user={env:USER} {posargs}
passenv =
@ -34,7 +34,7 @@ setenv =
deps = -r{toxinidir}/requirements.txt
commands =
{toxinidir}/tools/install_bindep.sh
{toxinidir}/tools/install_roles.sh
{toxinidir}/tools/zuul_cloner.sh
# NOTE(pabelanger): Because ansible default ansible_user to null now, we need to pass it via CLI.
ansible-playbook -i playbooks/inventory playbooks/site.yaml -e ansible_user={env:USER} {posargs}
passenv =
@ -49,7 +49,7 @@ setenv =
deps = -r{toxinidir}/requirements.txt
commands =
{toxinidir}/tools/install_bindep.sh
{toxinidir}/tools/install_roles.sh
{toxinidir}/tools/zuul_cloner.sh
# NOTE(pabelanger): Because ansible default ansible_user to null now, we need to pass it via CLI.
ansible-playbook -i playbooks/inventory playbooks/build-images.yaml -e ansible_user={env:USER} {posargs}
passenv =