aboutsummaryrefslogtreecommitdiff
path: root/modules/role
diff options
context:
space:
mode:
Diffstat (limited to 'modules/role')
-rw-r--r--modules/role/manifests/backup.pp7
-rw-r--r--modules/role/manifests/caldance.pp1
-rw-r--r--modules/role/manifests/cryptoportfolio.pp1
-rw-r--r--modules/role/manifests/etherpad.pp14
4 files changed, 22 insertions, 1 deletions
diff --git a/modules/role/manifests/backup.pp b/modules/role/manifests/backup.pp
index b35c542..6b8d00c 100644
--- a/modules/role/manifests/backup.pp
+++ b/modules/role/manifests/backup.pp
@@ -14,6 +14,7 @@ class role::backup (
14 include "profile::xmr_stak" 14 include "profile::xmr_stak"
15 include "profile::known_hosts" 15 include "profile::known_hosts"
16 include "profile::boinc" 16 include "profile::boinc"
17 include "profile::monitoring"
17 18
18 include "role::backup::postgresql" 19 include "role::backup::postgresql"
19 20
@@ -124,5 +125,11 @@ class role::backup (
124 order => "$order_dirname-$order_part", 125 order => "$order_dirname-$order_part",
125 } 126 }
126 } 127 }
128
129 @profile::monitoring::local_service { "Last backup in $base is not too old":
130 local => {
131 check_command => "check_last_file_date!$base!14",
132 }
133 }
127 } 134 }
128} 135}
diff --git a/modules/role/manifests/caldance.pp b/modules/role/manifests/caldance.pp
index 75d9dbd..b7948e6 100644
--- a/modules/role/manifests/caldance.pp
+++ b/modules/role/manifests/caldance.pp
@@ -6,6 +6,7 @@ class role::caldance (
6 include "profile::postgresql" 6 include "profile::postgresql"
7 include "profile::apache" 7 include "profile::apache"
8 include "profile::redis" 8 include "profile::redis"
9 include "profile::monitoring"
9 10
10 ensure_packages(["python-pip", "python-virtualenv", "python-django"]) 11 ensure_packages(["python-pip", "python-virtualenv", "python-django"])
11} 12}
diff --git a/modules/role/manifests/cryptoportfolio.pp b/modules/role/manifests/cryptoportfolio.pp
index c675e91..8f7bfca 100644
--- a/modules/role/manifests/cryptoportfolio.pp
+++ b/modules/role/manifests/cryptoportfolio.pp
@@ -41,7 +41,6 @@ class role::cryptoportfolio (
41 contain "role::cryptoportfolio::bot" 41 contain "role::cryptoportfolio::bot"
42 } 42 }
43 43
44 # FIXME: restore backup
45 unless empty($front_version) { 44 unless empty($front_version) {
46 contain "role::cryptoportfolio::front" 45 contain "role::cryptoportfolio::front"
47 } 46 }
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}