Allow a user to define the OS for the Disk Image

Change-Id: I9b505ddc3be6e985dbb06ba8f00f85fb928bc49b
This commit is contained in:
Julia Kreger 2015-06-15 17:22:23 -04:00
parent bc192cac9d
commit 63cb7d161f
2 changed files with 2 additions and 1 deletions

View File

@ -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"

View File

@ -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