Merge "Fix use of hostvars for writing provider file"

This commit is contained in:
Zuul 2017-10-01 15:38:17 +00:00 committed by Gerrit Code Review
commit f231e09d34

View File

@ -7,13 +7,13 @@
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'].
file are now available through Ansible under hostvars[$HOST]['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'] }}
NODEPOOL_PROVIDER={{ nodepool.provider }}
NODEPOOL_CLOUD={{ nodepool.cloud }}
NODEPOOL_REGION={{ nodepool.region }}
NODEPOOL_AZ={{ nodepool.az }}
dest: /etc/nodepool/provider