KartikMistry has uploaded a new change for review.
https://gerrit.wikimedia.org/r/180130
Change subject: WIP: Add apertium role for production
......................................................................
WIP: Add apertium role for production
Bug: T78629
Change-Id: Ic7419a9cb99e4436db96117a803f94d578e79f32
---
M manifests/role/apertium.pp
1 file changed, 26 insertions(+), 4 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/30/180130/1
diff --git a/manifests/role/apertium.pp b/manifests/role/apertium.pp
index d189d21..44547d9 100644
--- a/manifests/role/apertium.pp
+++ b/manifests/role/apertium.pp
@@ -1,10 +1,32 @@
# vim: set ts=4 et sw=4:
-# We do not have monitoring yet
-#@monitoring::group { 'apertium_eqiad': description => 'eqiad apertium
servers' }
+# Apertium is in a service cluster A.
+#@monitoring::group { 'sca_eqiad': description => 'Service Cluster A servers' }
-# Skipping production for now
-#class role::apertium::production {}
+class role::apertium::production {
+ system::role { 'role::apertium::production':
+ description => 'Apertium APY server'
+ }
+
+ include ::apertium
+
+ # Need to allow jenkins-deploy to reload apertium
+ sudo::user { 'jenkins-deploy': privileges => [
+ # Since the "root" user is local, we cant add the sudo policy in
+ # OpenStack manager interface at wikitech
+ 'ALL = (root) NOPASSWD:/usr/sbin/service apertium-apy restart',
+ ] }
+
+ # Define Apertium log directory and port
+ $log_dir = '/var/log/apertium'
+ $apertium_port = '2737'
+
+ # We have to explicitly open the apertium port (bug 45868)
+ ferm::service { 'apertium_http':
+ proto => 'tcp',
+ port => $apertium_port,
+ }
+}
class role::apertium::beta {
system::role { 'role::apertium::beta':
--
To view, visit https://gerrit.wikimedia.org/r/180130
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic7419a9cb99e4436db96117a803f94d578e79f32
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: KartikMistry <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits