]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
testnode: Create gpt instead of msdos table.
authorDavid Galloway <dgallowa@redhat.com>
Fri, 29 Sep 2017 16:21:04 +0000 (12:21 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Fri, 29 Sep 2017 19:30:59 +0000 (15:30 -0400)
Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/testnode/tasks/drive_partitioning.yml
roles/testnode/tasks/main.yml

index 8ae0dc4a5e156f928383a8e398f70b6b9bad5902..c6aa5e412fedd2528691020489e4327f2c06a3aa 100644 (file)
@@ -1,10 +1,9 @@
 ---
 # Partition a data drive, like the nvme devices in smithi.  Only included
-# if partition_dict is defined.
+# if drives_to_partition is defined.
 
-- name: Write a new partition table to {{ drive_to_partition }}
-  # -s: don't prompt for "are you sure"
-  command: "parted -s {{ drive_to_partition }} mktable msdos"
+- name: "Write a new partition table to {{ drives_to_partition.drive }}"
+  command: "parted -s {{ drives_to_partition.drive }} mktable gpt"
 
 - name: "Write partition entries to {{ drive_to_partition }}"
   command: "parted {{ drive_to_partition }} unit '%' mkpart primary {{ item }}"
index 9efd0c3d7338d45b671cc829a8e5c58e1cf0e2a0..50ba841c269421df2b0600f5a66bd1a55293068b 100644 (file)
@@ -30,7 +30,7 @@
 
 - name: partition drives, if any are requested
   include: drive_partitioning.yml
-  when: drive_to_partition is defined
+  when: drives_to_partition is defined
   tags:
     - partition