Puppet Class: sensu::ssl

Defined in:
manifests/ssl.pp

Summary

Private class to manage sensu SSL resources

Overview



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
# File 'manifests/ssl.pp', line 4

class sensu::ssl {
  include sensu

  if $facts['os']['family'] == 'windows' {
    $directory_mode = undef
    $file_mode = undef
  } else {
    $directory_mode = '0700'
    $file_mode = '0644'
  }

  file { 'sensu_ssl_dir':
    ensure  => 'directory',
    path    => $sensu::ssl_dir,
    purge   => $sensu::ssl_dir_purge,
    recurse => $sensu::ssl_dir_purge,
    force   => $sensu::ssl_dir_purge,
    owner   => $sensu::sensu_user,
    group   => $sensu::sensu_group,
    mode    => $directory_mode,
  }

  file { 'sensu_ssl_ca':
    ensure    => 'file',
    path      => $sensu::trusted_ca_file_path,
    owner     => $sensu::sensu_user,
    group     => $sensu::sensu_group,
    mode      => $file_mode,
    show_diff => false,
    source    => $sensu::_ssl_ca_source,
    content   => $sensu::ssl_ca_content,
  }
}