]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blobdiff - modules/role/manifests/cryptoportfolio.pp
Add monitoring for cryptoportfolio
[perso/Immae/Projets/Puppet.git] / modules / role / manifests / cryptoportfolio.pp
index 966f549fa81e3a73b8334bd8662ebd3cb3ee448e..1738685825e397f5c81c4472ad2e40982eb95ad3 100644 (file)
@@ -5,11 +5,14 @@ class role::cryptoportfolio (
   Optional[String]  $env                 = "prod",
   Optional[String]  $webhook_url         = undef,
   String            $pg_user,
-  String            $pg_user_replication,
   String            $pg_db,
-  Optional[String]  $pg_hostname          = "localhost",
+  Optional[String]  $pg_hostname          = "/run/postgresql",
   Optional[String]  $pg_port              = "5432",
   Optional[String]  $redis_host           = "/run/redis/redis.sock",
+  Optional[String]  $smtp_login           = undef,
+  Optional[String]  $smtp_password        = undef,
+  Optional[String]  $smtp_host            = undef,
+  Optional[String]  $mail_from            = undef,
   Optional[String]  $web_host             = undef,
   Optional[String]  $web_port             = "",
   Optional[Boolean] $web_ssl              = true,
@@ -25,6 +28,7 @@ class role::cryptoportfolio (
   include "profile::apache"
   include "profile::xmr_stak"
   include "profile::boinc"
+  include "profile::monitoring"
 
   contain "role::cryptoportfolio::postgresql"
   contain "role::cryptoportfolio::apache"
@@ -38,7 +42,6 @@ class role::cryptoportfolio (
     contain "role::cryptoportfolio::bot"
   }
 
-  # FIXME: restore backup
   unless empty($front_version) {
     contain "role::cryptoportfolio::front"
   }