]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/commitdiff
Add password secret for cryptoportfolio app
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Fri, 4 May 2018 19:12:35 +0000 (21:12 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Fri, 4 May 2018 19:12:35 +0000 (21:12 +0200)
modules/role/manifests/cryptoportfolio/front.pp
modules/role/templates/cryptoportfolio/api_conf.toml.erb

index 280ef8b1e8ce8c0ba972ba5d2e3b91dacf658b68..e676395607f5f80ce4d8274a9f422f3388858c1d 100644 (file)
@@ -12,6 +12,10 @@ class role::cryptoportfolio::front inherits role::cryptoportfolio {
   $cf_front_app_api_conf = "${home}/conf.toml"
   $cf_front_app_api_secret = generate_password(24, $password_seed, "cryptoportfolio_api_secret")
 
+  $cf_front_app_password_reset_secret = generate_password(24, $password_seed, "cryptoportfolio_api_password_reset_secret")
+  $cf_front_app_free_sms_user = lookup("role::cryptoportfolio::front::free_sms_user")
+  $cf_front_app_free_sms_pass = lookup("role::cryptoportfolio::front::free_sms_pass")
+
   $cf_front_app_static_conf = "${cf_front_app}/cmd/web/env/prod.env"
 
   ensure_packages(["go", "npm", "nodejs", "yarn"])
index 8d0e037fdfe521422451f757613dac42138a56e4..63f39c77cdb6dc7e4b4c2b9ac98f08cf2bee5c92 100644 (file)
@@ -22,6 +22,9 @@ database=0
 [api]
 domain="<%= @web_host %>"
 jwt_secret="<%= @cf_front_app_api_secret %>"
+password_reset_secret="<%= @cf_front_app_password_reset_secret %>"
+free_sms_user="<%= @cf_front_app_free_sms_user %>"
+free_sms_pass="<%= @cf_front_app_free_sms_pass %>"
 
 [app]
 public_dir="../web/build/static"