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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# File 'manifests/init.pp', line 1
class autofs
{
include autofs::params
package
{
$autofs::params::package:
ensure => installed,
notify => Service[$autofs::params::service],
}
service
{
$autofs::params::service:
ensure => running,
enable => true,
require => Package[$autofs::params::package],
subscribe => File['autofs.confd']
}
file
{
'autofs.confd':
path => $autofs::params::confd,
ensure => file,
require => Package[$autofs::params::package],
source => "puppet:///modules/autofs/autofs.confd"
}
file
{
'/etc/auto.master':
ensure => 'absent'
}
file
{
'/etc/auto.misc':
ensure => 'absent'
}
autofs::mapfile
{
"autofs::master":
path => "$autofs::params::master",
}
}
|