summaryrefslogtreecommitdiff
path: root/manifests/init.pp
blob: f12251e16e704164743da687a3421cc54819ad37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class rsyslog {
  package { 'rsyslog':
    ensure  => present,
  }

  file { '/etc/rsyslog.d/00-anon.conf':
    ensure  => present,
    owner   => 'root',
    group   => 'root',
    mode    => '0644',
    source  => 'puppet:///modules/rsyslog/anon.conf',
    require => Package['rsyslog'],
  }

  service { 'rsyslog' :
    ensure    => running,
    require   => File['/etc/rsyslog.d/00-anon.conf'],
  }
}