aboutsummaryrefslogtreecommitdiff
path: root/modules/role/manifests/cryptoportfolio.pp
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-04-21 01:09:28 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-04-21 10:21:23 +0200
commitd5f4e591f9cfedefdd4a71515b46c78e9a77e2ad (patch)
tree58624f2d05cf74587ecf74fba92618f0c60b4bc9 /modules/role/manifests/cryptoportfolio.pp
parent9f430d51eec914c00249b9dc73e82500d312d7af (diff)
downloadPuppet-d5f4e591f9cfedefdd4a71515b46c78e9a77e2ad.tar.gz
Puppet-d5f4e591f9cfedefdd4a71515b46c78e9a77e2ad.tar.zst
Puppet-d5f4e591f9cfedefdd4a71515b46c78e9a77e2ad.zip
Add redis to cryptoportfolio
Diffstat (limited to 'modules/role/manifests/cryptoportfolio.pp')
-rw-r--r--modules/role/manifests/cryptoportfolio.pp4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/role/manifests/cryptoportfolio.pp b/modules/role/manifests/cryptoportfolio.pp
index 6a659cc..53b7abd 100644
--- a/modules/role/manifests/cryptoportfolio.pp
+++ b/modules/role/manifests/cryptoportfolio.pp
@@ -9,6 +9,7 @@ class role::cryptoportfolio (
9 String $pg_db, 9 String $pg_db,
10 Optional[String] $pg_hostname = "localhost", 10 Optional[String] $pg_hostname = "localhost",
11 Optional[String] $pg_port = "5432", 11 Optional[String] $pg_port = "5432",
12 Optional[String] $redis_host = "/run/redis/redis.sock",
12 Optional[String] $web_host = undef, 13 Optional[String] $web_host = undef,
13 Optional[String] $web_port = "", 14 Optional[String] $web_port = "",
14 Optional[Boolean] $web_ssl = true, 15 Optional[Boolean] $web_ssl = true,
@@ -30,6 +31,9 @@ class role::cryptoportfolio (
30 contain "role::cryptoportfolio::notify" 31 contain "role::cryptoportfolio::notify"
31 32
32 unless empty($trader_version) { 33 unless empty($trader_version) {
34 if versioncmp($trader_version, "v1.3") >= 0 {
35 include "profile::redis"
36 }
33 contain "role::cryptoportfolio::bot" 37 contain "role::cryptoportfolio::bot"
34 } 38 }
35 39