RobH has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/373328 )

Change subject: kafka-jumbo install params
......................................................................

kafka-jumbo install params

adding new partman recipe to work on as well as normal updates

Bug: T167992
Change-Id: I6ed986c4b8113aaaa16eaf6a51025791370ce28e
---
M manifests/site.pp
M modules/install_server/files/autoinstall/netboot.cfg
A modules/install_server/files/autoinstall/partman/kafka-jumbo.cfg
M modules/install_server/files/dhcpd/linux-host-entries.ttyS1-115200
4 files changed, 85 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/28/373328/1

diff --git a/manifests/site.pp b/manifests/site.pp
index 2df9fec..7fb2bbe 100644
--- a/manifests/site.pp
+++ b/manifests/site.pp
@@ -1213,6 +1213,11 @@
     include ::standard
 }
 
+# kakfa-jumbo nodes set to role spare until analytics pushes into service 
T167992
+node /kafka-jumbo100[1-6]\.eqiad\.wmnet/ {
+    role(spare::system)
+)
+
 # virtual machine for misc. PHP apps
 node 'krypton.eqiad.wmnet' {
     # kafka::analytics::burrow is a Kafka consumer lag monitor.
diff --git a/modules/install_server/files/autoinstall/netboot.cfg 
b/modules/install_server/files/autoinstall/netboot.cfg
index 4e3a74f..b747feb 100755
--- a/modules/install_server/files/autoinstall/netboot.cfg
+++ b/modules/install_server/files/autoinstall/netboot.cfg
@@ -91,6 +91,7 @@
         graphite200[12]) echo partman/graphite.cfg ;; \
         kafka1013|kafka1014|kafka1020) echo partman/raid1-30G.cfg ;; \
         kafka100[1-3]|kafka200[1-3]|stat1004) echo 
partman/raid10-gpt-srv-ext4.cfg ;; \
+        kafka-jumbo100[1-6]) echo partman/kafka-jumbo.cfg ;; \
         kubernetes[12]00[1-4]|kubestage100[12]) echo partman/docker-host.cfg 
;; \
         
auth[1-2]001|contint[12]001|einsteinium|labcontrol100[1-2]|labnodepool1001|naos|neodymium|oresrdb100[1-2]|oresrdb2002|phab2001)
 echo partman/raid1-lvm-ext4-srv.cfg ;; \
         labnet100[1-2]) echo partman/lvm.cfg ;; \
diff --git a/modules/install_server/files/autoinstall/partman/kafka-jumbo.cfg 
b/modules/install_server/files/autoinstall/partman/kafka-jumbo.cfg
new file mode 100644
index 0000000..4809c1f
--- /dev/null
+++ b/modules/install_server/files/autoinstall/partman/kafka-jumbo.cfg
@@ -0,0 +1,49 @@
+# configuration to create:
+#  * no RAID (either single disk or hardware raid presenting a single device)
+#  * 40G /
+#  * the rest formatted with LVM with 90% used
+#  ** the rest as ext4 on /srv
+#  ** 10% empty space for later growth
+
+
+d-i    partman-auto/method     string  lvm
+d-i    partman-auto/disk       string  /dev/sda /dev/sdb
+
+# the install makes sure we want to wipe the lvm
+d-i    partman-lvm/device_remove_lvm   boolean false
+d-i    partman-lvm/confirm     boolean true
+d-i    partman-lvm/confirm_nooverwrite boolean true
+d-i    partman/confirm boolean true
+
+# standardize vg name for snapshots (otherwise uses hostname)
+d-i    partman-auto-lvm/new_vg_name string tank
+
+d-i    partman-auto/expert_recipe      string  es ::   \
+               40000 40000 40000 ext4          \
+                       $primary{ }             \
+                       $bootable{ }            \
+                       method{ format }        \
+                       format{ }               \
+                       device{ /dev/sda }      \
+                       use_filesystem{ }       \
+                       filesystem{ ext4 }      \
+                       mountpoint{ / }         \
+               .                               \
+               64 1000 10000000 xfs            \
+                       lv_name{ data }         \
+                       $defaultignore{ }       \
+                       $lvmok{ }               \
+                       mountpoint{ /srv }      \
+                       device{ /dev/sdb }      \
+                       options/nobarrier { nobarrier } \
+                       options/noatime { noatime } \
+               .
+
+d-i    partman-auto-lvm/guided_size    string  87%
+
+d-i    partman/choose_partition        \
+               select  finish
+d-i    partman-partitioning/confirm_write_new_label    boolean true
+
+d-i    partman-auto/choose_recipe      es
+d-i    partman/confirm_nooverwrite     boolean true
diff --git a/modules/install_server/files/dhcpd/linux-host-entries.ttyS1-115200 
b/modules/install_server/files/dhcpd/linux-host-entries.ttyS1-115200
index c592113..5ff29dc 100644
--- a/modules/install_server/files/dhcpd/linux-host-entries.ttyS1-115200
+++ b/modules/install_server/files/dhcpd/linux-host-entries.ttyS1-115200
@@ -2594,6 +2594,36 @@
     fixed-address kafka2003.codfw.wmnet;
 }
 
+host kafka-jumbo1001 {
+    hardware ethernet 18:66:DA:FC:D5:30;
+    fixed-address kafka-jumbo1001.eqiad.wmnet;
+}
+
+host kafka-jumbo1002 {
+    hardware ethernet 18:66:DA:FC:C8:F8;
+    fixed-address kafka-jumbo1002.eqiad.wmnet;
+}
+
+host kafka-jumbo1003 {
+    hardware ethernet 18:66:DA:FC:CC:BC;
+    fixed-address kafka-jumbo1003.eqiad.wmnet;
+}
+
+host kafka-jumbo1004 {
+    hardware ethernet 18:66:DA:FB:5E:68;
+    fixed-address kafka-jumbo1004.eqiad.wmnet;
+}
+
+host kafka-jumbo1005 {
+    hardware ethernet 18:66:DA:FC:D5:9C;
+    fixed-address kafka-jumbo1005.eqiad.wmnet;
+}
+
+host kafka-jumbo1006 {
+    hardware ethernet 18:66:DA:FC:D2:7C;
+    fixed-address kafka-jumbo1006.eqiad.wmnet;
+}
+
 host kubernetes1001 {
      hardware ethernet 18:66:DA:56:64:A1;
      fixed-address kubernetes1001.eqiad.wmnet;

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

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

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

Reply via email to