aboutsummaryrefslogtreecommitdiff
path: root/manifests/config.pp
blob: 4da042eeb0a4031ef76f2a1749e8c2ee9c79bba3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
define php::config($order = '20', $value, $ensure = 'present', $sapi = 'apache2') {
  file { "${::php::folder}/${sapi}/conf.d/${order}-${name}.ini":
    ensure  => $ensure,
    owner   => root,
    group   => root,
    mode    => 0644,
    content => "${name}=${value}\n",
    require => File["${::php::folder}/${sapi}"],
    notify  => $sapi ? {
      'apache2' => Service['apache2'],
      default   => undef,
    },
  }
}