blob: 799e297475ff6047234bf8fba5f27fda12a5019e (
plain) (
tree)
|
|
class role::cryptoportfolio (
String $user,
String $group,
String $home,
Optional[String] $env = "prod",
Optional[String] $webhook_url = undef,
String $pg_user,
String $pg_user_replication,
String $pg_db,
Optional[String] $pg_hostname = "localhost",
Optional[String] $pg_port = "5432",
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,
) {
include "base_installation"
include "profile::tools"
include "profile::postgresql"
include "profile::apache"
include "profile::xmr_stak"
contain "role::cryptoportfolio::postgresql"
contain "role::cryptoportfolio::apache"
contain "role::cryptoportfolio::notify"
unless empty($bot_version) {
contain "role::cryptoportfolio::bot"
}
# FIXME: restore backup
unless empty($front_version) {
contain "role::cryptoportfolio::front"
}
}
|