diff options
Diffstat (limited to 'test/security/k8s/vagrant')
-rw-r--r-- | test/security/k8s/vagrant/dublin/Vagrantfile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/security/k8s/vagrant/dublin/Vagrantfile b/test/security/k8s/vagrant/dublin/Vagrantfile index ef4d42b14..148903773 100644 --- a/test/security/k8s/vagrant/dublin/Vagrantfile +++ b/test/security/k8s/vagrant/dublin/Vagrantfile @@ -79,6 +79,7 @@ $link_cluster_yml = <<-SCRIPT SCRIPT $rke_up = "rke up" +$rke_down = "rke remove --force" Vagrant.configure('2') do |config| all.each do |machine| @@ -145,6 +146,10 @@ Vagrant.configure('2') do |config| config.vm.post_up_message = operation_post_msg config.vm.provision "rke_up", type: :shell, run: "never", privileged: false, inline: $rke_up + config.trigger.before :destroy do |trigger| + trigger.warn = "Removing cluster" + trigger.run_remote = {privileged: false, inline: $rke_down} + end end end end |