fuel-library/deployment/puppet/nailgun/templates/resolv.conf.erb
Alexei Sheplyakov 69fc891e27 Make DNS on the master node work even when cobbler is not running
Currently resolv.conf on the master node sets the master node itself
as the only DNS server. The requests are served by dnsmasq running in
the cobbler container. Thus name resolution does not work when cobbler
is not running (not ready yet, the container is being updated, docker
is being updated, etc). This breaks updates and other actions (such as
building bootstrap images) which need a working DNS. To solve the issue
add the upstream DNS servers to resolv.conf.

blueprint fuel-bootstrap-on-ubuntu

Change-Id: I16261d2eaf37c3f59f28a494d38ee72c6d3aa2d2
2015-07-18 10:19:46 +03:00

7 lines
154 B
Plaintext

search <%= @dns_search %>
domain <%= @dns_domain %>
nameserver <%= @cobbler_host %>
<%- @dns_upstream.each do |dns| -%>
nameserver <%= dns %>
<%- end -%>