aboutsummaryrefslogtreecommitdiff
path: root/manifests/config.pp
blob: 817790a3b24e97083ad41b7f538ace6325fda3db (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}/conf.d"],
    notify  => $sapi ? {
      'apache2' => Service['apache2'],
      default   => undef,
    },
  }
}