Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the install of the graphite backend optional #212

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion providers/carbon_cache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def whyrun_supported?
use_inline_resources

action :create do
set_updated { install_python_pip }
set_updated { install_python_pip } if new_resource.install
end

def install_python_pip
Expand Down
1 change: 1 addition & 0 deletions resources/carbon_cache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

attribute :name, :kind_of => String, :default => nil, :name_attribute => true
attribute :backend, :kind_of => [String, Hash], :default => "whisper"
attribute :install, :kind_of => [TrueClass, FalseClass], :default => true
attribute :config, :kind_of => Hash, :default => nil

def backend_name
Expand Down