aboutsummaryrefslogtreecommitdiffstats
path: root/test/security/k8s/vagrant/dublin/Vagrantfile
diff options
context:
space:
mode:
Diffstat (limited to 'test/security/k8s/vagrant/dublin/Vagrantfile')
-rw-r--r--test/security/k8s/vagrant/dublin/Vagrantfile11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/security/k8s/vagrant/dublin/Vagrantfile b/test/security/k8s/vagrant/dublin/Vagrantfile
index abef9f8a1..e7fe6b1ec 100644
--- a/test/security/k8s/vagrant/dublin/Vagrantfile
+++ b/test/security/k8s/vagrant/dublin/Vagrantfile
@@ -16,6 +16,12 @@ cluster = [
all = cluster.dup << operation
+$link_dotfiles = <<-SCRIPT
+ for rc in /vagrant/dot_*; do
+ ln -sf "$rc" "${HOME}/.${rc##*dot_}"
+ done
+SCRIPT
+
Vagrant.configure('2') do |config|
all.each do |machine|
config.vm.define machine[:name] do |config|
@@ -50,6 +56,11 @@ Vagrant.configure('2') do |config|
end
if machine[:name] == 'operator'
+ config.vm.synced_folder "../../tools/config", "/vagrant", type: "rsync"
+
+ config.vm.provision :shell, run: "always", inline: $link_dotfiles
+ config.vm.provision :shell, run: "always", privileged: false, inline: $link_dotfiles
+
config.vm.provision :shell, path: "../../tools/dublin/get_rke.sh"
config.vm.provision :shell, inline: <<-SHELL