Skip to content
This repository
Browse code

updated the recipe to use the dynamically returned public ip address …

…and to pull the fqdn from the dynect attributes
  • Loading branch information...
commit 83913c09f0c77e6d0c3b6b28c4f1c02461ebfb20 1 parent db16fff
Kevin Gray authored

Showing 1 changed file with 6 additions and 3 deletions. Show diff stats Hide diff stats

  1. +6 3 cookbooks/dynect/recipes/add_a_record.rb
9 cookbooks/dynect/recipes/add_a_record.rb
@@ -26,9 +26,12 @@
26 26 zone node[:dynect][:zone]
27 27
28 28 record_type "A"
29   - #rdata({ "address" => node[:ipaddress] })
30   - rdata({ "address" => "10.10.2.2"}) # address of the EC2 instance brought up (elastic ips)
31   - fqdn "#{node[:dynect][:fqdn]}" # reserve.dyntini.com
32 29
  30 + rdata({ "address" => node[:ec2][:public_ipv4] })
  31 + #rdata({ "address" => node[:ipaddress] })
  32 + #rdata({ "address" => "10.10.2.2"}) # address of the EC2 instance brought up (elastic ips)
  33 + #fqdn "#{node[:dynect][:fqdn]}" # reserve.dyntini.com
  34 + #fqdn "reserve.dyntini.com"
  35 + fqdn node[:dynect][:fqdn]
33 36 action :create
34 37 end

0 comments on commit 83913c0

Please sign in to comment.
Something went wrong with that request. Please try again.