Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

* allow bypass of install step for those that provide their own god exec... #4

Open
wants to merge 1 commit into from

1 participant

@sethcall

This change allows someone to suppress the install of god from rubygems, by override node['god']['install'] = false.

It defaults to true (install from rubygems) to provide backwards compatibility with the cookbook.

Why?
We provide our own god executable via a debian created using fpm (https://github.com/jordansissel/fpm).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 14, 2014
  1. @sethcall
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 3 deletions.
  1. +1 −0  attributes/default.rb
  2. +5 −3 recipes/default.rb
View
1  attributes/default.rb
@@ -1,5 +1,6 @@
default['god']['bin'] = '/usr/bin/god'
default['god']['init_style'] = 'runit'
+default['god']['install'] = true
default['god']['email']['from'] = 'god@'+node[:domain].to_s
default['god']['email']['contacts'] = [['dev', 'developers@'+node[:domain].to_s, 'developers']]
View
8 recipes/default.rb
@@ -17,9 +17,11 @@
# limitations under the License.
#
-gem_package "god" do
- action :install
- gem_binary "/usr/bin/gem"
+if node['god']['install']
+ gem_package "god" do
+ action :install
+ gem_binary "/usr/bin/gem"
+ end
end
directory "/etc/god/conf.d" do
Something went wrong with that request. Please try again.