This repository has been archived by the owner on Jun 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from associatedpress/ap-fix
Fix namespace clash with Firewall module when using hiera. Addresses Issue #18
- Loading branch information
Showing
16 changed files
with
223 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,6 @@ Session.vim | |
spec/fixtures | ||
.*.sw[a-z] | ||
*.un~ | ||
vendor | ||
.bundle | ||
.gemfile.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,19 +3,14 @@ rvm: | |
- 1.8.7 | ||
- 1.9.3 | ||
script: | ||
- "rake spec SPEC_OPTS='--format documentation'" | ||
- "bundle exec rake spec SPEC_OPTS='--format documentation'" | ||
env: | ||
- PUPPET_VERSION="~> 2.6.0" | ||
- PUPPET_VERSION="~> 2.7.0" | ||
- PUPPET_VERSION="~> 3.0.0" | ||
- PUPPET_VERSION="~> 3.1.0" | ||
matrix: | ||
exclude: | ||
- rvm: 1.9.3 | ||
env: PUPPET_VERSION="~> 2.6.0" | ||
gemfile: .gemfile | ||
|
||
gemfile: .gemfile | ||
sudo: false | ||
notifications: | ||
email: | ||
- [email protected] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# Define: monit::checkfile | ||
# | ||
# Basic file checking define that works by pattern matching | ||
# | ||
# Usage: | ||
# With standard template: | ||
# monit::checkfile { "name": | ||
# pattern => 'string to search'} | ||
# | ||
define monit::checkfile ( | ||
$process = '', | ||
$processuid = '', | ||
$processgid = '', | ||
$file = '', | ||
$template = 'monit/checkfile.erb', | ||
$pattern = '', | ||
$startprogram = '', | ||
$stopprogram = '', | ||
$restarts = '5', | ||
$cycles = '5', | ||
$failaction = 'timeout', | ||
$depends = [], | ||
$enable = true ) { | ||
|
||
$ensure=bool2ensure($enable) | ||
|
||
include monit | ||
|
||
$real_file = $file ? { | ||
'' => $name, | ||
default => $file, | ||
} | ||
|
||
$real_pattern = $pattern | ||
$real_process = $process | ||
|
||
$real_startprogram = $startprogram ? { | ||
'' => "/etc/init.d/${process} start", | ||
default => $startprogram, | ||
} | ||
|
||
$real_stopprogram = $stopprogram ? { | ||
'' => "/etc/init.d/${process} stop", | ||
default => $stopprogram, | ||
} | ||
|
||
$real_processuid = $processuid ? { | ||
'' => $monit::process_user, | ||
default => $processuid, | ||
} | ||
|
||
$real_processgid = $processgid ? { | ||
'' => $monit::process_group, | ||
default => $processgid, | ||
} | ||
|
||
file { "MonitCheckFile_${name}": | ||
ensure => $ensure, | ||
path => "${monit::plugins_dir}/${name}", | ||
mode => $monit::config_file_mode, | ||
owner => $monit::config_file_owner, | ||
group => $monit::config_file_group, | ||
require => Package[$monit::package], | ||
notify => $monit::manage_service_autorestart, | ||
content => template($template), | ||
replace => $monit::manage_file_replace, | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# Define: monit::checkprocessmatch | ||
# | ||
# Basic processs checking define that works by pattern matching | ||
# against the process name (command line) in the process table. | ||
# | ||
# Usage: | ||
# With standard template: | ||
# monit::checkprocessmatch { "name": } | ||
# | ||
define monit::checkprocessmatch ( | ||
$process = '', | ||
$processuid = '', | ||
$processgid = '', | ||
$template = 'monit/checkprocessmatch.erb', | ||
$pattern = '', | ||
$startprogram = '', | ||
$stopprogram = '', | ||
$restarts = '5', | ||
$cycles = '5', | ||
$failaction = 'timeout', | ||
$depends = [], | ||
$enable = true ) { | ||
|
||
$ensure=bool2ensure($enable) | ||
|
||
include monit | ||
|
||
$real_process = $process ? { | ||
'' => $name, | ||
default => $process, | ||
} | ||
|
||
$real_pattern = $pattern ? { | ||
'' => $real_process, | ||
default => $pattern, | ||
} | ||
|
||
$real_startprogram = $startprogram ? { | ||
'' => "/etc/init.d/${process} start", | ||
default => $startprogram, | ||
} | ||
|
||
$real_stopprogram = $stopprogram ? { | ||
'' => "/etc/init.d/${process} stop", | ||
default => $stopprogram, | ||
} | ||
|
||
$real_processuid = $processuid ? { | ||
'' => $monit::process_user, | ||
default => $processuid, | ||
} | ||
|
||
$real_processgid = $processgid ? { | ||
'' => $monit::process_group, | ||
default => $processgid, | ||
} | ||
|
||
file { "MonitCheckProcessMatch_${name}": | ||
ensure => $ensure, | ||
path => "${monit::plugins_dir}/${name}", | ||
mode => $monit::config_file_mode, | ||
owner => $monit::config_file_owner, | ||
group => $monit::config_file_group, | ||
require => Package[$monit::package], | ||
notify => $monit::manage_service_autorestart, | ||
content => template($template), | ||
replace => $monit::manage_file_replace, | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.