Have openstacksdk manage our clouds.yaml file
We can move this logic into the role now. Change-Id: I7bcc2b700a3d06ce662dc5a7fb3c938657a7fbf1 Depends-On: https://review.openstack.org/623532 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
203ef5a03a
commit
74fae84e26
|
@ -21,5 +21,11 @@ nodepool_pip_virtualenv_python: python3
|
|||
nodepool_pip_virtualenv: /opt/venv/nodepool
|
||||
|
||||
# windmill.openstacksdk
|
||||
openstacksdk_user_name: nodepool
|
||||
openstacksdk_user_group: nodepool
|
||||
openstacksdk_user_home: /var/lib/nodepool
|
||||
|
||||
openstacksdk_pip_virtualenv_python: python3
|
||||
openstacksdk_pip_virtualenv: /opt/venv/nodepool
|
||||
|
||||
openstacksdk_file_clouds_yaml_src: "{{ windmill_config_git_dest }}/nodepool/clouds.yaml.j2"
|
||||
|
|
|
@ -34,23 +34,5 @@
|
|||
include_role:
|
||||
name: openstack.openstacksdk
|
||||
|
||||
# TODO(pabelanger): This should be moved into ansible-role-os-client-config.
|
||||
- name: Create os-client-config directories.
|
||||
become: yes
|
||||
file:
|
||||
group: nodepool
|
||||
owner: nodepool
|
||||
path: /var/lib/nodepool/.config/openstack
|
||||
state: directory
|
||||
|
||||
- name: Copy clouds.yaml into place.
|
||||
become: yes
|
||||
copy:
|
||||
dest: /var/lib/nodepool/.config/openstack/clouds.yaml
|
||||
group: nodepool
|
||||
mode: 0400
|
||||
owner: nodepool
|
||||
src: "{{ windmill_config_git_dest }}/nodepool/clouds.yaml"
|
||||
|
||||
- import_playbook: nodepool-builder.yaml
|
||||
- import_playbook: nodepool-launcher.yaml
|
||||
|
|
Loading…
Reference in New Issue