Skip to content

Commit

Permalink
Merge pull request jesseadams#2 from josephholsten/cookbook-plugins
Browse files Browse the repository at this point in the history
[COOK-1143] support pulling plugin files from external cookbooks
  • Loading branch information
Joshua Timberman committed Apr 25, 2012
2 parents 49e325b + f382c5b commit d59dc3e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions definitions/munin_plugin.rb
Expand Up @@ -18,7 +18,7 @@
#


define :munin_plugin, :create_file => false, :enable => true do
define :munin_plugin, :create_file => false, :enable => true, :cookbook => 'munin' do

include_recipe "munin::client"

Expand All @@ -28,7 +28,7 @@

if params[:create_file]
cookbook_file "#{plugin_dir}/#{params[:name]}" do
cookbook "munin"
cookbook params[:cookbook]
source "plugins/#{params[:name]}"
owner "root"
group node['munin']['root']['group']
Expand Down
2 changes: 1 addition & 1 deletion metadata.rb
Expand Up @@ -3,7 +3,7 @@
license "Apache 2.0"
description "Installs and configures munin"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "1.0.2"
version "1.0.4"

depends "apache2", ">= 1.0.6"

Expand Down
4 changes: 4 additions & 0 deletions templates/default/munin.conf.erb
Expand Up @@ -6,6 +6,10 @@ htmldir <%= @docroot %>
logdir /var/log/munin
rundir /var/run/munin

<% node['munin']['contacts'].each do |kind, command| %>
contact.<%= kind %>.contact <%= command %>
<% end %>

# Where to look for the HTML templates
tmpldir <%= node['munin']['tmpldir'] %>

Expand Down

0 comments on commit d59dc3e

Please sign in to comment.