
The TripleO CI legacy jobs rely on the /etc/nodepool/provider file which is no longer provided in Zuul v3. These variables are now available directly through Ansible but we're mostly interested in getting the existing legacy jobs working for the time being. Change-Id: I9e15d8c292823b3709f7ceef876c7c5bf8b6b8f5
20 lines
795 B
YAML
20 lines
795 B
YAML
- 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
|