Projet

Général

Profil

Révision 948ebc98

ID948ebc9830ddefa7efe0f10e619bd50f10a051d4
Parent bacf254e
Enfant 38205751

Ajouté par Nacho Barrientos il y a plus de 4 ans

Prefix custom tables with custom- so they're loaded

Voir les différences:

manifests/config.pp
3 3
  Pattern[/^\w+-\w+$/] $tablespec = $title,
4 4
  Optional[String] $content = undef,
5 5
  Optional[Variant[String,Array[String,1]]] $source = undef,
6
  String $prefix = 'custom-',
6 7
) {
7 8
  if $content and $source {
8 9
    fail('Please pass only $content or $source, not both.')
......
12 13

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

Formats disponibles : Unified diff