Switch bifrost to openstack.cloud collections
The following changes were made: - `os_client_config` is `openstack.cloud.config` - `os_ironic` is `openstack.cloud.baremetal_node` - `os_ironic_inspect` is `openstack.cloud.baremetal_inspect` - `os_ironic_node` is `openstack.cloud.baremetal_node_action` - `os_keystone_role` is `openstack.cloud.identity_role` - `os_keystone_service` is `openstack.cloud.catalog_service` - `os_user` is `openstack.cloud.identity_user` - `os_user_role` is `openstack.cloud.role_assignment` Change-Id: Id8e2f9c735c6c9d4b7ab2a7e902cd8f9d389d568
This commit is contained in:
@@ -23,7 +23,7 @@ ironic_url: This is the URL to the ironic server. By default, this is set to
|
||||
|
||||
network_interface: This is the network interface that the nodes receive
|
||||
DHCP/PXE/iPXE. This is utilized to generate the url that
|
||||
Ironic is configured with for image retrieval. This
|
||||
Ironic is configured with for image retrieval. This
|
||||
variable does not have a default in this role and expects to
|
||||
receive this information from the calling playbook.
|
||||
|
||||
|
||||
@@ -27,15 +27,15 @@
|
||||
auth: {}
|
||||
when: noauth_mode is defined and noauth_mode | bool == true
|
||||
|
||||
- name: "Execute os_client_config to collect facts"
|
||||
os_client_config:
|
||||
- name: "Execute openstack.cloud.config to collect facts"
|
||||
openstack.cloud.config:
|
||||
no_log: yes
|
||||
when: noauth_mode is defined and noauth_mode | bool == false
|
||||
|
||||
# NOTE(TheJulia): The first record returned by os_client_config
|
||||
# NOTE(TheJulia): The first record returned by openstack.cloud.config
|
||||
# is utilized as the default. A user can still define the parameters
|
||||
# if so desired.
|
||||
- name: "Set os_client_config's auth parameters if not already set."
|
||||
- name: "Set openstack.cloud.config auth parameters if not already set."
|
||||
set_fact:
|
||||
auth: "{{ openstack.clouds[0].auth }}"
|
||||
auth_type: "{{ openstack.clouds[0].auth_type }}"
|
||||
@@ -70,7 +70,7 @@
|
||||
when: (inventory_dhcp | bool == true) or (inventory_dns | bool == true)
|
||||
|
||||
- name: "Deploy to hardware - Using custom instance_info."
|
||||
os_ironic_node:
|
||||
openstack.cloud.baremetal_node_action:
|
||||
auth_type: "{{ auth_type | default(omit) }}"
|
||||
auth: "{{ auth | default(omit) }}"
|
||||
ironic_url: "{{ ironic_url }}"
|
||||
@@ -96,7 +96,7 @@
|
||||
when: instance_info is not defined and test_deploy_image.stat.exists | bool == false
|
||||
|
||||
- name: "Deploy to hardware - bifrost default"
|
||||
os_ironic_node:
|
||||
openstack.cloud.baremetal_node_action:
|
||||
cloud: "{{ cloud_name | default(omit) }}"
|
||||
auth_type: "{{ auth_type | default(omit) }}"
|
||||
auth: "{{ auth | default(omit) }}"
|
||||
|
||||
Reference in New Issue
Block a user