aboutsummaryrefslogtreecommitdiff
path: root/modules/role
diff options
context:
space:
mode:
Diffstat (limited to 'modules/role')
-rw-r--r--modules/role/manifests/cryptoportfolio.pp4
-rw-r--r--modules/role/templates/cryptoportfolio/api_conf.toml.erb8
2 files changed, 12 insertions, 0 deletions
diff --git a/modules/role/manifests/cryptoportfolio.pp b/modules/role/manifests/cryptoportfolio.pp
index 5aaaee3..59dacd0 100644
--- a/modules/role/manifests/cryptoportfolio.pp
+++ b/modules/role/manifests/cryptoportfolio.pp
@@ -10,6 +10,10 @@ class role::cryptoportfolio (
10 Optional[String] $pg_hostname = "/run/postgresql", 10 Optional[String] $pg_hostname = "/run/postgresql",
11 Optional[String] $pg_port = "5432", 11 Optional[String] $pg_port = "5432",
12 Optional[String] $redis_host = "/run/redis/redis.sock", 12 Optional[String] $redis_host = "/run/redis/redis.sock",
13 Optional[String] $smtp_login = undef,
14 Optional[String] $smtp_password = undef,
15 Optional[String] $smtp_host = undef,
16 Optional[String] $mail_from = undef,
13 Optional[String] $web_host = undef, 17 Optional[String] $web_host = undef,
14 Optional[String] $web_port = "", 18 Optional[String] $web_port = "",
15 Optional[Boolean] $web_ssl = true, 19 Optional[Boolean] $web_ssl = true,
diff --git a/modules/role/templates/cryptoportfolio/api_conf.toml.erb b/modules/role/templates/cryptoportfolio/api_conf.toml.erb
index d806778..6bed739 100644
--- a/modules/role/templates/cryptoportfolio/api_conf.toml.erb
+++ b/modules/role/templates/cryptoportfolio/api_conf.toml.erb
@@ -34,3 +34,11 @@ free_sms_pass="<%= @cf_front_app_free_sms_pass %>"
34 34
35[app] 35[app]
36public_dir="../web/build/static" 36public_dir="../web/build/static"
37
38<%- if !@smtp_host.nil? && @smtp_host != "" -%>
39[mail]
40login="<%= @smtp_login %>"
41address_from="<%= @mail_from %>"
42password="<%= @smtp_password %>"
43smtp_address="<%= @smtp_host %>"
44<%- end -%>