Skip to content

Commit

Permalink
updated the recipe to use the dynamically returned public ip address …
Browse files Browse the repository at this point in the history
…and to pull the fqdn from the dynect attributes
  • Loading branch information
Kevin Gray committed Oct 27, 2010
1 parent db16fff commit 83913c0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions cookbooks/dynect/recipes/add_a_record.rb
Expand Up @@ -26,9 +26,12 @@
zone node[:dynect][:zone]

record_type "A"
#rdata({ "address" => node[:ipaddress] })
rdata({ "address" => "10.10.2.2"}) # address of the EC2 instance brought up (elastic ips)
fqdn "#{node[:dynect][:fqdn]}" # reserve.dyntini.com

rdata({ "address" => node[:ec2][:public_ipv4] })
#rdata({ "address" => node[:ipaddress] })
#rdata({ "address" => "10.10.2.2"}) # address of the EC2 instance brought up (elastic ips)
#fqdn "#{node[:dynect][:fqdn]}" # reserve.dyntini.com
#fqdn "reserve.dyntini.com"
fqdn node[:dynect][:fqdn]
action :create
end

0 comments on commit 83913c0

Please sign in to comment.