Commit 102e630c authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Add the value of NAMED_FORWARDERS to /etc/resolv.conf so that

ops will boot more quickly if boss is also booting or not booted
parent ba26e8ea
......@@ -92,6 +92,22 @@ sub Install($$$)
UpdateFileFatal($RCCONF, \@patterns, @strings);
# Add named forwarders to resolv.conf to avoid failures
# during boot.
if (defined($configvars{"NAMED_FORWARDERS"})) {
my $forwarders = $configvars{"NAMED_FORWARDERS"};
my @forwarders = split(/\s+/, $forwarders);
if (@forwarders) {
@forwarders = map {"nameserver $_"} @forwarders;
Phase "resolve", "Adding named forwarders to resolv.conf", sub {
AppendToFileFatal($RESOLVECONF, @forwarders);
PhaseSucceed("Rack Setup Done");
return 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment