diff options
author | mh <mh@immerda.ch> | 2014-04-17 22:08:52 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2014-04-17 22:12:38 +0200 |
commit | d4a70a927e41c181aa07d467a2478db74439aadb (patch) | |
tree | 65cb868d3afee07fae5e33e9875ca36d85fd3822 /manifests/vhost/php/safe_mode_bin.pp | |
parent | 3b7b7a3a578a479fe3586e293676c407a39695df (diff) |
linting
Diffstat (limited to 'manifests/vhost/php/safe_mode_bin.pp')
-rw-r--r-- | manifests/vhost/php/safe_mode_bin.pp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/manifests/vhost/php/safe_mode_bin.pp b/manifests/vhost/php/safe_mode_bin.pp index 4a3574d..1c82e19 100644 --- a/manifests/vhost/php/safe_mode_bin.pp +++ b/manifests/vhost/php/safe_mode_bin.pp @@ -1,14 +1,17 @@ +# safe_mode binaries define apache::vhost::php::safe_mode_bin( $ensure = 'present', $path ){ $substr=regsubst($name,'^.*\/','','G') - $real_path = "$path/$substr" + $real_path = "${path}/${substr}" + $target = $ensure ? { + 'present' => regsubst($name,'^.*@',''), + default => absent, + } file{$real_path: - ensure => $ensure ? { - 'present' => regsubst($name,'^.*@',''), - default => absent, - } + ensure => link, + target => $target, } } |