Skip to content

Instantly share code, notes, and snippets.

@ampledata
Created January 24, 2014 19:08
Show Gist options
  • Select an option

  • Save ampledata/8603931 to your computer and use it in GitHub Desktop.

Select an option

Save ampledata/8603931 to your computer and use it in GitHub Desktop.
ok, trying to come up with a strategy here. I need to setup a subdomain for staging, based on your suggestion here's what I'm thinking:
dns_rr_creator 'create DNS RR for our server based on env' do
rr [node.chef_environment, node['site']].join('.')
ip node['ip_address']
end
@miah
Copy link
Copy Markdown

miah commented Jan 24, 2014

Ya, thats basically what I've done too. The only tricky part is 'ip_address' as that can be.. a pain especially if you are on EC2 or Rackspace. You need to make sure you pick the right one =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment