Merge "Add backwards-compat playbook for /etc/nodepool/provider"
This commit is contained in:
commit
68fc33716a
2
playbooks/legacy/nodepool-provider/README.rst
Normal file
2
playbooks/legacy/nodepool-provider/README.rst
Normal file
@ -0,0 +1,2 @@
|
||||
This playbook writes a backwards compatible /etc/nodepool/provider file for
|
||||
legacy jobs running on Zuul v3 which no longer provides that file.
|
19
playbooks/legacy/nodepool-provider/pre.yaml
Normal file
19
playbooks/legacy/nodepool-provider/pre.yaml
Normal file
@ -0,0 +1,19 @@
|
||||
- name: Configure /etc/nodepool/provider for backwards compatibility
|
||||
hosts: all
|
||||
gather_facts: no
|
||||
tasks:
|
||||
- name: Warn that /etc/nodepool/provider is deprecated
|
||||
debug:
|
||||
msg: |
|
||||
The /etc/nodepool/provider file no longer exists and is being created
|
||||
for backwards compatibility purposes. The variables provided by this
|
||||
file are now available through Ansible under hostvars['nodepool'].
|
||||
|
||||
- name: Create /etc/nodepool/provider file
|
||||
copy:
|
||||
content: |
|
||||
NODEPOOL_PROVIDER={{ hostvars['nodepool']['provider'] }}
|
||||
NODEPOOL_CLOUD={{ hostvars['nodepool']['cloud'] }}
|
||||
NODEPOOL_REGION={{ hostvars['nodepool']['region'] }}
|
||||
NODEPOOL_AZ={{ hostvars['nodepool']['az'] }}
|
||||
dest: /etc/nodepool/provider
|
@ -8656,6 +8656,7 @@
|
||||
description: |
|
||||
Base job template for TripleO jobs that leverage devstack-gate/dsvm
|
||||
parent: legacy-publish-openstack-artifacts
|
||||
pre-run: playbooks/legacy/nodepool-provider/pre
|
||||
required-projects:
|
||||
- openstack/aodh
|
||||
- openstack/barbican
|
||||
|
Loading…
Reference in New Issue
Block a user