]>
Commit | Line | Data |
---|---|---|
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 | ) { | |
20 | include "base_installation" | |
21 | ||
22 | include "profile::tools" | |
23 | include "profile::postgresql" | |
24 | include "profile::apache" | |
25 | include "profile::xmr_stak" | |
26 | ||
27 | contain "role::cryptoportfolio::postgresql" | |
28 | contain "role::cryptoportfolio::apache" | |
29 | ||
30 | contain "role::cryptoportfolio::notify" | |
31 | ||
32 | unless empty($bot_version) { | |
33 | contain "role::cryptoportfolio::bot" | |
34 | } | |
35 | ||
36 | # FIXME: restore backup | |
37 | unless empty($front_version) { | |
38 | contain "role::cryptoportfolio::front" | |
39 | } | |
40 | } |