munge.pp 472 Bytes
Newer Older
Hugo Hörnquist's avatar
Hugo Hörnquist committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
class analysator::munge {
  package { 'munge':
    ensure => installed,
  }

  file { '/etc/munge/munge.key':
    ensure  => file,
    content => 'supersecretreallygoodprivatekey!',
    owner   => 'munge',
    group   => 'munge',
    mode    => '0400',
  }

  service { 'munge':
    ensure    => running,
    enable    => true,
    require   => [ Package['munge'], File['/etc/munge/munge.key'] ],
    subscribe => [ Package['munge'], File['/etc/munge/munge.key'] ],
  }
}