[MediaWiki-commits] [Gerrit] introduce partman recipe for dm-cache - change (operations/puppet)

2015-02-10 Thread Filippo Giunchedi (Code Review)
Filippo Giunchedi has submitted this change and it was merged.

Change subject: introduce partman recipe for dm-cache
..


introduce partman recipe for dm-cache

also provision graphite1002 with it

Bug: T88992
Change-Id: Icc8ebbc2c8d70507044c52a0b85f5ba3d80ce7e7
---
M modules/install-server/files/autoinstall/netboot.cfg
A modules/install-server/files/autoinstall/partman/graphite-dmcache.cfg
2 files changed, 72 insertions(+), 0 deletions(-)

Approvals:
  Filippo Giunchedi: Verified; Looks good to me, approved



diff --git a/modules/install-server/files/autoinstall/netboot.cfg 
b/modules/install-server/files/autoinstall/netboot.cfg
index 2d7c719..b52e8b7 100755
--- a/modules/install-server/files/autoinstall/netboot.cfg
+++ b/modules/install-server/files/autoinstall/netboot.cfg
@@ -62,6 +62,7 @@
d-i-test) echo partman/flat.cfg ;; \

antimony|arsenic|caesium|erbium|gadolinium|heze|magnesium|neodymium|palladium|promethium|rubidium|strontium|terbium)
 echo partman/lvm.cfg ;; \
graphite[12]001) echo partman/graphite.cfg ;; \
+   graphite1002) echo partman/graphite-dmcache.cfg ;; \
lvs[1-6]|lvs[12]00*) echo partman/flat.cfg ;; \
lvs[34]00*) echo partman/raid1-lvm.cfg ;; \
eeden) echo partman/raid1-1partition.cfg ;; \
diff --git 
a/modules/install-server/files/autoinstall/partman/graphite-dmcache.cfg 
b/modules/install-server/files/autoinstall/partman/graphite-dmcache.cfg
new file mode 100644
index 000..83b1d74
--- /dev/null
+++ b/modules/install-server/files/autoinstall/partman/graphite-dmcache.cfg
@@ -0,0 +1,71 @@
+# Automatic software RAID 10 with LVM partitioning
+# test dm-cache T88992
+#
+# * /dev/sda: db-class hw-raid10 spinning disks 1.7TB
+# * /dev/sdb: hw-raid raid1 SSD 256GB
+
+# * layout:
+#   - /boot: ext4 on ssd, no lvm
+#   - two VG: data (hdd+ssd) and system (ssd)
+#   - swap: vg-sys 1GB
+#   - /: vg-sys 20GB
+
+d-ipartman-auto/method string  lvm
+d-ipartman-md/device_remove_md boolean true
+d-ipartman-lvm/device_remove_lvm   boolean true
+
+d-ipartman-auto/disk   string  /dev/sda /dev/sdb
+
+# Define physical partitions
+d-ipartman-auto/expert_recipe  string  \
+   multiraid ::\
+   40 300 300 ext3 \
+   $primary{ } \
+   $bootable{ }\
+   method{ format }\
+   format{ }   \
+   use_filesystem{ }   \
+   filesystem{ ext4 }  \
+   mountpoint{ /boot } \
+   device{ /dev/sdb }  \
+   .   \
+   1000 8000 1000 linux-swap   \
+   method{ swap }  \
+   $lvmok{ }   \
+   format{ }   \
+   device{ /dev/sdb }  \
+   vg_name{ vg-sys }   \
+   .   \
+   3 3 3 ext4  \
+   $lvmok{ }   \
+   method{ format }\
+   format{ }   \
+   use_filesystem{ }   \
+   filesystem{ ext4 }  \
+   mountpoint{ / } \
+   device{ /dev/sdb }  \
+   vg_name{ vg-sys }   \
+   10 3 -1 ext4\
+   method{ keep }  \
+   device{ /dev/sdb }  \
+   50 3 -1 ext4\
+   $lvmok{ }   \
+   method{ format }\
+   format{ }   \
+   use_filesystem{ }   \
+   filesystem{ ext4 }  \
+   mountpoint{ /var/lib/carbon }   \
+   device{ /dev/sda }  \
+   vg_name{ vg-data }  \
+   .
+
+d-ipartman-md/confirm  boolean true
+d-ipartman-md/confirm_nooverwrite  boolean true
+d-ipartman/confirm_write_new_label boolean true
+d-ipartman/choose_partitionselect  finish
+d-ipartman/confirm boolean true
+d-ipartman/confirm_nooverwrite boolean true
+
+d-ipartman-auto-lvm/guided_sizestring  80%
+d-ipartman-lvm/confirm boolean true
+d-ipartman-lvm/confirm_nooverwrite boolean true

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Icc8ebbc2c8d70507044c52a0b85f5ba3d80ce7e7
Gerrit-Pa

[MediaWiki-commits] [Gerrit] introduce partman recipe for dm-cache - change (operations/puppet)

2015-02-10 Thread Filippo Giunchedi (Code Review)
Filippo Giunchedi has uploaded a new change for review.

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

Change subject: introduce partman recipe for dm-cache
..

introduce partman recipe for dm-cache

also provision graphite1002 with it

Bug: T88992
Change-Id: Icc8ebbc2c8d70507044c52a0b85f5ba3d80ce7e7
---
M modules/install-server/files/autoinstall/netboot.cfg
A modules/install-server/files/autoinstall/partman/graphite-dmcache.cfg
2 files changed, 72 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/20/189720/1

diff --git a/modules/install-server/files/autoinstall/netboot.cfg 
b/modules/install-server/files/autoinstall/netboot.cfg
index 2d7c719..b52e8b7 100755
--- a/modules/install-server/files/autoinstall/netboot.cfg
+++ b/modules/install-server/files/autoinstall/netboot.cfg
@@ -62,6 +62,7 @@
d-i-test) echo partman/flat.cfg ;; \

antimony|arsenic|caesium|erbium|gadolinium|heze|magnesium|neodymium|palladium|promethium|rubidium|strontium|terbium)
 echo partman/lvm.cfg ;; \
graphite[12]001) echo partman/graphite.cfg ;; \
+   graphite1002) echo partman/graphite-dmcache.cfg ;; \
lvs[1-6]|lvs[12]00*) echo partman/flat.cfg ;; \
lvs[34]00*) echo partman/raid1-lvm.cfg ;; \
eeden) echo partman/raid1-1partition.cfg ;; \
diff --git 
a/modules/install-server/files/autoinstall/partman/graphite-dmcache.cfg 
b/modules/install-server/files/autoinstall/partman/graphite-dmcache.cfg
new file mode 100644
index 000..d68d7a1
--- /dev/null
+++ b/modules/install-server/files/autoinstall/partman/graphite-dmcache.cfg
@@ -0,0 +1,71 @@
+# Automatic software RAID 10 with LVM partitioning
+# test dm-cache T88992
+#
+# * /dev/sda: db-class hw-raid10 spinning disks 1.7TB
+# * /dev/sdb: hw-raid raid1 SSD 256GB
+
+# * layout:
+#   - /boot: ext4 on ssd, no lvm
+#   - two VG: data (hdd+ssd) and system (ssd)
+#   - swap: vg-sys 1GB
+#   - /: vg-sys 20GB
+
+d-ipartman-auto/method string  lvm
+d-ipartman-md/device_remove_md boolean true
+d-ipartman-lvm/device_remove_lvm   boolean true
+
+d-ipartman-auto/disk   string  /dev/sda /dev/sdb
+
+# Define physical partitions
+d-ipartman-auto/expert_recipe  string  \
+   multiraid ::\
+   40 300 300 ext3 \
+   $primary{ } \
+   $bootable{ }\
+   method{ format }\
+   format{ }   \
+   use_filesystem{ }   \
+   filesystem{ ext4 }  \
+   mountpoint{ /boot } \
+   device{ /dev/sdb }  \
+   .   \
+   1000 8000 1000 linux-swap   \
+   method{ swap }  \
+   $lvmok{ }   \
+   format{ }   \
+   device{ /dev/sdb }  \
+   vg_name{ vg-sys }   \
+   .   \
+   3 3 3 ext4  \
+   $lvmok{ }   \
+   method{ format }\
+   format{ }   \
+   use_filesystem{ }   \
+   filesystem{ ext4 }  \
+   mountpoint{ / } \
+   device{ /dev/sdb }  \
+   vg_name{ vg-sys }   \
+   10 3 -1 ext4\
+   method{ keep }  \
+   device{ /dev/sdb }  \
+   50 3 -1 ext4\
+   $lvmok{ }   \
+   method{ format }\
+   format{ }   \
+   use_filesystem{ }   \
+   filesystem{ ext4 }  \
+   mountpoint{ / } \
+   device{ /dev/sda }  \
+   vg_name{ vg-data }  \
+   .
+
+d-ipartman-md/confirm  boolean true
+d-ipartman-md/confirm_nooverwrite  boolean true
+d-ipartman/confirm_write_new_label boolean true
+d-ipartman/choose_partitionselect  finish
+d-ipartman/confirm boolean true
+d-ipartman/confirm_nooverwrite boolean true
+
+d-ipartman-auto-lvm/guided_sizestring  80%
+d-ipartman-lvm/confirm boolean true
+d-ipartman-lvm/confirm_nooverwrite boolean true

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icc8e