Ottomata has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/239371

Change subject: Add cassandrahosts-12hdd.cfg partman recipe and test on d-i-test
......................................................................

Add cassandrahosts-12hdd.cfg partman recipe and test on d-i-test

Change-Id: Ie5eccb894deaa28ef451c4b31c5c35515e23c2ac
---
M modules/install_server/files/autoinstall/netboot.cfg
A modules/install_server/files/autoinstall/partman/cassandrahosts-12hdd.cfg
2 files changed, 70 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/71/239371/1

diff --git a/modules/install_server/files/autoinstall/netboot.cfg 
b/modules/install_server/files/autoinstall/netboot.cfg
index f5ee74a..c857b94 100755
--- a/modules/install_server/files/autoinstall/netboot.cfg
+++ b/modules/install_server/files/autoinstall/netboot.cfg
@@ -64,7 +64,7 @@
                cp1008|cp104[34]|cp300[3-9]|cp301[0-9]|cp302[0-2]) echo 
partman/varnish-oldssd.cfg ;; \
                cp[1234][0-9][0-9][0-9]) echo partman/varnish.cfg ;; \
                
db[0-8][0-9]|db10[0-7][0-9]|db20[0-2][0-9]|db2030|db203[3-9]|db20[4-7][0-9]|dbstore[1-2]00[1-9]|es[1-2]0[0-2][0-9])
 echo partman/db.cfg ;; \
-               d-i-test) echo partman/raid1-lvm-conf.cfg ;; \
+               d-i-test) echo partman/cassandrahosts-12hdd.cfg ;; \
                eeden|hooft|maerlant|multatuli|nescio) echo 
partman/raid1-1partition.cfg ;; \
                einsteinium) echo partman/raid1-lvm-ext4.cfg;; \
                elastic10[0-2][0-9]|elastic103[0-1]) echo 
partman/elasticsearch-raid0.cfg ;; \
diff --git 
a/modules/install_server/files/autoinstall/partman/cassandrahosts-12hdd.cfg 
b/modules/install_server/files/autoinstall/partman/cassandrahosts-12hdd.cfg
new file mode 100644
index 0000000..38ad519
--- /dev/null
+++ b/modules/install_server/files/autoinstall/partman/cassandrahosts-12hdd.cfg
@@ -0,0 +1,69 @@
+# Automatic software RAID partitioning
+#
+# * 12 HDDs
+#
+# * layout:
+#   - /:      30G ext4, RAID1 on sda1 and sdb1
+#   - swap:   RAID1, 1GB on sda2 and sdb2
+#   - /var:   ext4 LVM RAID10 on sda3, sdb3, and sdc1-sdl1
+
+d-i    partman-auto/method             string  raid
+d-i    partman-md/device_remove_md     boolean true
+d-i    partman-lvm/device_remove_lvm   boolean true
+d-i    partman/alignment               select  optimal
+
+d-i    partman-auto/disk       string  /dev/sda /dev/sdb /dev/sdc /dev/sdd 
/dev/sde /dev/sdf /dev/sdg /dev/sdh /dev/sdi /dev/sdj /dev/sdk /dev/sdl
+d-i    partman-auto/choose_recipe select raid1-root
+
+# Define physical partitions
+d-i    partman-auto/expert_recipe      string  \
+               raid1-root ::   \
+                       30000   1       30000   raid            \
+                               $primary{ } method{ raid }      \
+                               $lvmignore{ }                   \
+                       .                                       \
+                       1000    2       1000    raid    \
+                               $primary{ } method{ raid }      \
+                               $lvmignore{ }                   \
+                       .                                       \
+                       100000  3       -1      raid            \
+                               $primary{ } method{ raid }      \
+                               $lvmignore{ }                   \
+                       .                                       \
+                       100000   4      -1  ext4                \
+                                       $lvmok{ }               \
+                                       $defaultignore{ }       \
+                                       lv_name{ var }          \
+                                       method{ format }        \
+                                       format{ }               \
+                                       use_filesystem{ }       \
+                                       filesystem{ ext4 }      \
+                                       mountpoint{ /var }      \
+                       .
+
+# Parameters are:
+# <raidtype> <devcount> <sparecount> <fstype> <mountpoint> \
+#      <devices> <sparedevices>
+d-i    partman-auto-raid/recipe        string          \
+               1       2       2       ext4    /       \
+                       /dev/sda1#/dev/sdb1             \
+               .                                       \
+               1       2       0       swap    -       \
+                       /dev/sda2#/dev/sdb2             \
+               .                                       \
+               0       12      0       lvm     -       \
+                       
/dev/sda3#/dev/sdb3#/dev/sdc1#/dev/sdd1#/dev/sde1#/dev/sdf1#/dev/sdg1#/dev/sdh1#/dev/sdi1#/dev/sdj1#/dev/sdk1#/dev/sdl1
         \
+               .
+
+d-i    partman-md/confirm              boolean true
+d-i    partman-md/confirm_nooverwrite  boolean true
+d-i    partman/confirm_write_new_label boolean true
+d-i    partman/choose_partition        select  finish
+d-i    partman/confirm                 boolean true
+d-i    partman/confirm_nooverwrite     boolean true
+
+d-i    partman-auto-lvm/guided_size    string  80%
+d-i    partman-lvm/confirm             boolean true
+d-i    partman-lvm/confirm_nooverwrite boolean true
+d-i    partman-lvm/device_remove_lvm   boolean true
+d-i    mdadm/boot_degraded             boolean true

-- 
To view, visit https://gerrit.wikimedia.org/r/239371
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie5eccb894deaa28ef451c4b31c5c35515e23c2ac
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Ottomata <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to