Skip to content

Instantly share code, notes, and snippets.

@swalberg
Last active December 19, 2015 20:49
Show Gist options
  • Save swalberg/6015995 to your computer and use it in GitHub Desktop.
Save swalberg/6015995 to your computer and use it in GitHub Desktop.
rbenv_gem "pg" do
ruby_version "2.0.0-p247"
options "--with-pg-config=/usr/pgsql-9.2/bin/pg_config"
end
================================================================================
Recipe Compile Error in /var/chef/cache/cookbooks/is-it-hacked/recipes/application_host.rb
================================================================================
Chef::Exceptions::ValidationFailed
----------------------------------
Option options must be a kind of Hash! You passed "--with-pg-config=/usr/pgsql-9.2/bin/pg_config".
Cookbook Trace:
---------------
/var/chef/cache/cookbooks/is-it-hacked/recipes/application_host.rb:15:in `block in from_file'
/var/chef/cache/cookbooks/is-it-hacked/recipes/application_host.rb:13:in `from_file'
Relevant File Content:
----------------------
/var/chef/cache/cookbooks/is-it-hacked/recipes/application_host.rb:
8:
9: rbenv_gem "bundler" do
10: ruby_version "2.0.0-p247"
11: end
12:
13: rbenv_gem "pg" do
14: ruby_version "2.0.0-p247"
15>> options "--with-pg-config=/usr/pgsql-9.2/bin/pg_config"
16: end
17:
18: group "isithacked" do
19: gid 542
20: end
21:
22: user "isithacked" do
23: comment "Is It Hacked application user"
24: gid 542
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment