Puppet Class: munge::config

Defined in:
manifests/config.pp

Summary

Manage munge config

Overview



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'manifests/config.pp', line 3

class munge::config {
  file { '/etc/munge/munge.key':
    ensure  => 'file',
    path    => $munge::munge_key_path,
    owner   => $munge::user,
    group   => $munge::group,
    mode    => '0400',
    source  => $munge::munge_key_source,
    content => $munge::munge_key_content,
  }

  if $munge::conf_dir {
    file { '/etc/munge':
      ensure => 'directory',
      path   => $munge::conf_dir,
      owner  => $munge::user,
      group  => $munge::group,
      mode   => '0700',
    }
  }

  if $munge::log_dir {
    file { '/var/log/munge':
      ensure => 'directory',
      path   => $munge::log_dir,
      owner  => $munge::user,
      group  => $munge::group,
      mode   => '0700',
    }
  }

  if $munge::lib_dir {
    file { '/var/lib/munge':
      ensure => 'directory',
      path   => $munge::lib_dir,
      owner  => $munge::user,
      group  => $munge::group,
      mode   => '0700',
    }
  }

  if $munge::run_dir {
    file { '/run/munge':
      ensure => 'directory',
      path   => $munge::run_dir,
      owner  => $munge::user,
      group  => $munge::group,
      mode   => '0755',
    }
  }
}