RobH has uploaded a new change for review.

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

Change subject: new labstore partman recipe
......................................................................

new labstore partman recipe

this should create a / outside the LVM, and then create an empty LVM,
where puppet can later create partitions within it as nessasary.

labstore2003 is online in monitoring, so i wont merge or test this until
tomorrow (thursday) with madu to confirm those hosts can come down.

at that time, we can append in a phab task reference #

Change-Id: I27128c10850ddb4f3ac9898061c796a1ba1c2773
---
M modules/install_server/files/autoinstall/netboot.cfg
A modules/install_server/files/autoinstall/partman/labstore-lvm-noraid.cfg
2 files changed, 46 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/00/319500/1

diff --git a/modules/install_server/files/autoinstall/netboot.cfg 
b/modules/install_server/files/autoinstall/netboot.cfg
index 7d8ddad..938a9b8 100755
--- a/modules/install_server/files/autoinstall/netboot.cfg
+++ b/modules/install_server/files/autoinstall/netboot.cfg
@@ -91,6 +91,7 @@
         labsdb100[67]) echo partman/raid5-gpt-lvm.cfg ;; \
         labsdb[1-3]|labsdb100[1-3]) echo partman/mw.cfg ;; \
         sodium|labstore200[3-4]) echo partman/lvm-ext-srv.cfg ;; \
+        sodium|labstore200[3-4]) echo partman/labstore-lvm-noraid.cfg ;; \
         labtestneutron2001) echo partman/mw.cfg ;; \
         labtestnet2001) echo partman/raid1.cfg ;; \
         labtestweb2001) echo partman/raid1.cfg ;; \
diff --git 
a/modules/install_server/files/autoinstall/partman/labstore-lvm-noraid.cfg 
b/modules/install_server/files/autoinstall/partman/labstore-lvm-noraid.cfg
new file mode 100644
index 0000000..f8d0a5b
--- /dev/null
+++ b/modules/install_server/files/autoinstall/partman/labstore-lvm-noraid.cfg
@@ -0,0 +1,45 @@
+# configuration to create:
+#  * no RAID (either single disk or hardware raid presenting a single device)
+#  ** 30G / ext4 outside lvm
+#  ** no swap
+#  ** the rest as ext4 with no mount
+
+
+d-i    partman-auto/method     string  lvm
+d-i    partman-auto/disk       string  /dev/sda
+
+# the install makes sure we want to wipe the lvm
+d-i    partman-lvm/device_remove_lvm   boolean true
+d-i    partman-lvm/confirm     boolean true
+d-i    partman-lvm/confirm_nooverwrite true
+
+d-i    partman/confirm_nooverwrite     true
+d-i    partman/choose_partition        select  finish
+
+d-i    partman-auto/expert_recipe      string  es ::   \
+               30000 20000 30000 ext4          \
+                       $primary{ }             \
+                       $bootable{ }            \
+                       method{ format }        \
+                       format{ }               \
+                       use_filesystem{ }       \
+                       filesystem{ ext4 }      \
+                       mountpoint{ / }         \
+               .                               \
+               64 1000 10000000 ext4           \
+                       $primary{ }             \
+                       method{ format }        \
+                       format{ }               \
+                       use_filesystem{ }       \
+                       filesystem{ ext4 }      \
+                       lv_name{ data }         \
+                       $defaultignore{ }       \
+                       $lvmok{ }               \
+                       mountpoint{  }  \
+               .
+
+d-i    partman-auto-lvm/guided_size    string  75%
+
+d-i    partman-auto/choose_recipe      es
+partman-basicfilesystems partman-basicfilesystems/no_swap boolean false
+

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I27128c10850ddb4f3ac9898061c796a1ba1c2773
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: RobH <r...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to