]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
generate-fog-csv: Support defining alternative install drive wip-diffdrive
authorDavid Galloway <dgallowa@redhat.com>
Fri, 7 Dec 2018 23:03:52 +0000 (18:03 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Fri, 7 Dec 2018 23:03:52 +0000 (18:03 -0500)
Signed-off-by: David Galloway <dgallowa@redhat.com>
tools/generate-fog-csv.yml
tools/roles/generate-fog-csv/templates/csv.j2

index c8594483b739ecffafdd94d302f3f04ffbb03412..a1d72cbd59ae248bb0e9f66dc37a56493f3a6894 100644 (file)
@@ -2,6 +2,8 @@
 # This playbook can be used to generate a CSV file of testnodes
 # that can be imported to the FOG web UI.
 # It outputs a CSV file to /tmp/fog_hostfile.csv
+#
+# Define 'fog_install_drive: "/dev/sdX"' in ansible group_vars if it should be any drive other than sda
 
 - hosts: localhost
   roles:
index fcde698e0f8fc225b319888c76a8330a894cf6a9..67947b5a50cd94102aff594ade8ad69b2162fa95 100644 (file)
@@ -1,3 +1,3 @@
 {% for host in groups['cobbler_managed'] %}
-"{{ hostvars[host]['mac'] }}","{{ hostvars[host]['inventory_hostname_short'] }}","","","1","0","","","fog","","","","","","","","","{{ hostvars[host]['kernel_options'] }}","","/dev/sda","","","","","0000-00-00 00:00:00","110","","",""
+"{{ hostvars[host]['mac'] }}","{{ hostvars[host]['inventory_hostname_short'] }}","","","1","0","","","fog","","","","","","","","","{{ hostvars[host]['kernel_options'] }}","","{{ hostvars[host]['fog_install_drive']|default('/dev/sda') }}","","","","","0000-00-00 00:00:00","110","","",""
 {% endfor %}