blob: f075bf4997284cf9ee422b987e37a1dda7283efe (
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
28
29
30
31
|
class filer::client ($server) {
file {'/srv/filer':
ensure => directory,
}
->
file {'/etc/systemd/system/srv-filer.mount':
content => @("EOT")
[Mount]
What=${server}:/srv/filer
Where=/srv/filer
Type=nfs
[Install]
WantedBy=multi-user.target
| EOT
,
}
~>
exec {'/bin/systemctl daemon-reload':
refreshonly => true,
}
->
service {'srv-filer.mount':
ensure => running,
enable => true,
}
package {'nfs-common':}
->
Service['srv-filer.mount']
}
|