forked from redhat-openstack/openstack-puppet-modules
-
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.
a1901fb Merge pull request redhat-openstack#279 from throck/master 67af5f9 add rspec test a6c102b Merge pull request redhat-openstack#252 from simonpasquier/issue-251 07326b3 Drop support for Ubuntu 10.04 83095e1 Bump version in metadata.json to 3.4.0 76d4ebe Merge pull request redhat-openstack#277 from pdxcat/release_340 3f06a17 Release 3.4.0 a622ba8 Merge pull request redhat-openstack#276 from pdxcat/ruby220 e4f3a17 Add ruby 2.2.0 4b569da Merge pull request redhat-openstack#275 from pdxcat/test_puppet4 ea331d6 Drop tests for puppet 3.0 b7abefb Update all the gems 63bf721 Add puppet4 to .travis and update ruby to 2.1.6 b9b1cc1 Merge pull request redhat-openstack#270 from piotr1212/cpu_options df5d2bb Merge pull request redhat-openstack#272 from piotr1212/rake_validate_type 016458c Merge pull request redhat-openstack#273 from piotr1212/validate_re_on_int 7acc2bd Merge branch 'issue-251' of github.com:simonpasquier/puppet-module-collectd into issue-251 cff8b95 Fix collectd::plugin::write_http for RedHat a442bac plugin_cpu: add version info to readme ade651e add tests for cpu plugin f00ef92 snpm/host.pp validate_re validate on string 192eab7 quote reserved word type in tail.pp so rake validate succeeds 2c5e030 add new cpu plugin options introduced in collectd 5.5 8c2ad77 add support for protocols plugin ce656ce Fix collectd::plugin::write_http for RedHat Change-Id: I2dd497902845c2b1e3576a8fa54d0f96519764cc
- Loading branch information
Showing
15 changed files
with
317 additions
and
85 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
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 |
---|---|---|
@@ -1,10 +1,21 @@ | ||
# https://collectd.org/wiki/index.php/Plugin:CPU | ||
class collectd::plugin::cpu ( | ||
$ensure = present, | ||
$interval = undef, | ||
$ensure = present, | ||
$reportbystate = true, | ||
$reportbycpu = true, | ||
$valuespercentage = false, | ||
$interval = undef, | ||
) { | ||
|
||
validate_bool( | ||
$reportbystate, | ||
$reportbycpu, | ||
$valuespercentage, | ||
) | ||
|
||
collectd::plugin {'cpu': | ||
ensure => $ensure, | ||
content => template('collectd/plugin/cpu.conf.erb'), | ||
interval => $interval, | ||
} | ||
} |
Oops, something went wrong.