Skip to content

Commit

Permalink
Add Puppet module collectd
Browse files Browse the repository at this point in the history
The module is necessary to integrate collectd support in Packstack.

The module is available at
https://github.com/pdxcat/puppet-module-collectd.

This module update commit was generated by Bade.
For more info please check https://github.com/paramite/bade

This commit is setting modules to following state:
module-collectd
 - initial commit: cf79540
  • Loading branch information
berendt committed Dec 8, 2014
1 parent b907c47 commit b97b412
Show file tree
Hide file tree
Showing 178 changed files with 4,984 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Puppetfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ mod 'memcached',
:commit => '49dbf102fb6eee90297b2ed6a1fa463a8c5ccee7',
:git => 'https://github.com/saz/puppet-memcached.git'

mod 'module-collectd',
:commit => 'cf79540be4623eb9da287f6d579ec4a4f4ddc39b',
:git => 'https://github.com/pdxcat/puppet-module-collectd.git'

mod 'module-data',
:commit => '159fc5e0e21ce9df96c777f0064b5eca88e29cae',
:git => 'https://github.com/ripienaar/puppet-module-data.git'
Expand Down
6 changes: 6 additions & 0 deletions module-collectd/.fixtures.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
fixtures:
repositories:
'stdlib': 'git://github.com/puppetlabs/puppetlabs-stdlib'
'concat': 'git://github.com/puppetlabs/puppetlabs-concat'
symlinks:
'collectd': "#{source_dir}"
6 changes: 6 additions & 0 deletions module-collectd/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pkg/
Gemfile.lock
.rspec_system
*.swp
.bundle/
spec/fixtures/
11 changes: 11 additions & 0 deletions module-collectd/.nodeset.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
default_set: 'ubuntu-server-12042-x64'
sets:
'centos-64-x64':
nodes:
"main.foo.vm":
prefab: 'centos-64-x64'
'ubuntu-server-12042-x64':
nodes:
"main.foo.vm":
prefab: 'ubuntu-server-12042-x64'
21 changes: 21 additions & 0 deletions module-collectd/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
language: ruby
bundler_args: --without development
script: "bundle exec rake validate && bundle exec rake lint && bundle exec rake spec SPEC_OPTS='--format documentation'"
matrix:
fast_finish: true
include:
- rvm: 1.8.7
env: PUPPET_GEM_VERSION="~> 2.7.0" FACTER_GEM_VERSION="~> 1.6.0"
- rvm: 1.8.7
env: PUPPET_GEM_VERSION="~> 2.7.0" FACTER_GEM_VERSION="~> 1.7.0"
- rvm: 1.9.3
env: PUPPET_GEM_VERSION="~> 3.0"
- rvm: 2.0.0
env: PUPPET_GEM_VERSION="~> 3.0"
- rvm: 1.9.3
env: PUPPET_GEM_VERSION="~> 3.5.0" STRICT_VARIABLES="yes"
- rvm: 2.0.0
env: PUPPET_GEM_VERSION="~> 3.5.0" STRICT_VARIABLES="yes"
notifications:
email: false
278 changes: 278 additions & 0 deletions module-collectd/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,278 @@
## 2014-10-04 Release 3.0.1

### Backwards-incompatible changes:

none

### Summary:

Bug fix release

### Features:

* Add support for manually specifying the hostname

### Bugs:

* Add dependency for python plugins
* Set default value of chains to be hash
* Sort snmp data and hosts hash

## 2014-08-25 Release 3.0.0

### Backwards-incompatible changes:

* Make sure plugin_conf_dir is not world readable
* Full rewrite of the network plugin
* Rewrite of postgresql module to allow invocation by defined types

### Summary:

This release adds multiple new plugins and improvements

### Features:

* Varnish plugin improvments
* Add the ability to customize package name.
* Add write_http plugin
* Add statsd plugin
* Add plugin logfile
* Add curl plugin
* Add support for sensors plugin
* Add support for perl plugins
* Allow custom Include directives
* Add valuesabsolute and valuespercentage to df plugin

### Bugs:

* Issue 164: syslog plugin needs to be loaded as first plugin
* notify the collectd service when purging plugins
* add collectd-rrdtool package needed for RedHat
* sort python.conf options hash

## 2014-04-14 Release 2.1.0

### Summary:

This release adds Gentoo osfamily support and minor plugin changes

### Features:

- adding Gentoo support
- tcpconn plugin: $localports and $remoteports can me left undef if $listening is not set
- unixsock plugin: Implement the "DeleteSocket" option.
- add reportreserved parameter for df plugin


## 2014-04-14 Release 2.0.1

### Summary:

Fix issue with metadata.json preventing Forge uploads

## 2014-04-14 Release 2.0.0

### Summary:

This release adds support for several new plugins and contains
some backwards-incompatible code refactors.

### Backwards-incompatible changes:

- Storerates=true is now the default for the Graphite plugin
- Deprecate write_network plugin, use network plugin instead
- Make sure plugin configs are not world readable.
- Handle plugin order with collectd::plugin resource type
(all collectd plugins config files will be renumbered from
00-$name.conf to 10-$name.conf)

### Features:

- New plugins CSV, uptime, users, entropy, varnish, redis,
contextswitch, cpu, nfs, vmem, libvirt
- Add socket parameter to mysql plugin
- Add reportbytes to swap plugin
- Add SeparateInstances setting to write_graphite plugin
- Add metadata.json for Forge search support

### Bugs:

- Fix port parameter quotes in memcached plugin
- Fix collectd conf dir path parameter assignment
- Fix processes plugin configuration
- Force ReportReserved to true in df plugin

## 2014-01-18 Release 1.1.0

### Summary:

This release adds support for new plugins and fixes multiple bugs in
several plugin configurations.

### Features:

- Added load plugin
- Added memory plugin
- Added rrdtool plugin
- Added swap plugin
- Initial version of PostgreSQL plugin
- Add protocol paramter to write_graphite plugin
- add tests for network module
- Support pre-4.7 network configs.

### Bugs:

- Fix bug that always creates notification in exec on empty params
- fix typo in apache plugin manifest
- Make sure that plugins are always loaded before their configuration
- Add version check around emitting Protocol config
- mysql: use double quotes according to version
- Allow for alphanumeric collectd version numbers
- (gh-85) Fix null versioncmp bug in plugin templates
- (gh-69) Fix package name on RedHat

## 2013-12-17 Release 1.0.2

### Summary:

This release adds the AMQP plugin and a collectd version fact.

### Features:

- Add AMQP plugin
- Add class parameter typesdb
- Use collectd::params::root_group instead of fixed group name
- Add collectd version fact

## 2013-12-04 Release 1.0.1

### Summary:

This release introduces Archlinux osfamily support and support for
three new plugins ping, rrdcached, and processes.

### Features:

- Initial version of rrdcached plugin
- Add configurable processes plugin
- Add quotes for string values in network plugin
- Add ping plugin
- Add support for Archlinux
- Allow to set all write_graphite options.

### Bugs:

- Fixed missing double quotes in unixsock plugin template
- Added comma to syntax error in bind.pp

## 2013-10-20 Release 1.0.0

### Summary:

This release breaks some backwards compatibility
on some plugins where they improperly used strings instead of
booleans parameters. This release also includes osfamily
support for SUSE and FreeBSB and support for four new plugins.

### Backwards-incompatible changes:

- Plugins that use to accept strings now use booleans
for a more consistent interface across the various plugins
- The main collectd config file now only includes *.conf files
to allow plugin specific files to be placed in the conf.d
directory.
- The mysql plugin now supports multiple databases via the
collectd::plugin::mysql::database define. This change breaks
backwards compatiblity on the mysql plugin.

### Features:

- osfamily support for SUSE
- osfamily support for FreeBSD
- tail plugin
- exec plugin
- python plugin
- write_riemann plugin

## 2013-09-27 Release 0.1.0

### Summary:

Add curl_json and apache plugin

### Backwards-incompatible changes:

- The write_network plugin now accepts a hash of servers

### Features:

- Add curl_json plugin
- Added collectd package version parameter
- Add apache plugin

0.0.5 - pdxcat/collectd - 2013/09/24

6adca9a add ntpd plugin
ab55fb4 Added tcpconns plugin and example for it in README
677ff72 Adding a new generic write_network plugin define
8cdd8b7 Added memcached plugin and example for it in README
c3e4a02 Added examples to README for filecount, SNMP and unixsock
f798c84 Added support for file count plugin
66f7392 Added support for SNMP and bumped stdlib dependency version to 3.0.0
7118450 Added support for unix socket plugin
a062b11 Fixed source URL
1b214a2 Add testing docs to README

0.0.4 - pdxcat/collectd - 2013/08/26

9f3f0f6 Add bind plugin to readme
f052087 Add bind plugin
fc0c4c1 Add basic rspec-system test
0b2ec92 Fix README formatting issues
71dcad0 Add configurable plugins to the README
72b9f17 Add test for file_line
7eae468 Add buildstatus to the README
b2cb208 Add travis.yml file
8cc16a8 Add purge_config enabled test
26683f0 Add spec test for collectd class
3f30650 Add spec helper files
0bee1d7 Add nginx plugin
e2d558a Fix network plugin config syntax
79d8a68 Add network plugin
c1085d7 Merge pull request #5 from agenticarus/newer-stdlib
88678bf Depend on newer version of stdlib
7dd9aaa added colorz to the README
628ed78 Added configuration for StoreRates and Port.

0.0.3 - pdxcat/collectd - 2013/05/27

f51660f Fixed test for collectd::plugin::irq
3019516 Added default field in selector for making syntax checkers happy.
39859e7 Added stdlib dependency for file_line

0.0.2 - pdxcat/collectd - 2013/05/09

185e16f Modifications for following puppetlabs style guide and add smoke tests for interface, irq and iptables
d68275f Added interface, irq and iptables support. Untested though.
b8312cc Added use of scope.lookupvar, allow configuration of threads and option to choose between hostname and fqdn

0.0.1 - pdxcat/collectd - 2013/02/06

8c64104 Add interval and timeout parameters
e48288d Add redhat support to the collectd module.
b6e3649 Add readme, module, and license files to collectd module.
fb6b92f Fix bug in collectd::plugin define
4096cca Add purge_config option to collectd class
2a2974c Add purge option to collectd class
8acbef3 Add syslog plugin
137c919 Add ensure option for collectd::plugin
3406430 Fix plugins with wrong metaparams
315af94 Add collectd::plugin define for unconfigured plugins
c085ebc Change include plugin file to include conf.d
171bddd Template openvpn plugin and parameterize the class
09c4df5 Add mysql plugin to collectd.
36f3465 Add disk plugin to collectd.
1e27a29 Fix collectd service subscription to conf file.
15f1ea7 Add Solaris collectd parameters
c013e73 Add collectd df plugin support
9cac9c4 Add collectd support.
27 changes: 27 additions & 0 deletions module-collectd/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
source ENV['GEM_SOURCE'] || "https://rubygems.org"

group :development, :test do
gem 'rake', :require => false
gem 'rspec-puppet', :require => false
gem 'puppetlabs_spec_helper', :require => false
gem 'serverspec', :require => false
gem 'puppet-lint', :require => false
gem 'beaker', :require => false
gem 'beaker-rspec', :require => false
gem 'pry', :require => false
gem 'simplecov', :require => false
end

if facterversion = ENV['FACTER_GEM_VERSION']
gem 'facter', facterversion, :require => false
else
gem 'facter', :require => false
end

if puppetversion = ENV['PUPPET_GEM_VERSION']
gem 'puppet', puppetversion, :require => false
else
gem 'puppet', :require => false
end

# vim:ft=ruby
17 changes: 17 additions & 0 deletions module-collectd/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Puppet Collectd Module

Copyright (C) 2013 Computer Action Team

The Computer Action Team can be contacted at: [email protected]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Loading

0 comments on commit b97b412

Please sign in to comment.