munged.rb 594 Bytes
Newer Older
Victor Penso's avatar
Victor Penso committed
1
2
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
name 'munged'
description 'MUNGE authentication service'
run_list( 'recipe[base]' )
default_attributes(

  ##
  # CONFIGURATION FILES
  #
  file: {
     ##
     # Shared secret
     #
     '/etc/munge/munge.key' => {
        content: '030340d651edb16efabf24a8c080d4b7',
        action: [ :nothing ],
        notifies: [ :restart, 'systemd_unit[munge.service]' ]
     }
  },

  ##
  # PACKAGES
  # 
  yum_package: {
    'munge': { notifies: [ :create, 'file[/etc/munge/munge.key]' ] },
  },

  ##
  # SYSTEM SERVICES
  #
  systemd_unit: {
    'munge.service': { action: [:enable,:start] }
  }
)