]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blobdiff - modules/role/manifests/cryptoportfolio.pp
Merge branch 'dev'
[perso/Immae/Projets/Puppet.git] / modules / role / manifests / cryptoportfolio.pp
index 6a659cc8b30e53ff8b30fd6578c309fdf1194499..59dacd0254e1e6c4a4e067d0b5ac52d1e42546f1 100644 (file)
@@ -7,8 +7,13 @@ class role::cryptoportfolio (
   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,
@@ -23,6 +28,7 @@ class role::cryptoportfolio (
   include "profile::postgresql"
   include "profile::apache"
   include "profile::xmr_stak"
+  include "profile::boinc"
 
   contain "role::cryptoportfolio::postgresql"
   contain "role::cryptoportfolio::apache"
@@ -30,6 +36,9 @@ class role::cryptoportfolio (
   contain "role::cryptoportfolio::notify"
 
   unless empty($trader_version) {
+    if versioncmp($trader_version, "v1.3") >= 0 {
+      include "profile::redis"
+    }
     contain "role::cryptoportfolio::bot"
   }