From b240426355bb82bbeac7fd316e663db926667579 Mon Sep 17 00:00:00 2001 From: Thom Toogood Date: Thu, 20 Oct 2016 08:51:26 +1100 Subject: [PATCH] Added beet_env var. --- provisioning/ansible/config/default.config.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/provisioning/ansible/config/default.config.yml b/provisioning/ansible/config/default.config.yml index cbf949e..ab18fec 100644 --- a/provisioning/ansible/config/default.config.yml +++ b/provisioning/ansible/config/default.config.yml @@ -15,6 +15,8 @@ beet_project: drupal beet_debug: no beet_domain: "{{ ansible_hostname }}.local" beet_aliases: [] +beet_env_name: BB_ENVIRONMENT +beet_env: vagrant beet_user: "{{ lookup('env','BEET_USER') | default('vagrant',true) }}" beet_base: "{{ lookup('env','BEET_BASE') | default('/var/beetbox',true) }}" beet_root: "{{ beet_base }}" @@ -45,6 +47,7 @@ apache_vhosts: documentroot: "{{ beet_web }}" extra_parameters: | ProxyPassMatch ^/(.*\.php(/.*)?)$ "fcgi://127.0.0.1:9000{{ beet_web }}" + SetEnv {{ beet_env_name }} {{ beet_env }} apache_listen_port_ssl: "{{ (beet_webserver == 'apache') | ternary('443','444') }}" apache_vhosts_ssl: - servername: "{{ beet_domain }}" @@ -53,6 +56,7 @@ apache_vhosts_ssl: certificate_key_file: "/etc/ssl/private/ssl-cert-snakeoil.key" extra_parameters: | ProxyPassMatch ^/(.*\.php(/.*)?)$ "fcgi://127.0.0.1:9000{{ beet_web }}" + SetEnv {{ beet_env_name }} {{ beet_env }} apache_mods_enabled: - authn_core.load - expires.load