Projet

Général

Profil

Révision 5dedf86c

ID5dedf86cb36beb4043c7e2d34724d8439479dc48
Parent 4ee75698
Enfant 0f34454b

Ajouté par Steve Traylen il y a 3 mois

Add ruleset for a Nomad cluster

Nomad clusters typically have single public API
port as well as rpc and serf ports for inter cluster
communication.

Example:

```puppet
class{ 'nftables::rules::nomad':
cluster_elements = [
'10.0.0.1','10.0.0.2',
'::1', '::2'',
],
}
```

The default ports can be overridden with parameters `http`, `rpc` and
`surf`.

Voir les différences:

REFERENCE.md
33 33
* [`nftables::rules::nfs`](#nftables--rules--nfs): manage in nfs4
34 34
* [`nftables::rules::nfs3`](#nftables--rules--nfs3): manage in nfs3
35 35
* [`nftables::rules::node_exporter`](#nftables--rules--node_exporter): manage in node exporter
36
* [`nftables::rules::nomad`](#nftables--rules--nomad): manage port openings for a nomad cluster
36 37
* [`nftables::rules::ospf`](#nftables--rules--ospf): manage in ospf
37 38
* [`nftables::rules::ospf3`](#nftables--rules--ospf3): manage in ospf3
38 39
* [`nftables::rules::out::active_directory`](#nftables--rules--out--active_directory): manage outgoing active diectory
......
887 888

  
888 889
Default value: `9100`
889 890

  
891
### <a name="nftables--rules--nomad"></a>`nftables::rules::nomad`
892

  
893
manage port openings for a nomad cluster
894

  
895
#### Examples
896

  
897
##### Simple two node nomad cluster
898

  
899
```puppet
900
class{ 'nftables::rules::nomad':
901
  cluster_elements = [
902
    '10.0.0.1','10.0.0.2',
903
    '::1', '::2'',
904
  ],
905
}
906
```
907

  
908
#### Parameters
909

  
910
The following parameters are available in the `nftables::rules::nomad` class:
911

  
912
* [`cluster_elements`](#-nftables--rules--nomad--cluster_elements)
913
* [`http`](#-nftables--rules--nomad--http)
914
* [`rpc`](#-nftables--rules--nomad--rpc)
915
* [`serf`](#-nftables--rules--nomad--serf)
916

  
917
##### <a name="-nftables--rules--nomad--cluster_elements"></a>`cluster_elements`
918

  
919
Data type: `Array[Stdlib::IP::Address,1]`
920

  
921
IP addreses of nomad cluster nodes
922

  
923
Default value: `['127.0.0.1','::1']`
924

  
925
##### <a name="-nftables--rules--nomad--http"></a>`http`
926

  
927
Data type: `Stdlib::Port`
928

  
929
Specify http api port to open to the world.
930

  
931
Default value: `4646`
932

  
933
##### <a name="-nftables--rules--nomad--rpc"></a>`rpc`
934

  
935
Data type: `Stdlib::Port`
936

  
937
Specify rpc port to open within the nomad cluster
938

  
939
Default value: `4647`
940

  
941
##### <a name="-nftables--rules--nomad--serf"></a>`serf`
942

  
943
Data type: `Stdlib::Port`
944

  
945
Specify serf port to open within the nomad cluster
946

  
947
Default value: `4648`
948

  
890 949
### <a name="nftables--rules--ospf"></a>`nftables::rules::ospf`
891 950

  
892 951
manage in ospf

Formats disponibles : Unified diff