diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-07-11 09:31:24 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-07-11 09:31:24 +0200 |
commit | 2bdbb0213a0f70705f81ac2eaf8349668b2c29b4 (patch) | |
tree | 06b1e40db99815133dcc40e3e68531d45e1bd228 /modules/role/manifests/etherpad.pp | |
parent | 25c99a635507abfe6af4a1f0a9fc5a103d1880c0 (diff) | |
parent | d8bc769648c1528f5d749deee060d70e326ef431 (diff) | |
download | Puppet-2bdbb0213a0f70705f81ac2eaf8349668b2c29b4.tar.gz Puppet-2bdbb0213a0f70705f81ac2eaf8349668b2c29b4.tar.zst Puppet-2bdbb0213a0f70705f81ac2eaf8349668b2c29b4.zip |
Merge branch 'monitoring' into dev
Diffstat (limited to 'modules/role/manifests/etherpad.pp')
-rw-r--r-- | modules/role/manifests/etherpad.pp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/role/manifests/etherpad.pp b/modules/role/manifests/etherpad.pp index 5ab5023..119af56 100644 --- a/modules/role/manifests/etherpad.pp +++ b/modules/role/manifests/etherpad.pp | |||
@@ -22,6 +22,7 @@ class role::etherpad ( | |||
22 | include "profile::tools" | 22 | include "profile::tools" |
23 | include "profile::postgresql" | 23 | include "profile::postgresql" |
24 | include "profile::apache" | 24 | include "profile::apache" |
25 | include "profile::monitoring" | ||
25 | 26 | ||
26 | ensure_packages(["npm"]) | 27 | ensure_packages(["npm"]) |
27 | ensure_packages(["abiword"]) | 28 | ensure_packages(["abiword"]) |
@@ -121,4 +122,17 @@ class role::etherpad ( | |||
121 | proxy_preserve_host => true; | 122 | proxy_preserve_host => true; |
122 | default: * => $::profile::apache::apache_vhost_default; | 123 | default: * => $::profile::apache::apache_vhost_default; |
123 | } | 124 | } |
125 | |||
126 | @profile::monitoring::external_service { "Etherpad service is running on $web_host": | ||
127 | type => "web", | ||
128 | master => { | ||
129 | check_command => "check_https!$web_host!/!<title>Etherpad" | ||
130 | } | ||
131 | } | ||
132 | @profile::monitoring::external_service { "$web_host ssl certificate is up to date": | ||
133 | type => "web", | ||
134 | master => { | ||
135 | check_command => "check_https_certificate!$web_host" | ||
136 | } | ||
137 | } | ||
124 | } | 138 | } |