bifrost/playbooks/install.yaml
Julia Kreger a48cc3d50e Update default OS and support dib_packages
In order to utilize ubuntu-minimal, we need to install an additional
package in order to login to the host.  As such, we have updated the
playbooks to support the dib_packages variable to allow a user to
explicitly state if they want to install openssh-server, or any
other required software when building their image.

At this time, staying with debian as the default image, although
it does ship with cloud-init, it does not interfere with local
testing.

Change-Id: Ic537d2b1e13cc35379d77f078bcc1a1faeb3f526
2015-08-01 07:48:01 -04:00

15 lines
822 B
YAML

---
- hosts: localhost
name: "Install Ironic on the local host."
connection: local
sudo: yes
gather_facts: yes
roles:
- { role: bifrost-prep-for-install, when: skip_install is not defined }
- ironic-install
- { role: bifrost-create-dib-image, dib_imagename: "{{ deploy_image }}", dib_imagetype: "qcow2", dib_os_element: "{{ dib_os_element|default('debian') }}", dib_elements: "vm serial-console simple-init {{ extra_dib_elements|default('') }}", dib_packages: "{{ dib_packages|default('') }}", when: create_image_via_dib == true and transform_boot_image == false }
- { role: bifrost-create-bootable-image, when: create_image_via_dib == false and transform_boot_image == true }
environment:
http_proxy: "{{ lookup('env','http_proxy') }}"
https_proxy: "{{ lookup('env','https_proxy') }}"