-
- # This is suitable for AWS; see common section below for a static example.
- compute_node_nameservers: <%=
- require 'net/http'
- ['local', 'public'].collect do |iface|
- Net::HTTP.get(URI("http://169.254.169.254/latest/meta-data/#{iface}-ipv4")).match(/^[\d\.]+$/)[0]
- end << '172.16.0.23'
- %>