Sha256: b8e2e6f71fbb9e01d70f4b4ea2d90bc5b2504abbfcc9b2df8c436ba33ef45a13

Contents?: true

Size: 638 Bytes

Versions: 17

Compression:

Stored size: 638 Bytes

Contents

module PoolParty
  module Resources
  
    class Collectd < Resource
      
      PoolParty::Resources::FileResource.has_searchable_paths(:prepend_paths=> [File.dirname(__FILE__)+'/collectd/templates'])
      
      def after_loaded
        has_package 'collectd'
        %w(rrdtool librrd-dev librrd-ruby  libsensors-dev libsnmp-dev collectd collectd-dev).each{|pkg| 
          has_package pkg 
        }
        has_gem_package "astro-collectd"
        
        has_variable 'server', "localhost"
        has_file '/etc/collectd/collectd.conf' do
          template 'collectd.conf.erb'
        end
      end
      
    end
  
  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
auser-poolparty-1.3.10 lib/poolparty/plugins/collectd.rb
auser-poolparty-1.3.11 lib/poolparty/plugins/collectd.rb
auser-poolparty-1.3.12 lib/poolparty/plugins/collectd.rb
auser-poolparty-1.3.13 lib/poolparty/plugins/collectd.rb
auser-poolparty-1.3.14 lib/poolparty/plugins/collectd.rb
auser-poolparty-1.3.15 lib/poolparty/plugins/collectd.rb
auser-poolparty-1.3.16 lib/poolparty/plugins/collectd.rb
auser-poolparty-1.3.17 lib/poolparty/plugins/collectd.rb
auser-poolparty-1.3.6 lib/poolparty/plugins/collectd.rb
auser-poolparty-1.3.7 lib/poolparty/plugins/collectd.rb
auser-poolparty-1.3.8 lib/poolparty/plugins/collectd.rb
poolparty-1.3.15 lib/poolparty/plugins/collectd.rb
poolparty-1.3.14 lib/poolparty/plugins/collectd.rb
poolparty-1.3.13 lib/poolparty/plugins/collectd.rb
poolparty-1.3.8 lib/poolparty/plugins/collectd.rb
poolparty-1.3.7 lib/poolparty/plugins/collectd.rb
poolparty-1.3.6 lib/poolparty/plugins/collectd.rb