bifrost/deploy/setup_nodes.yaml
Julia Kreger f29f353db3 Extracting the ubuntu image and using the correct file
The playbook when initialy written failed to extract the Ubuntu image
package, and the settings were set for the .tar.gz file to be pushed
to the remote server.

Corrected the playbook to extract the image and defined the image
as the file to utilize.
2015-03-04 20:33:21 -05:00

20 lines
778 B
YAML

---
- name: "Enroll Hardware"
# TODO: Conceptual idea of structure, needs image_source corrected and
# disk format clarified
os_ironic_node:
auth_plugin: None
auth: None
ironic_url: "{{ ironic_url }}"
uuid: "{{item.split(',')[9]}}"
state: present
config_drive: "http://{{ hostvars[inventory_hostname]['ansible_' + network_interface]['ipv4']['address'] }}:8080/configdrive-{{item.split(',')[9]}}.iso.gz"
instance_info:
image_source: "http://{{ hostvars[inventory_hostname]['ansible_' + network_interface]['ipv4']['address'] }}:8080/{{deploy_image_filename}}"
image_checksum: "{{ test_deploy_image.stat.md5 }}"
image_disk_format: "raw"
root_gb: 10
delegate_to: localhost
with_lines:
- cat {{ baremetal_csv_file }}