root / manifests / rules / samba.pp @ 19908f41
Historique | Voir | Annoter | Télécharger (519 octets)
1 |
# @summary manage Samba, the suite to allow Windows file sharing on Linux resources. |
---|---|
2 |
# @param ctdb Enable ctdb-driven clustered Samba setups. |
3 |
class nftables::rules::samba ( |
4 |
Boolean $ctdb = false, |
5 |
) { |
6 |
nftables::rule { |
7 |
'default_in-netbios_tcp': |
8 |
content => 'tcp dport {139,445} accept', |
9 |
} |
10 |
|
11 |
nftables::rule { |
12 |
'default_in-netbios_udp': |
13 |
content => 'udp dport {137,138} accept', |
14 |
} |
15 |
|
16 |
if $ctdb { |
17 |
nftables::rule { |
18 |
'default_in-ctdb': |
19 |
content => 'tcp dport 4379 accept', |
20 |
} |
21 |
} |
22 |
} |