Initial version of autofs module.
This commit is contained in:
parent
56bf41ab9c
commit
f58c76a636
2 changed files with 27 additions and 0 deletions
0
autofs/files/auto.master
Normal file
0
autofs/files/auto.master
Normal file
27
autofs/manifests/init.pp
Normal file
27
autofs/manifests/init.pp
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
|
||||||
|
class autofs {
|
||||||
|
|
||||||
|
package { "autofs":
|
||||||
|
ensure => installed,
|
||||||
|
}
|
||||||
|
|
||||||
|
service { "autofs":
|
||||||
|
ensure => running,
|
||||||
|
enable => true,
|
||||||
|
hasstatus => true,
|
||||||
|
require => Package["autofs"],
|
||||||
|
}
|
||||||
|
|
||||||
|
file { "/etc/auto.master":
|
||||||
|
ensure => present,
|
||||||
|
source => [ "puppet:///files/autofs/auto.master.${fqdn}",
|
||||||
|
"puppet:///files/autofs/auto.master",
|
||||||
|
"puppet:///autofs/auto.master", ],
|
||||||
|
mode => 0644,
|
||||||
|
owner => root,
|
||||||
|
group => root,
|
||||||
|
require => Package["autofs"],
|
||||||
|
notify => Service["autofs"],
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue