forked from jhoblitt/puppet-ganglia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cleanup code to pass puppet-lint and add the 'lint' rake target
- Loading branch information
Joshua Hoblitt
committed
Mar 2, 2013
1 parent
19c28c4
commit a56b641
Showing
13 changed files
with
139 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
require 'puppetlabs_spec_helper/rake_tasks' | ||
require 'puppet-lint/tasks/puppet-lint' | ||
|
||
PuppetLint.configuration.send("disable_class_inherits_from_params_class") | ||
PuppetLint.configuration.send("disable_variable_scope") | ||
PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", 'tests/**/*.pp'] |
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 |
---|---|---|
@@ -1,11 +1,24 @@ | ||
# == Class: ganglia::gmetad::config | ||
# | ||
# installs the configuration file for gmetad | ||
# | ||
# === Authors | ||
# | ||
# Joshua Hoblitt <[email protected]> | ||
# | ||
# === Copyright | ||
# | ||
# Copyright (C) 2012-2013 Joshua Hoblitt | ||
# | ||
|
||
class ganglia::gmetad::config inherits ganglia::gmetad { | ||
|
||
file { $gmetad_service_config: | ||
ensure => present, | ||
owner => 'root', | ||
group => 'root', | ||
mode => '0644', | ||
mode => '0644', | ||
content => template($gmetad_service_erb), | ||
notify => Class["ganglia::gmetad::service"], | ||
notify => Class['ganglia::gmetad::service'], | ||
} | ||
} |
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 |
---|---|---|
@@ -1,3 +1,16 @@ | ||
# == Class: ganglia::gmetad::install | ||
# | ||
# installs the package that provides gmetad | ||
# | ||
# === Authors | ||
# | ||
# Joshua Hoblitt <[email protected]> | ||
# | ||
# === Copyright | ||
# | ||
# Copyright (C) 2012-2013 Joshua Hoblitt | ||
# | ||
|
||
class ganglia::gmetad::install inherits ganglia::gmetad { | ||
|
||
package { $gmetad_package_name: | ||
|
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 |
---|---|---|
@@ -1,3 +1,16 @@ | ||
# == Class: ganglia::gmetad::service | ||
# | ||
# enables the gmetad service | ||
# | ||
# === Authors | ||
# | ||
# Joshua Hoblitt <[email protected]> | ||
# | ||
# === Copyright | ||
# | ||
# Copyright (C) 2012-2013 Joshua Hoblitt | ||
# | ||
|
||
class ganglia::gmetad::service inherits ganglia::gmetad { | ||
|
||
service { $gmetad_service_name: | ||
|
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 |
---|---|---|
@@ -1,11 +1,24 @@ | ||
# == Class: ganglia::gmond::config | ||
# | ||
# installs the configuration file for gmond | ||
# | ||
# === Authors | ||
# | ||
# Joshua Hoblitt <[email protected]> | ||
# | ||
# === Copyright | ||
# | ||
# Copyright (C) 2012-2013 Joshua Hoblitt | ||
# | ||
|
||
class ganglia::gmond::config { | ||
|
||
file { $gmond_service_config: | ||
ensure => present, | ||
owner => 'root', | ||
group => 'root', | ||
mode => '0644', | ||
mode => '0644', | ||
content => template($gmond_service_erb), | ||
notify => Class["ganglia::gmond::service"], | ||
notify => Class['ganglia::gmond::service'], | ||
} | ||
} |
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 |
---|---|---|
@@ -1,3 +1,16 @@ | ||
# == Class: ganglia::gmond::install | ||
# | ||
# installs the package that provides gmond | ||
# | ||
# === Authors | ||
# | ||
# Joshua Hoblitt <[email protected]> | ||
# | ||
# === Copyright | ||
# | ||
# Copyright (C) 2012-2013 Joshua Hoblitt | ||
# | ||
|
||
class ganglia::gmond::install { | ||
|
||
package { $gmond_package_name: | ||
|
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 |
---|---|---|
@@ -1,3 +1,16 @@ | ||
# == Class: ganglia::gmond::service | ||
# | ||
# enables the gmond service | ||
# | ||
# === Authors | ||
# | ||
# Joshua Hoblitt <[email protected]> | ||
# | ||
# === Copyright | ||
# | ||
# Copyright (C) 2012-2013 Joshua Hoblitt | ||
# | ||
|
||
class ganglia::gmond::service { | ||
|
||
service { $gmond_service_name: | ||
|
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 |
---|---|---|
@@ -1,3 +1,16 @@ | ||
# == Class: ganglia::params | ||
# | ||
# provides parameters for the ganglia module | ||
# | ||
# === Authors | ||
# | ||
# Joshua Hoblitt <[email protected]> | ||
# | ||
# === Copyright | ||
# | ||
# Copyright (C) 2012-2013 Joshua Hoblitt | ||
# | ||
|
||
class ganglia::params { | ||
$gmond_package_name = 'ganglia-gmond' | ||
$gmond_service_name = 'gmond' | ||
|
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 |
---|---|---|
@@ -1,10 +1,23 @@ | ||
# == Class: ganglia::web::config | ||
# | ||
# configure the ganglia web front end | ||
# | ||
# === Authors | ||
# | ||
# Joshua Hoblitt <[email protected]> | ||
# | ||
# === Copyright | ||
# | ||
# Copyright (C) 2012-2013 Joshua Hoblitt | ||
# | ||
|
||
class ganglia::web::config inherits ganglia::web { | ||
|
||
file { $web_php_config: | ||
ensure => present, | ||
owner => 'root', | ||
group => 'root', | ||
mode => '0644', | ||
mode => '0644', | ||
content => template($web_php_erb), | ||
} | ||
} |
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 |
---|---|---|
@@ -1,3 +1,16 @@ | ||
# == Class: ganglia::web::install | ||
# | ||
# installs the package that provides the ganglia web front end | ||
# | ||
# === Authors | ||
# | ||
# Joshua Hoblitt <[email protected]> | ||
# | ||
# === Copyright | ||
# | ||
# Copyright (C) 2012-2013 Joshua Hoblitt | ||
# | ||
|
||
class ganglia::web::install inherits ganglia::web { | ||
|
||
package { $web_package_name: | ||
|