Skip to content

Instantly share code, notes, and snippets.

@tknerr
Forked from ranjib/org1-prod.rb
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tknerr/10144b379b88b6f5de2f to your computer and use it in GitHub Desktop.
Save tknerr/10144b379b88b6f5de2f to your computer and use it in GitHub Desktop.
# located at chef_repo/environments/org1-prod.rb
require 'deep_merge'
name 'org1-prod'
description 'Production environment for org1'
org1_yml_path = File.expand_path('../common/org1.yml', __FILE__)
common = YAML.load_file(org1_yml_path)
default_attributes(
common['default'].deep_merge!(
# declare all you org1-prod specific things here.
'x' => 1,
'y' => 2
)
)
# located at chef_repo/emvironments/common/org1.yml
--
default:
org1:
bar: baz
strange: [1, 2, 3]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment