diff --git a/playbooks/roles/ironic-install/defaults/main.yml b/playbooks/roles/ironic-install/defaults/main.yml index 380bd4004..aa4206c61 100644 --- a/playbooks/roles/ironic-install/defaults/main.yml +++ b/playbooks/roles/ironic-install/defaults/main.yml @@ -7,6 +7,7 @@ nginx_port: 8080 ironicclient_source_install: false shade_source_install: true # Configuration information for diskimage-builder +dib_os_element: "ubuntu" dib_env_vars: DIB_CLOUD_INIT_DATASOURCES: "ConfigDrive" ELEMENTS_PATH: "/opt/stack/diskimage-builder/elements" diff --git a/playbooks/roles/ironic-install/tasks/create_dib_image.yml b/playbooks/roles/ironic-install/tasks/create_dib_image.yml index b59bf3424..482c50cf0 100644 --- a/playbooks/roles/ironic-install/tasks/create_dib_image.yml +++ b/playbooks/roles/ironic-install/tasks/create_dib_image.yml @@ -14,5 +14,5 @@ # limitations under the License. --- - name: "Initiate image build" - shell: disk-image-create -a amd64 -o "{{http_boot_folder}}/{{deploy_image_filename}}" -t qcow2 vm ubuntu serial-console cloud-init-datasources "{{ extra_dib_elements}}" + shell: disk-image-create -a amd64 -o "{{http_boot_folder}}/{{deploy_image_filename}}" -t qcow2 "{{dib_os_element}}" vm serial-console cloud-init-datasources "{{ extra_dib_elements}}" environment: dib_env_vars