From b59b81091ce28305f7a65a0973318b3961b30a04 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 6 Mar 2016 13:38:51 -0300 Subject: Quote title param --- manifests/site.pp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'manifests') 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"], #} -- cgit v1.2.3