Rush has uploaded a new change for review.

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

Change subject: phab link phd to /etc/init.d for service management
......................................................................

phab link phd to /etc/init.d for service management

Change-Id: I0cb9b07d99d6a2ed88dfc7e578bab7bb9dc64149
---
M modules/phabricator/manifests/init.pp
M modules/phabricator/manifests/phd.pp
2 files changed, 10 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/51/189951/1

diff --git a/modules/phabricator/manifests/init.pp 
b/modules/phabricator/manifests/init.pp
index b6f2b29..f0ee310 100644
--- a/modules/phabricator/manifests/init.pp
+++ b/modules/phabricator/manifests/init.pp
@@ -271,6 +271,7 @@
     }
 
     class { 'phabricator::phd':
+        basedir  => $phabdir,
         settings => $phab_settings,
         before   => Service['phd'],
     }
diff --git a/modules/phabricator/manifests/phd.pp 
b/modules/phabricator/manifests/phd.pp
index 18e1893..ee46e82 100644
--- a/modules/phabricator/manifests/phd.pp
+++ b/modules/phabricator/manifests/phd.pp
@@ -1,6 +1,14 @@
 # == Class: phabricator::phd
 #
-class phabricator::phd($settings = {}) {
+class phabricator::phd (
+    $settings = {},
+    basedir   = '',
+) {
+
+    file { '/etc/init.d/phd':
+       ensure => 'link',
+       target => "${basedir}/phabricator/bin/phd",
+    }
 
     file { $settings['phd.pid-directory']:
         ensure => 'directory',

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

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

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

Reply via email to