summaryrefslogtreecommitdiff
path: root/manifests/config.pp
blob: bba54b9cd9ba0756bfea3fd67f2d0b194fb69dba (plain)
1
2
3
4
5
6
7
8
9
10
define nginx::config($value, $ensure = 'present') {
  file { "/etc/nginx/conf.d/${name}.conf" :
    ensure  => $ensure,
    owner   => 'root',
    group   => 'root',
    mode    => '0644',
    content => "${value}\n",
    notify  => Service['nginx'],
  }
}