Projet

Général

Profil

Révision 11bf7237

ID11bf7237333a685ccc629e0b2536a34c79a4e217
Parent 78f22811
Enfant b09d43bf

Ajouté par Steve Traylen il y a plus de 4 ans

lint_fix results

Voir les différences:

manifests/rules/out/puppet.pp
1 1
# manage outgoing puppet
2
class nftables::rules::out::puppet(
2
class nftables::rules::out::puppet (
3 3
  Variant[String,Array[String,1]]
4
    $puppetmaster,
4
  $puppetmaster,
5 5
  Integer
6
    $puppetserver_port = 8140,
6
  $puppetserver_port = 8140,
7 7
) {
8 8
  any2array($puppetmaster).each |$index,$pm| {
9
    nftables::rule{
9
    nftables::rule {
10 10
      "default_out-puppet-${index}":
11 11
    }
12 12
    if $pm =~ /:/ {
13
      Nftables::Rule["default_out-puppet-${index}"]{
13
      Nftables::Rule["default_out-puppet-${index}"] {
14 14
        content => "ip6 daddr ${pm} tcp dport ${puppetserver_port} accept",
15 15
      }
16 16
    } else {
17
      Nftables::Rule["default_out-puppet-${index}"]{
17
      Nftables::Rule["default_out-puppet-${index}"] {
18 18
        content => "ip daddr ${pm} tcp dport ${puppetserver_port} accept",
19 19
      }
20 20
    }

Formats disponibles : Unified diff