Projet

Général

Profil

Révision bbc93ede

IDbbc93ede0da9e028359665bead74d6cd8880a5aa
Parent 9fe75e32
Enfant 5210e023

Ajouté par Dan van der Ster il y a plus de 4 ans

Add ceph related rules

Signed-off-by: Dan van der Ster <>

Voir les différences:

manifests/rules/ceph.pp
1
# Ceph is a distributed object store and file system.
2
# Enable this to support Ceph's Object Storage Daemons (OSD),
3
# Metadata Server Daemons (MDS), or Manager Daemons (MGR).
4
class nftables::rules::ceph {
5
  nftables::rule{
6
    'default_in-ceph':
7
      content => 'tcp dport 6800-7300 accept comment "Accept Ceph OSD, MDS, MGR"',
8
  }
9
}
manifests/rules/ceph_mon.pp
1
# Ceph is a distributed object store and file system.
2
# Enable this option to support Ceph's Monitor Daemon.
3
class nftables::rules::ceph_mon(
4
  Array[Integer,1] $ports = [3300, 6789],
5
){
6
  nftables::rule{
7
    'default_in-ceph_mon':
8
      content => "tcp dport {${$ports.join(', ')}} accept comment \"Accept Ceph MON\"",
9
  }
10
}
manifests/rules/out/ceph_client.pp
1
# Ceph is a distributed object store and file system.
2
# Enable this to be a client of Ceph's Monitor (MON),
3
# Object Storage Daemons (OSD), Metadata Server Daemons (MDS),
4
# and Manager Daemons (MGR).
5
class nftables::rules::out::ceph_client(
6
  Array[Integer,1] $ports = [3300, 6789],
7
){
8
  nftables::rule{
9
    'default_out-ceph_client':
10
      content => "tcp dport { ${$ports.join(', ')}, 6800-7300 } accept comment \"Accept Ceph MON, OSD, MDS, MGR\"",
11
  }
12
}

Formats disponibles : Unified diff