X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Frole%2Fmanifests%2Fcryptoportfolio.pp;h=1738685825e397f5c81c4472ad2e40982eb95ad3;hb=7cf7f179e94d8a172ec00d14d31e6e2053398823;hp=6a659cc8b30e53ff8b30fd6578c309fdf1194499;hpb=acaa9ea9b08b2cb4783194b0f06b494c1aabe9c1;p=perso%2FImmae%2FProjets%2FPuppet.git diff --git a/modules/role/manifests/cryptoportfolio.pp b/modules/role/manifests/cryptoportfolio.pp index 6a659cc..1738685 100644 --- a/modules/role/manifests/cryptoportfolio.pp +++ b/modules/role/manifests/cryptoportfolio.pp @@ -5,10 +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, @@ -23,6 +27,8 @@ class role::cryptoportfolio ( include "profile::postgresql" include "profile::apache" include "profile::xmr_stak" + include "profile::boinc" + include "profile::monitoring" contain "role::cryptoportfolio::postgresql" contain "role::cryptoportfolio::apache" @@ -30,10 +36,12 @@ 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" } - # FIXME: restore backup unless empty($front_version) { contain "role::cryptoportfolio::front" }