Projet

Général

Profil

Paste
Télécharger au format
Statistiques
| Branche: | Révision:

root / manifests / rules / samba.pp @ 1bf717d9

Historique | Voir | Annoter | Télécharger (519 octets)

1 4470f70c Giuseppe Lo Presti
# @summary manage Samba, the suite to allow Windows file sharing on Linux resources.
2
# @param ctdb Enable ctdb-driven clustered Samba setups.
3 e743f82e Giuseppe Lo Presti
class nftables::rules::samba (
4
  Boolean $ctdb = false,
5
) {
6 a6f61c62 Giuseppe Lo Presti
  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 354a82d9 Giuseppe Lo Presti
  if $ctdb {
17 e743f82e Giuseppe Lo Presti
    nftables::rule {
18
      'default_in-ctdb':
19
        content => 'tcp dport 4379 accept',
20
    }
21 a6f61c62 Giuseppe Lo Presti
  }
22
}