diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-05-04 21:12:35 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-05-04 21:12:35 +0200 |
commit | 6b449ef816a70162c90f8d215e25fe2970a891bc (patch) | |
tree | 6e298ad6581d1ea5571d49642749f10cae8cd5ad /modules/role | |
parent | a97de7164b6a46a5e24aee6defbc09ca45c989a4 (diff) | |
download | Puppet-6b449ef816a70162c90f8d215e25fe2970a891bc.tar.gz Puppet-6b449ef816a70162c90f8d215e25fe2970a891bc.tar.zst Puppet-6b449ef816a70162c90f8d215e25fe2970a891bc.zip |
Add password secret for cryptoportfolio app
Diffstat (limited to 'modules/role')
-rw-r--r-- | modules/role/manifests/cryptoportfolio/front.pp | 4 | ||||
-rw-r--r-- | modules/role/templates/cryptoportfolio/api_conf.toml.erb | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/modules/role/manifests/cryptoportfolio/front.pp b/modules/role/manifests/cryptoportfolio/front.pp index 280ef8b..e676395 100644 --- a/modules/role/manifests/cryptoportfolio/front.pp +++ b/modules/role/manifests/cryptoportfolio/front.pp | |||
@@ -12,6 +12,10 @@ class role::cryptoportfolio::front inherits role::cryptoportfolio { | |||
12 | $cf_front_app_api_conf = "${home}/conf.toml" | 12 | $cf_front_app_api_conf = "${home}/conf.toml" |
13 | $cf_front_app_api_secret = generate_password(24, $password_seed, "cryptoportfolio_api_secret") | 13 | $cf_front_app_api_secret = generate_password(24, $password_seed, "cryptoportfolio_api_secret") |
14 | 14 | ||
15 | $cf_front_app_password_reset_secret = generate_password(24, $password_seed, "cryptoportfolio_api_password_reset_secret") | ||
16 | $cf_front_app_free_sms_user = lookup("role::cryptoportfolio::front::free_sms_user") | ||
17 | $cf_front_app_free_sms_pass = lookup("role::cryptoportfolio::front::free_sms_pass") | ||
18 | |||
15 | $cf_front_app_static_conf = "${cf_front_app}/cmd/web/env/prod.env" | 19 | $cf_front_app_static_conf = "${cf_front_app}/cmd/web/env/prod.env" |
16 | 20 | ||
17 | ensure_packages(["go", "npm", "nodejs", "yarn"]) | 21 | ensure_packages(["go", "npm", "nodejs", "yarn"]) |
diff --git a/modules/role/templates/cryptoportfolio/api_conf.toml.erb b/modules/role/templates/cryptoportfolio/api_conf.toml.erb index 8d0e037..63f39c7 100644 --- a/modules/role/templates/cryptoportfolio/api_conf.toml.erb +++ b/modules/role/templates/cryptoportfolio/api_conf.toml.erb | |||
@@ -22,6 +22,9 @@ database=0 | |||
22 | [api] | 22 | [api] |
23 | domain="<%= @web_host %>" | 23 | domain="<%= @web_host %>" |
24 | jwt_secret="<%= @cf_front_app_api_secret %>" | 24 | jwt_secret="<%= @cf_front_app_api_secret %>" |
25 | password_reset_secret="<%= @cf_front_app_password_reset_secret %>" | ||
26 | free_sms_user="<%= @cf_front_app_free_sms_user %>" | ||
27 | free_sms_pass="<%= @cf_front_app_free_sms_pass %>" | ||
25 | 28 | ||
26 | [app] | 29 | [app] |
27 | public_dir="../web/build/static" | 30 | public_dir="../web/build/static" |