[MediaWiki-commits] [Gerrit] operations/puppet[production]: mariadb: Decommission db1044

2017-12-03 Thread Marostegui (Code Review)
Marostegui has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/394919 )

Change subject: mariadb: Decommission db1044
..


mariadb: Decommission db1044

db1044 is going to be decommissioned

Bug: T181696
Change-Id: If69b2ec3fa2b8427248f98467ee37a05c7a5c893
---
D hieradata/hosts/db1044.yaml
M manifests/site.pp
M modules/install_server/files/dhcpd/linux-host-entries.ttyS1-115200
M modules/role/files/prometheus/mysql-core_eqiad.yaml
4 files changed, 4 insertions(+), 14 deletions(-)

Approvals:
  Marostegui: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/hieradata/hosts/db1044.yaml b/hieradata/hosts/db1044.yaml
deleted file mode 100644
index 82450ff..000
--- a/hieradata/hosts/db1044.yaml
+++ /dev/null
@@ -1,4 +0,0 @@
-mariadb::shard: 's3'
-mariadb::binlog_format: 'ROW'
-mariadb::socket: '/tmp/mysql.sock'
-profile::base::notifications_enabled: '0'
diff --git a/manifests/site.pp b/manifests/site.pp
index 8b19591..a8e7e07 100644
--- a/manifests/site.pp
+++ b/manifests/site.pp
@@ -352,10 +352,13 @@
 role(mariadb::core)
 }
 
-node /^db1(044|072|077|078)\.eqiad\.wmnet/ {
+node /^db1(072|077|078)\.eqiad\.wmnet/ {
 role(mariadb::core)
 }
 
+node 'db1044.eqiad.wmnet' {
+role(spare::system)
+}
 # s3 (default) core production dbs on codfw
 # codfw master
 node 'db2018.codfw.wmnet' {
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 ec63277..26ee3c4 100644
--- a/modules/install_server/files/dhcpd/linux-host-entries.ttyS1-115200
+++ b/modules/install_server/files/dhcpd/linux-host-entries.ttyS1-115200
@@ -959,14 +959,6 @@
 fixed-address db1043.eqiad.wmnet;
 }
 
-host db1044 {
-hardware ethernet 78:2b:cb:03:63:06;
-fixed-address db1044.eqiad.wmnet;
-option pxelinux.pathprefix "trusty-installer/";
-filename "trusty-installer/ubuntu-installer/amd64/pxelinux.0";
-
-}
-
 host db1046 {
 hardware ethernet 78:2b:cb:03:60:c9;
 fixed-address db1046.eqiad.wmnet;
diff --git a/modules/role/files/prometheus/mysql-core_eqiad.yaml 
b/modules/role/files/prometheus/mysql-core_eqiad.yaml
index 11e62aa..f0720c8 100644
--- a/modules/role/files/prometheus/mysql-core_eqiad.yaml
+++ b/modules/role/files/prometheus/mysql-core_eqiad.yaml
@@ -39,7 +39,6 @@
 shard: s3
 role: slave
   targets:
-  - db1044:9104
   - db1072:9104
   - db1077:9104
   - db1078:9104

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

Gerrit-MessageType: merged
Gerrit-Change-Id: If69b2ec3fa2b8427248f98467ee37a05c7a5c893
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Marostegui 
Gerrit-Reviewer: Jcrespo 
Gerrit-Reviewer: Marostegui 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] operations/puppet[production]: mariadb: Decommission db1044

2017-12-03 Thread Marostegui (Code Review)
Marostegui has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/394919 )

Change subject: mariadb: Decommission db1044
..

mariadb: Decommission db1044

db1044 is going to be decommissioned

Bug: T181696
Change-Id: If69b2ec3fa2b8427248f98467ee37a05c7a5c893
---
D hieradata/hosts/db1044.yaml
M manifests/site.pp
M modules/install_server/files/dhcpd/linux-host-entries.ttyS1-115200
M modules/role/files/prometheus/mysql-core_eqiad.yaml
4 files changed, 4 insertions(+), 14 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/19/394919/1

diff --git a/hieradata/hosts/db1044.yaml b/hieradata/hosts/db1044.yaml
deleted file mode 100644
index 82450ff..000
--- a/hieradata/hosts/db1044.yaml
+++ /dev/null
@@ -1,4 +0,0 @@
-mariadb::shard: 's3'
-mariadb::binlog_format: 'ROW'
-mariadb::socket: '/tmp/mysql.sock'
-profile::base::notifications_enabled: '0'
diff --git a/manifests/site.pp b/manifests/site.pp
index 8b19591..a8e7e07 100644
--- a/manifests/site.pp
+++ b/manifests/site.pp
@@ -352,10 +352,13 @@
 role(mariadb::core)
 }
 
-node /^db1(044|072|077|078)\.eqiad\.wmnet/ {
+node /^db1(072|077|078)\.eqiad\.wmnet/ {
 role(mariadb::core)
 }
 
+node 'db1044.eqiad.wmnet' {
+role(spare::system)
+}
 # s3 (default) core production dbs on codfw
 # codfw master
 node 'db2018.codfw.wmnet' {
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 ec63277..26ee3c4 100644
--- a/modules/install_server/files/dhcpd/linux-host-entries.ttyS1-115200
+++ b/modules/install_server/files/dhcpd/linux-host-entries.ttyS1-115200
@@ -959,14 +959,6 @@
 fixed-address db1043.eqiad.wmnet;
 }
 
-host db1044 {
-hardware ethernet 78:2b:cb:03:63:06;
-fixed-address db1044.eqiad.wmnet;
-option pxelinux.pathprefix "trusty-installer/";
-filename "trusty-installer/ubuntu-installer/amd64/pxelinux.0";
-
-}
-
 host db1046 {
 hardware ethernet 78:2b:cb:03:60:c9;
 fixed-address db1046.eqiad.wmnet;
diff --git a/modules/role/files/prometheus/mysql-core_eqiad.yaml 
b/modules/role/files/prometheus/mysql-core_eqiad.yaml
index 11e62aa..f0720c8 100644
--- a/modules/role/files/prometheus/mysql-core_eqiad.yaml
+++ b/modules/role/files/prometheus/mysql-core_eqiad.yaml
@@ -39,7 +39,6 @@
 shard: s3
 role: slave
   targets:
-  - db1044:9104
   - db1072:9104
   - db1077:9104
   - db1078:9104

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: If69b2ec3fa2b8427248f98467ee37a05c7a5c893
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Marostegui 

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