]>
Commit | Line | Data |
---|---|---|
0a21fb6c IB |
1 | class 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, | |
8 | String $pg_user_replication, | |
9 | String $pg_db, | |
10 | Optional[String] $pg_hostname = "localhost", | |
11 | Optional[String] $pg_port = "5432", | |
12 | Optional[String] $web_host = undef, | |
13 | Optional[String] $web_port = "", | |
14 | Optional[Boolean] $web_ssl = true, | |
15 | Optional[String] $front_version = undef, | |
16 | Optional[String] $front_sha256 = undef, | |
17 | Optional[String] $bot_version = undef, | |
18 | Optional[String] $bot_sha256 = undef, | |
19 | ) { | |
57ae81ea IB |
20 | include "base_installation" |
21 | ||
8af3ea1e | 22 | include "profile::tools" |
57ae81ea | 23 | include "profile::postgresql" |
2bb35074 | 24 | include "profile::apache" |
68bbff61 | 25 | include "profile::xmr_stak" |
57ae81ea | 26 | |
39e05b4e IB |
27 | contain "role::cryptoportfolio::postgresql" |
28 | contain "role::cryptoportfolio::apache" | |
0a4ec379 | 29 | |
39e05b4e | 30 | contain "role::cryptoportfolio::notify" |
a4c92ff7 | 31 | |
236d7e6d | 32 | unless empty($bot_version) { |
39e05b4e | 33 | contain "role::cryptoportfolio::bot" |
236d7e6d IB |
34 | } |
35 | ||
9a6b0098 | 36 | # FIXME: restore backup |
76a321e1 | 37 | unless empty($front_version) { |
39e05b4e | 38 | contain "role::cryptoportfolio::front" |
76a321e1 | 39 | } |
57ae81ea | 40 | } |