diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-05-11 12:23:47 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-05-11 12:23:47 +0200 |
commit | 5a5b32d87d06cfc6dce82cf83cb023ed2764fc45 (patch) | |
tree | 36261d7fc4cc03ed01b9966b062fcbb48fc4cc89 /modules | |
parent | 71084626fd33f8e8be3ff779dfe26c0055147214 (diff) | |
download | Puppet-5a5b32d87d06cfc6dce82cf83cb023ed2764fc45.tar.gz Puppet-5a5b32d87d06cfc6dce82cf83cb023ed2764fc45.tar.zst Puppet-5a5b32d87d06cfc6dce82cf83cb023ed2764fc45.zip |
Add mail configuration for cryptoportfolio
Diffstat (limited to 'modules')
-rw-r--r-- | modules/role/manifests/cryptoportfolio.pp | 4 | ||||
-rw-r--r-- | modules/role/templates/cryptoportfolio/api_conf.toml.erb | 8 |
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] |
36 | public_dir="../web/build/static" | 36 | public_dir="../web/build/static" |
37 | |||
38 | <%- if !@smtp_host.nil? && @smtp_host != "" -%> | ||
39 | [mail] | ||
40 | login="<%= @smtp_login %>" | ||
41 | address_from="<%= @mail_from %>" | ||
42 | password="<%= @smtp_password %>" | ||
43 | smtp_address="<%= @smtp_host %>" | ||
44 | <%- end -%> | ||