diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2016-03-23 20:01:11 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2016-03-23 20:01:11 -0300 |
commit | dffe0d74eadc7c25ab9ee513cb3a6b345dfa7644 (patch) | |
tree | 53e848d9d576687ec2c032564b6c42ba21b678f1 /manifests/managed_file.pp | |
parent | 589f5723d500ad7325e19dfeb1d3b8450044acf1 (diff) | |
parent | edd5db0159d5075609c545fb3ee10727a1cf5271 (diff) | |
download | puppet-shorewall-master.tar.gz puppet-shorewall-master.tar.bz2 |
Conflicts:
manifests/tunnel.pp
Diffstat (limited to 'manifests/managed_file.pp')
-rw-r--r-- | manifests/managed_file.pp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/manifests/managed_file.pp b/manifests/managed_file.pp index d564daa..b353814 100644 --- a/manifests/managed_file.pp +++ b/manifests/managed_file.pp @@ -1,17 +1,20 @@ -define shorewall::managed_file () { +# manage a certain file +define shorewall::managed_file() { concat{ "/etc/shorewall/puppet/${name}": - notify => Service['shorewall'], + notify => Exec['shorewall_check'], require => File['/etc/shorewall/puppet'], - owner => root, group => 0, mode => 0600; + owner => 'root', + group => 'root', + mode => '0600'; } concat::fragment { "${name}-header": source => "puppet:///modules/shorewall/boilerplate/${name}.header", target => "/etc/shorewall/puppet/${name}", - order => '000'; + order => '000'; "${name}-footer": source => "puppet:///modules/shorewall/boilerplate/${name}.footer", target => "/etc/shorewall/puppet/${name}", - order => '999'; + order => '999'; } } |