Cleaning up virtural enrollment yaml file
Removed excess spacing at the beginning of the lines due to parsing issues when converted to a role.
This commit is contained in:
parent
2d3db48f10
commit
8a9b98a8e6
@ -1,43 +1,43 @@
|
|||||||
|
|
||||||
|
# The variable definitions below seem far from ideal, however there
|
||||||
|
# seems to be no better way to handle CSV files for looping at this time.
|
||||||
|
#
|
||||||
|
# Ideally with_lines would be used with an include, however that support was removed in
|
||||||
|
# Ansible 1.6 and no direct replacement exists.
|
||||||
|
#
|
||||||
|
# mac_address: "{{item.split(',')[1]}}"
|
||||||
|
# username: "{{item.split(',')[2]}}"
|
||||||
|
# password: "{{item.split(',')[3]}}"
|
||||||
|
# management_address: "{{item.split(',')[4]}}"
|
||||||
|
# cpu_cores: "{{item.split(',')[5]}}"
|
||||||
|
# memory_MB: "{{item.split(',')[6]}}"
|
||||||
|
# disk_MB: "{{item.split(',')[7]}}"
|
||||||
---
|
---
|
||||||
- name: "Enroll Virtual Machines"
|
- name: "Enroll Virtual Machines"
|
||||||
# The variable definitions below seem far from ideal, however there
|
os_ironic:
|
||||||
# seems to be no better way to handle CSV files for looping at this time.
|
auth_plugin: None
|
||||||
#
|
auth: None
|
||||||
# Ideally with_lines would be used with an include, however that support was removed in
|
ironic_url: "{{ ironic_url }}"
|
||||||
# Ansible 1.6 and no direct replacement exists.
|
driver: "agent_ssh"
|
||||||
#
|
uuid: "{{item.split(',')[9]}}"
|
||||||
# mac_address: "{{item.split(',')[1]}}"
|
state: present
|
||||||
# username: "{{item.split(',')[2]}}"
|
nics:
|
||||||
# password: "{{item.split(',')[3]}}"
|
- mac: "{{item.split(',')[0]}}"
|
||||||
# management_address: "{{item.split(',')[4]}}"
|
properties:
|
||||||
# cpu_cores: "{{item.split(',')[5]}}"
|
cpus: "{{item.split(',')[4]}}"
|
||||||
# memory_MB: "{{item.split(',')[6]}}"
|
cpu_arch: "x86_64"
|
||||||
# disk_MB: "{{item.split(',')[7]}}"
|
ram: "{{item.split(',')[5]}}"
|
||||||
os_ironic:
|
disk_size: "{{item.split(',')[6]}}"
|
||||||
auth_plugin: None
|
driver_info:
|
||||||
auth: None
|
power:
|
||||||
ironic_url: "{{ ironic_url }}"
|
ssh_virt_type: "virsh"
|
||||||
driver: "agent_ssh"
|
ssh_address: "{{ ssh_address }}"
|
||||||
# UUID determination TBD for mass enrollment.
|
ssh_port: "{{ ssh_port }}"
|
||||||
uuid: "{{item.split(',')[9]}}"
|
ssh_username: "{{ ssh_username }}"
|
||||||
state: present
|
ssh_key_filename: "{{ ssh_private_key_path }}"
|
||||||
nics:
|
deploy:
|
||||||
- mac: "{{item.split(',')[0]}}"
|
deploy_kernel: "{{ deploy_kernel_url }}"
|
||||||
properties:
|
deploy_ramdisk: "{{ deploy_ramdisk_url }}"
|
||||||
cpus: "{{item.split(',')[4]}}"
|
delegate_to: localhost
|
||||||
cpu_arch: "x86_64"
|
with_lines:
|
||||||
ram: "{{item.split(',')[5]}}"
|
- cat {{ baremetal_csv_file }}
|
||||||
disk_size: "{{item.split(',')[6]}}"
|
|
||||||
driver_info:
|
|
||||||
power:
|
|
||||||
ssh_virt_type: "virsh"
|
|
||||||
ssh_address: "{{ ssh_address }}"
|
|
||||||
ssh_port: "{{ ssh_port }}"
|
|
||||||
ssh_username: "{{ ssh_username }}"
|
|
||||||
ssh_key_filename: "{{ ssh_private_key_path }}"
|
|
||||||
deploy:
|
|
||||||
deploy_kernel: "{{ deploy_kernel_url }}"
|
|
||||||
deploy_ramdisk: "{{ deploy_ramdisk_url }}"
|
|
||||||
delegate_to: localhost
|
|
||||||
with_lines:
|
|
||||||
- cat {{ baremetal_csv_file }}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user