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
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
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# File 'manifests/common/config.pp', line 2
class mcollective::common::config {
assert_private()
file { $::mcollective::site_libdir:
ensure => directory,
owner => 'root',
group => '0',
mode => '0644',
recurse => true,
purge => true,
force => true,
source => [],
sourceselect => 'all',
}
if $::mcollective::server {
# if we have a server install, reload when the plugins change
File[$::mcollective::site_libdir] ~> Class['mcollective::server::service']
}
datacat_collector { 'mcollective::site_libdir':
before => File[$::mcollective::site_libdir],
target_resource => File[$::mcollective::site_libdir],
target_field => 'source',
source_key => 'source_path',
}
datacat_fragment { 'mcollective::site_libdir':
target => 'mcollective::site_libdir',
data => {
source_path => [ 'puppet:///modules/mcollective/site_libdir' ],
},
}
::mcollective::common::setting { 'libdir':
value => "${::mcollective::site_libdir}:${::mcollective::core_libdir}",
}
::mcollective::common::setting { 'connector':
value => $::mcollective::connector,
}
::mcollective::common::setting { 'securityprovider':
value => $::mcollective::securityprovider,
}
::mcollective::common::setting { 'collectives':
value => join(flatten([$::mcollective::collectives]), ','),
}
::mcollective::common::setting { 'main_collective':
value => $::mcollective::main_collective,
}
::mcollective::common::setting { 'identity':
value => $::mcollective::identity,
}
::mcollective::soft_include { [
"::mcollective::common::config::connector::${::mcollective::connector}",
"::mcollective::common::config::securityprovider::${::mcollective::securityprovider}",
]:
start => Anchor['mcollective::common::config::begin'],
end => Anchor['mcollective::common::config::end'],
}
anchor { 'mcollective::common::config::begin': }
anchor { 'mcollective::common::config::end': }
}
|