lib/testlab/node/bind.rb in testlab-0.1.0 vs lib/testlab/node/bind.rb in testlab-0.2.0
- old
+ new
@@ -77,12 +77,14 @@
end
end
def bind_install
self.ssh.exec(%(sudo apt-get -y install bind9))
+ self.ssh.exec(%(sudo rm -fv /etc/bind/{*.arpa,*.zone,*.conf*}))
end
def bind_reload
+ self.ssh.exec(%(sudo chown -Rv bind:bind /etc/bind))
self.ssh.exec(%(sudo rndc reload))
end
def bind_setup
bind_install