From: Ismaƫl Bouya Date: Fri, 7 Jun 2019 22:47:16 +0000 (+0200) Subject: Add arbitrary environments to caldance X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=6441f7dc8688f35ec926601d10d1d23359c186d3;p=perso%2FImmae%2FProjets%2FPuppet.git Add arbitrary environments to caldance --- diff --git a/modules/role/manifests/caldance.pp b/modules/role/manifests/caldance.pp index 1c87163..c99892e 100644 --- a/modules/role/manifests/caldance.pp +++ b/modules/role/manifests/caldance.pp @@ -40,9 +40,6 @@ class role::caldance ( "DEBUG" => "False", "LOG_FILE" => "$home/caldev_django.log", "MEDIA_ROOT" => "$home/media", - "FROM_EMAIL" => $mail_from, - "EMAIL_HOST" => $smtp_host, - "EMAIL_PORT" => $smtp_port, } $shell_env = $environment.map |$key, $value| { "$key=$value" } $apache_env = $environment.map |$key, $value| { "CALDANCE_$key $value" } @@ -180,6 +177,7 @@ class role::caldance ( ssl_key => "/etc/letsencrypt/live/$web_host/privkey.pem", ssl_chain => "/etc/letsencrypt/live/$web_host/chain.pem", require => Letsencrypt::Certonly[$web_host], + additional_includes => "$home/caldance_env", directories => [ { path => "$caldance_app/main_app",