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