Skip to content
Browse files

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

…and to pull the fqdn from the dynect attributes
  • Loading branch information...
1 parent db16fff commit 83913c09f0c77e6d0c3b6b28c4f1c02461ebfb20 Kevin Gray committed Oct 27, 2010
Showing with 6 additions and 3 deletions.
  1. +6 −3 cookbooks/dynect/recipes/add_a_record.rb
View
9 cookbooks/dynect/recipes/add_a_record.rb
@@ -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.
Something went wrong with that request. Please try again.