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/config.pp
1 1
# manage a config snippet
2
define nftables::config(
2
define nftables::config (
3 3
  Optional[String]
4
    $content = undef,
4
  $content = undef,
5 5
  Optional[Variant[String,Array[String,1]]]
6
    $source = undef,
7
){
6
  $source = undef,
7
) {
8 8
  $concat_name = "nftables-${name}"
9 9

  
10
  Package['nftables'] -> concat{
10
  Package['nftables'] -> concat {
11 11
    $concat_name:
12 12
      path           => "/etc/nftables/puppet-preflight/${name}.nft",
13 13
      ensure_newline => true,
14 14
      owner          => root,
15 15
      group          => root,
16 16
      mode           => '0640',
17
  } ~> Exec['nft validate'] -> file{
17
  } ~> Exec['nft validate'] -> file {
18 18
    "/etc/nftables/puppet/${name}.nft":
19
    ensure => file,
20
    source => "/etc/nftables/puppet-preflight/${name}.nft",
21
    owner  => root,
22
    group  => root,
23
    mode   => '0640',
19
      ensure => file,
20
      source => "/etc/nftables/puppet-preflight/${name}.nft",
21
      owner  => root,
22
      group  => root,
23
      mode   => '0640',
24 24
  } ~> Service['nftables']
25 25

  
26 26
  $data = split($name, '-')

Formats disponibles : Unified diff