Sha256: 9035404fd014c4274d575ae88d8d2839183f0a88f7922cae5701bb96e0e73230

Contents?: true

Size: 529 Bytes

Versions: 19

Compression:

Stored size: 529 Bytes

Contents

dpkg --status bind9 &> /dev/null || <%= (@resolv[:object] == :container).inspect %>

cat <<EOF | tee /etc/resolv.conf
<%= ZTK::Template.do_not_edit_notice(:message => "TestLab Resolv Provisioner") %>
<% if !@resolv[:domain].nil? -%>
domain <%= @resolv[:domain] %>
<% end -%>
<% if !@resolv[:search].nil? -%>
search <%= @resolv[:search].flatten.compact.uniq.join(' ') %>
<% end -%>
<% if !@resolv[:servers].nil? -%>
<% @resolv[:servers].flatten.compact.uniq.each do |server| -%>
nameserver <%= server %>
<% end -%>
<% end -%>
EOF

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
testlab-1.22.4 lib/testlab/provisioners/templates/resolv/provision.erb
testlab-1.22.3 lib/testlab/provisioners/templates/resolv/provision.erb
testlab-1.22.2 lib/testlab/provisioners/templates/resolv/provision.erb
testlab-1.22.1 lib/testlab/provisioners/templates/resolv/provision.erb
testlab-1.22.0 lib/testlab/provisioners/templates/resolv/provision.erb
testlab-1.21.1 lib/testlab/provisioners/templates/resolv/provision.erb
testlab-1.21.0 lib/testlab/provisioners/templates/resolv/provision.erb
testlab-1.20.6 lib/testlab/provisioners/templates/resolv/provision.erb
testlab-1.20.5 lib/testlab/provisioners/templates/resolv/provision.erb
testlab-1.20.4 lib/testlab/provisioners/templates/resolv/provision.erb
testlab-1.20.3 lib/testlab/provisioners/templates/resolv/provision.erb
testlab-1.20.2 lib/testlab/provisioners/templates/resolv/provision.erb
testlab-1.20.1 lib/testlab/provisioners/templates/resolv/provision.erb
testlab-1.20.0 lib/testlab/provisioners/templates/resolv/provision.erb
testlab-1.19.0 lib/testlab/provisioners/templates/resolv/provision.erb
testlab-1.18.1 lib/testlab/provisioners/templates/resolv/provision.erb
testlab-1.18.0 lib/testlab/provisioners/templates/resolv/provision.erb
testlab-1.17.0 lib/testlab/provisioners/templates/resolv/provision.erb
testlab-1.16.1 lib/testlab/provisioners/templates/resolv/provision.erb