[MediaWiki-commits] [Gerrit] operations/puppet[production]: osm: Also allow postgres connection from postgres slave

2016-09-15 Thread Alexandros Kosiaris (Code Review)
Alexandros Kosiaris has submitted this change and it was merged.

Change subject: osm: Also allow postgres connection from postgres slave
..


osm: Also allow postgres connection from postgres slave

Otherwise replication will not work

Change-Id: I5e9df48c03128adb5b302d772cbde180ca76da01
---
M modules/role/manifests/osm/master.pp
1 file changed, 5 insertions(+), 0 deletions(-)

Approvals:
  Alexandros Kosiaris: Verified; Looks good to me, approved



diff --git a/modules/role/manifests/osm/master.pp 
b/modules/role/manifests/osm/master.pp
index ebcee84..822fd88 100644
--- a/modules/role/manifests/osm/master.pp
+++ b/modules/role/manifests/osm/master.pp
@@ -154,6 +154,11 @@
 port   => 873,
 srange => '($EQIAD_PRIVATE_LABS_INSTANCES1_A_EQIAD 
$EQIAD_PRIVATE_LABS_INSTANCES1_B_EQIAD $EQIAD_PRIVATE_LABS_INSTANCES1_C_EQIAD 
$EQIAD_PRIVATE_LABS_INSTANCES1_D_EQIAD)',
 }
+ferm::service { 'postgres_from_slave':
+proto  => 'tcp',
+port   => '5432',
+srange => $osm_slave_v4,
+}
 nrpe::monitor_service { 'rsync_server_running':
 description  => 'Check if rsync server is running',
 nrpe_command => "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -C 
rsync --ereg-argument-array '/usr/bin/rsync --no-detach --daemon'",

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I5e9df48c03128adb5b302d772cbde180ca76da01
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Alexandros Kosiaris 
Gerrit-Reviewer: Alexandros Kosiaris 
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]: osm: Also allow postgres connection from postgres slave

2016-09-15 Thread Alexandros Kosiaris (Code Review)
Alexandros Kosiaris has uploaded a new change for review.

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

Change subject: osm: Also allow postgres connection from postgres slave
..

osm: Also allow postgres connection from postgres slave

Otherwise replication will not work

Change-Id: I5e9df48c03128adb5b302d772cbde180ca76da01
---
M modules/role/manifests/osm/master.pp
1 file changed, 5 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/59/310759/1

diff --git a/modules/role/manifests/osm/master.pp 
b/modules/role/manifests/osm/master.pp
index 2350b0b..7f6f04d 100644
--- a/modules/role/manifests/osm/master.pp
+++ b/modules/role/manifests/osm/master.pp
@@ -154,6 +154,11 @@
 port   => 873,
 srange => '($EQIAD_PRIVATE_LABS_INSTANCES1_A_EQIAD 
$EQIAD_PRIVATE_LABS_INSTANCES1_B_EQIAD $EQIAD_PRIVATE_LABS_INSTANCES1_C_EQIAD 
$EQIAD_PRIVATE_LABS_INSTANCES1_D_EQIAD)',
 }
+ferm::service { 'postgres_from_slave':
+proto  => 'tcp',
+port   => '5432',
+srange => $osm_slave_v4,
+}
 nrpe::monitor_service { 'rsync_server_running':
 description  => 'Check if rsync server is running',
 nrpe_command => "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -C 
rsync --ereg-argument-array '/usr/bin/rsync --no-detach --daemon'",

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5e9df48c03128adb5b302d772cbde180ca76da01
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Alexandros Kosiaris 

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