Alexandros Kosiaris has submitted this change and it was merged.
Change subject: Add apertium role for production
......................................................................
Add apertium role for production
Create the apertium role for production similar to Beta for apertium.
In addition this role has,
* Added monitoring for port 2737,
* Removed jenkins-deploy reload part,
* Dropped log_dir in production.
Bug: T78629
Change-Id: Ic7419a9cb99e4436db96117a803f94d578e79f32
---
M manifests/role/apertium.pp
1 file changed, 20 insertions(+), 4 deletions(-)
Approvals:
Alexandros Kosiaris: Looks good to me, approved
jenkins-bot: Verified
diff --git a/manifests/role/apertium.pp b/manifests/role/apertium.pp
index d189d21..8abf745 100644
--- a/manifests/role/apertium.pp
+++ b/manifests/role/apertium.pp
@@ -1,10 +1,26 @@
# vim: set ts=4 et sw=4:
-# We do not have monitoring yet
-#@monitoring::group { 'apertium_eqiad': description => 'eqiad apertium
servers' }
+class role::apertium::production {
+ system::role { 'role::apertium::production':
+ description => 'Apertium APY server'
+ }
-# Skipping production for now
-#class role::apertium::production {}
+ include ::apertium
+
+ # Define apertium port
+ $apertium_port = '2737'
+
+ # We have to explicitly open the apertium port (bug T47868)
+ ferm::service { 'apertium_http':
+ proto => 'tcp',
+ port => $apertium_port,
+ }
+
+ monitor_service { 'apertium':
+ description => 'apertium apy',
+ check_command => 'check_http_on_port!2737',
+ }
+}
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: merged
Gerrit-Change-Id: Ic7419a9cb99e4436db96117a803f94d578e79f32
Gerrit-PatchSet: 3
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: KartikMistry <[email protected]>
Gerrit-Reviewer: Alexandros Kosiaris <[email protected]>
Gerrit-Reviewer: KartikMistry <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits