7417ff36e4
patch I4c27ffed20b3d02723f7be99ccd61d8cee74bea1 had an error in `clouds` structure passed to `bifrost-keystone-client-config` role in `install.yaml`, failing this playbook. `test-bifrost.yaml` playbook does not has this error as it is not setting up the `bifrost-admin` cloud. Change-Id: Icb5bf8b33ae3c409d8540dd392990a5165577c3e Closes-Bug: #1674649
30 lines
1.7 KiB
YAML
30 lines
1.7 KiB
YAML
---
|
|
- hosts: target
|
|
name: "Install Ironic on the target host."
|
|
become: yes
|
|
gather_facts: yes
|
|
roles:
|
|
- { role: bifrost-prep-for-install, when: skip_install is not defined }
|
|
- bifrost-keystone-install
|
|
- bifrost-ironic-install
|
|
- role: bifrost-keystone-client-config
|
|
user: "{{ ansible_env.SUDO_USER }}"
|
|
clouds:
|
|
bifrost:
|
|
config_username: "{{ ironic.keystone.default_username }}"
|
|
config_password: "{{ ironic.keystone.default_password }}"
|
|
config_project_name: "baremetal"
|
|
config_region_name: "{{ keystone.bootstrap.region_name }}"
|
|
config_auth_url: "{{ keystone.bootstrap.public_url }}"
|
|
bifrost-admin:
|
|
config_username: "{{ keystone.bootstrap.username }}"
|
|
config_password: "{{ keystone.bootstrap.password }}"
|
|
config_project_name: "{{ keystone.bootstrap.project_name }}"
|
|
config_region_name: "{{ keystone.bootstrap.region_name }}"
|
|
config_auth_url: "{{ keystone.bootstrap.public_url }}"
|
|
- { role: bifrost-create-dib-image, dib_imagename: "{{ http_boot_folder }}/ipa", build_ramdisk: false, dib_os_element: "{{ ipa_dib_os_element|default('debian') }}", dib_elements: "ironic-agent {{ ipa_extra_dib_elements | default('') }}", when: create_ipa_image | bool == true }
|
|
- { role: bifrost-create-dib-image, dib_imagename: "{{ deploy_image }}", dib_imagetype: "qcow2", dib_elements: "vm enable-serial-console {{ dib_init_element|default('simple-init') }} {{ extra_dib_elements|default('') }}", when: create_image_via_dib | bool == true and transform_boot_image | bool == false }
|
|
environment:
|
|
http_proxy: "{{ lookup('env','http_proxy') }}"
|
|
https_proxy: "{{ lookup('env','https_proxy') }}"
|