blob: cdce9897e989604cd6c749ef31efe9e51f3f8060 (
plain)
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
|
class puppet::freebsd inherits puppet::base {
case $puppet_ensure_version {
'': { $puppet_ensure_version = 'installed' }
'removed','absent','installed', 'present': {} # those values are OK
default: { fail('Package providers for FreeBSD cannot ensure that a specific version is installed.') }
}
case $facter_ensure_version {
'': { $facter_ensure_version = 'installed' }
'removed','absent','installed', 'present': {} # those values are OK
default: { fail('Package providers for FreeBSD cannot ensure that a specific version is installed.') }
}
package { 'puppet':
ensure => $puppet_ensure_version,
}
package { 'facter':
ensure => $facter_ensure_version,
}
Service['puppet'] {
path => '/usr/local/etc/rc.d',
require => Package[puppet],
}
}
|