]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/commitdiff
Add mail configuration for cryptoportfolio
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Fri, 11 May 2018 10:23:47 +0000 (12:23 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Fri, 11 May 2018 10:23:47 +0000 (12:23 +0200)
modules/role/manifests/cryptoportfolio.pp
modules/role/templates/cryptoportfolio/api_conf.toml.erb

index 5aaaee3579ac669a20b9ac593317186f38fea938..59dacd0254e1e6c4a4e067d0b5ac52d1e42546f1 100644 (file)
@@ -10,6 +10,10 @@ class role::cryptoportfolio (
   Optional[String]  $pg_hostname          = "/run/postgresql",
   Optional[String]  $pg_port              = "5432",
   Optional[String]  $redis_host           = "/run/redis/redis.sock",
+  Optional[String]  $smtp_login           = undef,
+  Optional[String]  $smtp_password        = undef,
+  Optional[String]  $smtp_host            = undef,
+  Optional[String]  $mail_from            = undef,
   Optional[String]  $web_host             = undef,
   Optional[String]  $web_port             = "",
   Optional[Boolean] $web_ssl              = true,
index d806778ad0b27b6aa962c7def7df6b35d3ece6a5..6bed739d1d643fb2cd8b22ba5c2cba8eb547dad5 100644 (file)
@@ -34,3 +34,11 @@ free_sms_pass="<%= @cf_front_app_free_sms_pass %>"
 
 [app]
 public_dir="../web/build/static"
+
+<%- if !@smtp_host.nil? && @smtp_host != "" -%>
+[mail]
+login="<%= @smtp_login %>"
+address_from="<%= @mail_from %>"
+password="<%= @smtp_password %>"
+smtp_address="<%= @smtp_host %>"
+<%- end -%>