Skip to content

Commit

Permalink
Merge pull request #6 from silverstripeltd/fix/env-file-url-map
Browse files Browse the repository at this point in the history
Ensure domain_name is available to templates where used
  • Loading branch information
indygriffiths authored May 24, 2020
2 parents 5154f9a + 597a681 commit f5133c0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions manifests/apache.pp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
define ss_sushi::apache (
$env_vars,
$domain_name,
$ops_env_vars = undef,
$root_dir = '/etc/apache2/platform-variables',
$vhost_name = 'mysite',
Expand Down
1 change: 1 addition & 0 deletions manifests/cli.pp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
define ss_sushi::cli (
$env_vars,
$domain_name,
$ops_env_vars = undef,
$root_dir = '/etc/platform-variables',
$vhost_root = '/var/www',
Expand Down
1 change: 1 addition & 0 deletions manifests/ss_env.pp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
define ss_sushi::ss_env (
$env_vars,
$domain_name,
$ops_env_vars = undef,
$root_dir = '/var/www',
$vhost_name = 'mysite',
Expand Down
3 changes: 3 additions & 0 deletions manifests/vhost.pp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
) {
ss_sushi::apache { "${vhost_name}/10-master.conf":
env_vars => $env_vars,
domain_name => $domain_name,
ops_env_vars => $ops_env_vars,
vhost_name => $vhost_name,
root_dir => $apache_root,
Expand All @@ -26,6 +27,7 @@

ss_sushi::cli { "${vhost_name}/10-master.conf":
env_vars => $env_vars,
domain_name => $domain_name,
ops_env_vars => $ops_env_vars,
vhost_name => $vhost_name,
vhost_root => $vhost_root,
Expand All @@ -36,6 +38,7 @@

ss_sushi::ss_env { "${vhost_name}/_ss_environment.php":
env_vars => $env_vars,
domain_name => $domain_name,
vhost_name => $vhost_name,
ops_env_vars => $ops_env_vars,
root_dir => $vhost_root,
Expand Down

0 comments on commit f5133c0

Please sign in to comment.