Puppet Class: scap::dsh

Defined in:
modules/scap/manifests/dsh.pp

Overview

Class scap::dsh

Sets up dsh config files alone, without actually setting up dsh. Useful primarily for monitoring and deploy servers.

Parameters:

scap_proxies

List of FQDNs for servers to be used as scap rsync proxies. Default []

scap_masters

List of FQDNs for servers to be used as scap masters. Default []

Parameters:

  • groups (Any) (defaults to: {})
  • scap_proxies (Any) (defaults to: [])
  • scap_masters (Any) (defaults to: [])


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
54
55
56
57
58
# File 'modules/scap/manifests/dsh.pp', line 14

class scap::dsh (
    $groups = {},
    $scap_proxies = [],
    $scap_masters = [],
){
    package { 'dsh':
        ensure => present,
    }
    file { '/etc/dsh':
        ensure => directory,
        owner  => 'root',
        group  => 'root',
        mode   => '0444',
    }
    file { '/etc/dsh/group':
        ensure => directory,
        owner  => 'root',
        group  => 'root',
        mode   => '0555',
    }

    # Base dsh groups currently used
    create_resources('scap::dsh::group', $groups)

    file { '/etc/dsh/group/scap-proxies':
        content => join($scap_proxies, "\n"),
        owner   => 'root',
        group   => 'root',
        mode    => '0444',
    }

    file { '/etc/dsh/group/scap-masters':
        content => join($scap_masters, "\n"),
        owner   => 'root',
        group   => 'root',
        mode    => '0444',
    }

    file { '/etc/dsh/dsh.conf':
        owner  => 'root',
        group  => 'root',
        mode   => '0444',
        source => 'puppet:///modules/scap/dsh/dsh.conf',
    }
}