Skip to content

Commit

Permalink
making sure everyone has the proper require and notify configs.
Browse files Browse the repository at this point in the history
  • Loading branch information
sharumpe committed Dec 3, 2014
1 parent 4f866f4 commit 4dc0f7f
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 6 deletions.
4 changes: 4 additions & 0 deletions manifests/access.pp
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
class apache2::access {
include apache2::params

#
# Create the file we're storing these in
#
concat { $params::accessConfigPath :
ensure => present,
notify => $apache2::serviceNotify,
require => Package[ $params::jkPackageName ],
}
}

Expand Down
10 changes: 6 additions & 4 deletions manifests/modules.pp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
file_line { 'clear_module_list' :
path => $params::sysconfigPath,
line => 'APACHE_MODULES=""',
notify => $apache2::serviceNotify,
require => Package[ $params::packageName ],
}

# enable the modules specified
Expand All @@ -25,9 +27,9 @@
{
# Enable the module
exec { "enable_${name}" :
command => "/usr/sbin/a2enmod ${name}",
unless => "/usr/sbin/a2enmod -q ${name}",
require => Package[ $params::packageName ],
notify => $apache2::serviceNotify,
command => "/usr/sbin/a2enmod ${name}",
unless => "/usr/sbin/a2enmod -q ${name}",
notify => $apache2::serviceNotify,
require => Package[ $params::packageName ],
}
}
2 changes: 2 additions & 0 deletions manifests/statusandinfo.pp
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@
file { $params::statusConfigPath :
ensure => present,
source => "puppet:///modules/apache2/default${params::statusConfigPath}",
notify => $apache2::serviceNotify,
require => Package[ $params::packageName ],
}
file { $params::infoConfigPath :
ensure => present,
source => "puppet:///modules/apache2/default${params::infoConfigPath}",
notify => $apache2::serviceNotify,
require => Package[ $params::packageName ],
}

Expand Down
4 changes: 3 additions & 1 deletion manifests/sysconfig.pp
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@
path => $params::sysconfigPath,
line => "APACHE_SERVERSIGNATURE = \"${serverSignature}\"",
match => "^APACHE_SERVERSIGNATURE\s*=",
notify => $apache2::serviceNotify,
notify => $apache2::serviceNotify,
require => Package[ $params::packageName ],
}
file_line { 'serverTokensRule' :
path => $params::sysconfigPath,
line => "APACHE_SERVERTOKENS=\"${serverTokens}\"",
match => "^APACHE_SERVERTOKENS=",
notify => $apache2::serviceNotify,
require => Package[ $params::packageName ],
}
}
4 changes: 3 additions & 1 deletion manifests/traceenable.pp
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@
else {
$content = "TraceEnable off"
}

file { $params::traceEnableConfigPath :
ensure => file,
content => $content,
notify => $apache2::serviceNotify,
require => Package[ $params::packageName ],
}

}

0 comments on commit 4dc0f7f

Please sign in to comment.