X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Frole%2Fmanifests%2Fcryptoportfolio.pp;h=966f549fa81e3a73b8334bd8662ebd3cb3ee448e;hb=e741407bd1dd0557bde0d74c061e02d198f889ed;hp=799e297475ff6047234bf8fba5f27fda12a5019e;hpb=39e05b4ec79c5dc07417a6cb1f0e1b2dcd111a1a;p=perso%2FImmae%2FProjets%2FPuppet.git diff --git a/modules/role/manifests/cryptoportfolio.pp b/modules/role/manifests/cryptoportfolio.pp index 799e297..966f549 100644 --- a/modules/role/manifests/cryptoportfolio.pp +++ b/modules/role/manifests/cryptoportfolio.pp @@ -9,13 +9,14 @@ class role::cryptoportfolio ( String $pg_db, Optional[String] $pg_hostname = "localhost", Optional[String] $pg_port = "5432", + Optional[String] $redis_host = "/run/redis/redis.sock", Optional[String] $web_host = undef, Optional[String] $web_port = "", Optional[Boolean] $web_ssl = true, Optional[String] $front_version = undef, Optional[String] $front_sha256 = undef, - Optional[String] $bot_version = undef, - Optional[String] $bot_sha256 = undef, + Optional[String] $trader_version = undef, + Optional[String] $trader_sha256 = undef, ) { include "base_installation" @@ -23,13 +24,17 @@ class role::cryptoportfolio ( include "profile::postgresql" include "profile::apache" include "profile::xmr_stak" + include "profile::boinc" contain "role::cryptoportfolio::postgresql" contain "role::cryptoportfolio::apache" contain "role::cryptoportfolio::notify" - unless empty($bot_version) { + unless empty($trader_version) { + if versioncmp($trader_version, "v1.3") >= 0 { + include "profile::redis" + } contain "role::cryptoportfolio::bot" }