diff --git a/.zuul.yaml b/.zuul.yaml index 3b0cfb1a59..206b01dbc3 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -195,6 +195,20 @@ - playbooks/templates/clouds/ - testinfra/test_nodepool.py +- job: + name: system-config-run-production-playbook + description: | + Run specified playbook against productions hosts. + + This is a parent job designed to be inherited to enabled + CD deployment of our infrastructure. Set playbook_name to + specify the playbook relative to + bridge.openstack.org:/opt/system-config/playbooks + abstract: true + run: playbooks/zuul/run-production-playbook.yaml + vars: + ansible_forks: 5 + - project: templates: - system-config-zuul-role-integration @@ -222,4 +236,4 @@ - puppet-beaker-rspec-puppet-4-centos-7-infra-system-config - system-config-run-base - system-config-run-eavesdrop - - system-config-run-nodepool \ No newline at end of file + - system-config-run-nodepool diff --git a/playbooks/zuul/run-production-playbook.yaml b/playbooks/zuul/run-production-playbook.yaml new file mode 100644 index 0000000000..ac1004461d --- /dev/null +++ b/playbooks/zuul/run-production-playbook.yaml @@ -0,0 +1,12 @@ +- hosts: localhost + tasks: + - name: Add bridge.o.o to inventory + add_host: + name: bridge.openstack.org + ansible_user: root + +- hosts: bridge.openstack.org + tasks: + - name: Run specified playbook on bridge.o.o + command: ansible-playbook -f {{ ansible_forks }} /opt/system-config/playbooks/{{ playbook_name }} +