From f71b5f32292406030b6bcba11b799495db50710a Mon Sep 17 00:00:00 2001 From: downtownallday Date: Thu, 22 Sep 2022 11:10:16 -0400 Subject: [PATCH] Add additional vagrant definition that automatically connects to a cloudinabox --- tests/vagrant/vanilla/Vagrantfile | 44 +++++++++++++++++++++++++++---- 1 file changed, 39 insertions(+), 5 deletions(-) diff --git a/tests/vagrant/vanilla/Vagrantfile b/tests/vagrant/vanilla/Vagrantfile index 062ce542..538c5e9c 100644 --- a/tests/vagrant/vanilla/Vagrantfile +++ b/tests/vagrant/vanilla/Vagrantfile @@ -15,10 +15,44 @@ Vagrant.configure("2") do |config| config.vm.network "public_network", bridge: "#$default_network_interface" use_preloaded_box config, "ubuntu/jammy64", ".." - # vanilla install + if ENV['tests']=='ciab' - config.vm.define "vanilla" do |m1| - m1.vm.provision :shell, :inline => <<-SH + # vanilla connected to ciab (ciab does not need to be up) + + config.vm.define "vanilla" do |m1| + m1.vm.provision :shell, :inline => <<-SH +cat >/tmp/provision.sh </dev/null; then + # firewall rules aren't added when ciab is down + # allow ldaps from anywhere + ufw allow ldaps +fi +EOF +chmod +x /tmp/provision.sh +/tmp/provision.sh +SH + end # vanilla connected to ciab + + else + + + # vanilla (default) install + + config.vm.define "vanilla" do |m1| + m1.vm.provision :shell, :inline => <<-SH cat >/tmp/provision.sh <