Skip to content

Instantly share code, notes, and snippets.

@matschaffer
Last active December 10, 2015 12:08
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save matschaffer/4432046 to your computer and use it in GitHub Desktop.
solo_path = File.dirname(__FILE__)
knife[:solo_path] = solo_path
data_bag_path File.join(solo_path, 'data_bags')
encrypted_data_bag_secret File.join(solo_path, 'data_bag_key')
cookbook_path [ File.join(solo_path, "site-cookbooks"),
File.join(solo_path, "cookbooks") ]
role_path File.join(solo_path, "roles")
solo_path = "~/chef_solo"
knife[:solo_path] = solo_path
data_bag_path File.expand_path(File.join(solo_path, 'data_bags'))
encrypted_data_bag_secret File.expand_path(File.join(solo_path, 'data_bag_key'))
cookbook_path [ File.expand_path(File.join(solo_path, "site-cookbooks")),
File.expand_path(File.join(solo_path, "cookbooks")) ]
role_path File.expand_path(File.join(solo_path, "roles"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment