bifrost/playbooks/install.yaml
Ganesh Mahalingam 802cec490b Make init element configurable for bifrost vagrant VM
Bifrost vagrant uses simple-init by default for post install modifications.
This patch allows the use of an alternate init mechanism, eg: cloud-init

Change-Id: If22416f48fbf43173f008c86b978f11d937a8a99
Co-Authored-By: John.L.Villalovos <john.l.villalovos@intel.com>
Closes-Bug: #1541548
2016-02-05 11:41:18 -08:00

15 lines
926 B
YAML

---
- hosts: localhost
name: "Install Ironic on the local host."
connection: local
become: yes
gather_facts: yes
roles:
- { role: bifrost-prep-for-install, when: skip_install is not defined }
- bifrost-ironic-install
- { 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 serial-console {{ dib_init_element|default('simple-init') }} {{ extra_dib_elements|default('') }}", when: create_image_via_dib == true and transform_boot_image == false }
environment:
http_proxy: "{{ lookup('env','http_proxy') }}"
https_proxy: "{{ lookup('env','https_proxy') }}"