Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
duritong authored and micah committed Mar 23, 2013
1 parent 3139e5a commit 25cea9a
Showing 1 changed file with 40 additions and 35 deletions.
75 changes: 40 additions & 35 deletions manifests/base.pp
Original file line number Diff line number Diff line change
@@ -1,43 +1,48 @@
# base things for shorewall
class shorewall::base {

package { 'shorewall':
ensure => $shorewall::ensure_version,
}
package { 'shorewall':
ensure => $shorewall::ensure_version,
}

# This file has to be managed in place, so shorewall can find it
file {
'/etc/shorewall/shorewall.conf':
require => Package[shorewall],
notify => Service[shorewall],
owner => root,
group => 0,
mode => '0644';
'/etc/shorewall/puppet':
ensure => directory,
require => Package[shorewall],
owner => root,
group => 0,
mode => '0644';
}

# This file has to be managed in place, so shorewall can find it
file {
'/etc/shorewall/shorewall.conf':
require => Package[shorewall],
notify => Service[shorewall],
owner => root, group => 0, mode => 0644;
'/etc/shorewall/puppet':
ensure => directory,
require => Package[shorewall],
owner => root, group => 0, mode => 0644;
if $shorewall::conf_source {
File['/etc/shorewall/shorewall.conf']{
source => $shorewall::conf_source,
}
} else {

if $shorewall::conf_source {
File['/etc/shorewall/shorewall.conf']{
source => $shorewall::conf_source,
}
} else {
require augeas

require augeas
augeas { 'shorewall_module_config_path':
changes => 'set /files/etc/shorewall/shorewall.conf/CONFIG_PATH \'"/etc/shorewall/puppet:/etc/shorewall:/usr/share/shorewall"\'',
lens => 'Shellvars.lns',
incl => '/etc/shorewall/shorewall.conf',
notify => Service['shorewall'],
require => Package['shorewall'];
}
}

augeas { 'shorewall_module_config_path':
changes => 'set /files/etc/shorewall/shorewall.conf/CONFIG_PATH \'"/etc/shorewall/puppet:/etc/shorewall:/usr/share/shorewall"\'',
lens => 'Shellvars.lns',
incl => '/etc/shorewall/shorewall.conf',
notify => Service[shorewall],
require => Package['shorewall'];
}
}

service{shorewall:
ensure => running,
enable => true,
hasstatus => true,
hasrestart => true,
require => Package[shorewall],
}
service{'shorewall':
ensure => running,
enable => true,
hasstatus => true,
hasrestart => true,
require => Package['shorewall'],
}
}

0 comments on commit 25cea9a

Please sign in to comment.