]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blame - modules/role/manifests/cryptoportfolio.pp
Change release url
[perso/Immae/Projets/Puppet.git] / modules / role / manifests / cryptoportfolio.pp
CommitLineData
0a21fb6c
IB
1class role::cryptoportfolio (
2 String $user,
3 String $group,
4 String $home,
5 Optional[String] $env = "prod",
6 Optional[String] $webhook_url = undef,
7 String $pg_user,
0a21fb6c 8 String $pg_db,
eeac44ec 9 Optional[String] $pg_hostname = "/run/postgresql",
0a21fb6c 10 Optional[String] $pg_port = "5432",
d5f4e591 11 Optional[String] $redis_host = "/run/redis/redis.sock",
5a5b32d8
IB
12 Optional[String] $smtp_login = undef,
13 Optional[String] $smtp_password = undef,
14 Optional[String] $smtp_host = undef,
15 Optional[String] $mail_from = undef,
0a21fb6c
IB
16 Optional[String] $web_host = undef,
17 Optional[String] $web_port = "",
18 Optional[Boolean] $web_ssl = true,
19 Optional[String] $front_version = undef,
20 Optional[String] $front_sha256 = undef,
acaa9ea9
IB
21 Optional[String] $trader_version = undef,
22 Optional[String] $trader_sha256 = undef,
0a21fb6c 23) {
57ae81ea
IB
24 include "base_installation"
25
8af3ea1e 26 include "profile::tools"
57ae81ea 27 include "profile::postgresql"
2bb35074 28 include "profile::apache"
68bbff61 29 include "profile::xmr_stak"
bdcfd78f 30 include "profile::boinc"
7cf7f179 31 include "profile::monitoring"
57ae81ea 32
39e05b4e
IB
33 contain "role::cryptoportfolio::postgresql"
34 contain "role::cryptoportfolio::apache"
0a4ec379 35
39e05b4e 36 contain "role::cryptoportfolio::notify"
a4c92ff7 37
acaa9ea9 38 unless empty($trader_version) {
d5f4e591
IB
39 if versioncmp($trader_version, "v1.3") >= 0 {
40 include "profile::redis"
41 }
39e05b4e 42 contain "role::cryptoportfolio::bot"
236d7e6d
IB
43 }
44
76a321e1 45 unless empty($front_version) {
39e05b4e 46 contain "role::cryptoportfolio::front"
76a321e1 47 }
57ae81ea 48}