Ensure the os-cloud flag is used for CLI commands

This change will ensure that the `openstack` command has appropriate creds
via the clouds configuration for all invocations.

Change-Id: I928518be3108c62989a07110d03c7cff8138ba34
Signed-off-by: Kevin Carter <kecarter@redhat.com>
This commit is contained in:
Kevin Carter
2020-03-04 10:00:58 -06:00
parent be80cd7ac6
commit f27d891982
5 changed files with 7 additions and 7 deletions

View File

@@ -37,7 +37,7 @@
# Pre-cleaning validation
- name: Run Validations
command: >-
openstack tripleo validator run --group "pre-clean"
openstack --os-cloud undercloud tripleo validator run --group "pre-clean"
when:
- run_validations | bool

View File

@@ -39,7 +39,7 @@
# Pre-introspection validation
- name: Run Validations
command: >
openstack tripleo validator run --group "pre-introspection"
openstack --os-cloud undercloud tripleo validator run --group "pre-introspection"
when:
- run_validations | bool

View File

@@ -45,7 +45,7 @@
# https://github.com/ansible/ansible/issues/60449
- name: Delete container and objects
command: >
openstack container delete "{{ item }}" --recursive
openstack --os-cloud undercloud container delete "{{ item }}" --recursive
failed_when:
- container_objects.rc != 0
- "'Not Found' not in container_objects.stderr"

View File

@@ -77,7 +77,7 @@
- name: Make nodes available
command: >-
openstack baremetal node manage {{ item.uuid }} --wait 1200
openstack --os-cloud undercloud baremetal node manage {{ item.uuid }} --wait 1200
loop: "{{ new_nodes }}"
async: 2400
poll: 0

View File

@@ -48,7 +48,7 @@
# Set nodes to available
- name: Make nodes available
command: >-
openstack baremetal node provide {{ item }} --wait 1200
openstack --os-cloud undercloud baremetal node provide {{ item }} --wait 1200
loop: "{{ node_uuids_provide }}"
async: 2400
poll: 0
@@ -72,7 +72,7 @@
- name: Wait for nova resources
command: >-
openstack hypervisor show {{ item }}
openstack --os-cloud undercloud hypervisor show {{ item }}
loop: "{{ node_uuids_provide }}"
changed_when: false
register: hypervisor_check
@@ -83,7 +83,7 @@
# Power off nodes the nodes
- name: Power off nodes
command: >-
openstack baremetal node power off {{ item }}
openstack --os-cloud undercloud baremetal node power off {{ item }}
loop: "{{ node_uuids_provide }}"
async: 2400
poll: 0