Yuvipanda has uploaded a new change for review.

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

Change subject: toollabs: Setup proxylistener.py on proxy host
......................................................................

toollabs: Setup proxylistener.py on proxy host

Uses an init script rather than upstart (ugh) but wfn

Change-Id: I0cc260cdb9c94252141ceb5c829fb6c9a5cbca54
---
A modules/toollabs/files/proxylistener.conf
M modules/toollabs/manifests/proxy.pp
2 files changed, 28 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/12/123112/1

diff --git a/modules/toollabs/files/proxylistener.conf 
b/modules/toollabs/files/proxylistener.conf
new file mode 100644
index 0000000..9f24d52
--- /dev/null
+++ b/modules/toollabs/files/proxylistener.conf
@@ -0,0 +1,12 @@
+# portgranter - setup routing info in redis for Yuviproxy
+
+description "ProxyListener"
+
+start on runlevel [2345]
+stop on runlevel [!2345]
+
+respawn
+
+console log
+
+exec /usr/local/sbin/proxylistener
diff --git a/modules/toollabs/manifests/proxy.pp 
b/modules/toollabs/manifests/proxy.pp
index c6eea5b..1b98cbb 100644
--- a/modules/toollabs/manifests/proxy.pp
+++ b/modules/toollabs/manifests/proxy.pp
@@ -10,4 +10,20 @@
     package { 'python-redis':
         ensure => latest
     }
+
+    file { '/usr/local/sbin/proxylistener':
+        ensure => file,
+        owner  => 'root',
+        group  => 'root',
+        mode   => '0555',
+        source => 'puppet:///modules/toollabs/proxylistener.py'
+    }
+
+    file { '/etc/init/proxylistener.conf':
+        ensure => file,
+        owner  => 'root',
+        group  => 'root',
+        mode   => '0444',
+        source => 'puppet:///modules/toollabs/proxylistener.conf',
+    }
 }

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

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

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

Reply via email to