summaryrefslogtreecommitdiff
path: root/manifests/vhost/php/safe_mode_bin.pp
blob: e04557c36c53b5799d6e0823188e128f557edd9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# run_mode:
#   - normal: nothing special (*default*)
#   - itk: apache is running with the itk module
#          and run_uid and run_gid are used as vhost users
# run_uid: the uid the vhost should run as with the itk module
# run_gid: the gid the vhost should run as with the itk module
define apache::vhost::php::safe_mode_bin(
  $ensure = 'present',
  $path
){
  $substr=regsubst($name,'^.*\/','','G')
  $real_path = "$path/$substr"
  file{$real_path:
    ensure => $ensure ? {
      'present' => regsubst($name,'^.*_',''),
      default => absent,
    }
  }
}