blob: 0d568fa9432ab616e099415b25fcd38d45d019d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
class profiles::puppetagent (
Hash $extra_args = {},
) {
if defined(Class['profiles::puppetserver']) {
fail('Can only either be puppetagent or puppetserver (which is also a puppetagent), not both')
}
case $facts['os']['family'] {
'RedHat': {
ensure_packages(['cronie'])
}
}
class { 'puppet':
server => false,
agent => true,
show_diff => true,
puppetmaster => $facts['extlib__puppet_config']['main']['server'],
* => $extra_args,
}
}
|