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