Add os-client-config support

Change-Id: I6dd96af86d8a080ff7a6f5700f8b52e3ad770151
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2015-11-20 15:50:48 -05:00
parent 27d3428548
commit e2acef2597
3 changed files with 16 additions and 0 deletions

View File

@ -24,6 +24,10 @@ nodepool_config_zmq_publishers: []
nodepool_file_logging_conf: etc/nodepool/logging.conf
nodepool_template_clouds_yaml_contents: ""
nodepool_template_clouds_yaml_dest: /var/lib/nodepool/.config/openstack/clouds.yaml
nodepool_template_clouds_yaml_src: var/lib/nodepool/.config/openstack/clouds.yaml.j2
nodepool_template_nodepool_yaml_contents: |
diskimages: []
labels: []

View File

@ -27,8 +27,15 @@
with_items:
- /etc/nodepool
- "{{ nodepool_config_images_dir }}"
- /var/lib/nodepool/.config/openstack
- /var/log/nodepool
- name: Template clouds yaml file.
template:
dest: "{{ nodepool_template_clouds_yaml_dest }}"
src: "{{ nodepool_template_clouds_yaml_src }}"
notify: Restart nodepool
- name: Template secure configuration file.
template:
dest: "{{ nodepool_template_secure_conf_dest }}"

View File

@ -0,0 +1,5 @@
# This file is generated by Ansible
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
#
{{ nodepool_template_clouds_yaml_contents }}
# {{ ansible_managed }}