lib/testlab/provisioners/bind.rb in testlab-1.0.0 vs lib/testlab/provisioners/bind.rb in testlab-1.0.1

- old
+ new

@@ -30,10 +30,20 @@ bind_provision(node) true end + # Bind: Node Deprovision + # + # @param [TestLab::Node] node The node which we want to deprovision. + # @return [Boolean] True if successful. + def on_node_deprovision(node) + node.ssh.exec(%(DEBIAN_FRONTEND="noninteractive" sudo apt-get -y purge bind9)) + + true + end + # Bind: Network Up # # @param [TestLab::Network] network The network that is being onlined. # @return [Boolean] True if successful. def on_network_up(network) @@ -118,10 +128,10 @@ build_bind_zone_partial(ssh, file) end end def bind_install(ssh) - ssh.exec(%(sudo apt-get -y install bind9)) + ssh.exec(%(DEBIAN_FRONTEND="noninteractive" sudo apt-get -y install bind9)) ssh.exec(%(sudo rm -fv /etc/bind/{*.arpa,*.zone,*.conf*})) end def bind_reload(node) node.ssh.exec(%(sudo chown -Rv bind:bind /etc/bind))