diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2016-03-06 13:38:51 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2016-03-06 13:38:51 -0300 |
commit | b59b81091ce28305f7a65a0973318b3961b30a04 (patch) | |
tree | 26c296ab85364db60214c6c9f3ca676835395e4c /manifests | |
parent | ca9500baba258e849a9192917283282645705653 (diff) | |
download | puppet-apache-b59b81091ce28305f7a65a0973318b3961b30a04.tar.gz puppet-apache-b59b81091ce28305f7a65a0973318b3961b30a04.tar.bz2 |
Quote title param
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/site.pp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/manifests/site.pp b/manifests/site.pp index e9d5afe..e53b75a 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -34,25 +34,25 @@ define apache::site( ) { $vhost = $filename ? { - '' => "$name", + '' => "${title}", default => "$filename", } $hosting_domain = hiera('apache::site::domain', $::domain) $user = $mpm_user ? { - '' => regsubst($name, '\.', '_', 'G'), + '' => regsubst(${title}, '\.', '_', 'G'), default => $mpm_user, } $gid = $mpm_group ? { - '' => regsubst($name, '\.', '_', 'G'), + '' => regsubst(${title}, '\.', '_', 'G'), default => $mpm_group, } $hidden_enabled = hiera('apache::site::hidden', false) if $hidden_service == true and $hidden_enabled == true { - tor::daemon::hidden_service { $name: + tor::daemon::hidden_service { "${title}": ports => [ "80 127.0.0.1:${apache::http_port}" ], data_dir => "${tor::daemon::data_dir}/hidden", require => File["${tor::daemon::data_dir}/hidden"], @@ -125,8 +125,8 @@ define apache::site( true: { file { "${apache::sites}-available/$vhost.conf": ensure => $ensure, - source => [ "puppet:///modules/site_apache/vhosts/$domain/$name", - "puppet:///modules/site_apache/vhosts/$name" ], + source => [ "puppet:///modules/site_apache/vhosts/$domain/${title}", + "puppet:///modules/site_apache/vhosts/${title}" ], owner => root, group => root, mode => 0644, @@ -158,7 +158,7 @@ define apache::site( # ensure => $status, # owner => root, # group => root, - # require => File["${apache::sites}-available/$name"], + # require => File["${apache::sites}-available/${title}"], # notify => Service["apache"], #} |