install vim on all salt nodes

This commit is contained in:
John Bowdre 2023-03-23 15:13:05 -05:00
parent 8287448fd4
commit 0861131c95

8
salt/Vagrantfile vendored
View file

@ -15,7 +15,7 @@ Vagrant.configure("2") do |config|
end end
salt.vm.provision "shell", inline: <<-SHELL salt.vm.provision "shell", inline: <<-SHELL
sudo apt-get update sudo apt-get update
sudo apt-get install curl -y sudo apt-get install curl vim -y
curl -o bootstrap-salt.sh -L https://bootstrap.saltproject.io curl -o bootstrap-salt.sh -L https://bootstrap.saltproject.io
sudo sh bootstrap-salt.sh -M sudo sh bootstrap-salt.sh -M
sudo systemctl start salt-master sudo systemctl start salt-master
@ -28,7 +28,7 @@ Vagrant.configure("2") do |config|
minion01.vm.network "private_network", ip: "192.168.100.121" minion01.vm.network "private_network", ip: "192.168.100.121"
minion01.vm.provision "shell", inline: <<-SHELL minion01.vm.provision "shell", inline: <<-SHELL
sudo apt-get update sudo apt-get update
sudo apt-get install curl -y sudo apt-get install curl vim -y
curl -o bootstrap-salt.sh -L https://bootstrap.saltproject.io curl -o bootstrap-salt.sh -L https://bootstrap.saltproject.io
sudo sh bootstrap-salt.sh -A 192.168.100.120 sudo sh bootstrap-salt.sh -A 192.168.100.120
sudo systemctl start salt-minion sudo systemctl start salt-minion
@ -40,7 +40,7 @@ Vagrant.configure("2") do |config|
minion02.vm.network "private_network", ip: "192.168.100.122" minion02.vm.network "private_network", ip: "192.168.100.122"
minion02.vm.provision "shell", inline: <<-SHELL minion02.vm.provision "shell", inline: <<-SHELL
sudo apt-get update sudo apt-get update
sudo apt-get install curl -y sudo apt-get install curl vim -y
curl -o bootstrap-salt.sh -L https://bootstrap.saltproject.io curl -o bootstrap-salt.sh -L https://bootstrap.saltproject.io
sudo sh bootstrap-salt.sh -A 192.168.100.120 sudo sh bootstrap-salt.sh -A 192.168.100.120
sudo systemctl start salt-minion sudo systemctl start salt-minion
@ -51,6 +51,7 @@ Vagrant.configure("2") do |config|
minion03.vm.hostname = "minion03" minion03.vm.hostname = "minion03"
minion03.vm.network "private_network", ip: "192.168.100.123" minion03.vm.network "private_network", ip: "192.168.100.123"
minion03.vm.provision "shell", inline: <<-SHELL minion03.vm.provision "shell", inline: <<-SHELL
sudo yum install vim -y
curl -o bootstrap-salt.sh -L https://bootstrap.saltproject.io curl -o bootstrap-salt.sh -L https://bootstrap.saltproject.io
sudo sh bootstrap-salt.sh -A 192.168.100.120 sudo sh bootstrap-salt.sh -A 192.168.100.120
sudo systemctl start salt-minion sudo systemctl start salt-minion
@ -61,6 +62,7 @@ Vagrant.configure("2") do |config|
minion04.vm.hostname = "minion04" minion04.vm.hostname = "minion04"
minion04.vm.network "private_network", ip: "192.168.100.124" minion04.vm.network "private_network", ip: "192.168.100.124"
minion04.vm.provision "shell", inline: <<-SHELL minion04.vm.provision "shell", inline: <<-SHELL
sudo yum install vim -y
curl -o bootstrap-salt.sh -L https://bootstrap.saltproject.io curl -o bootstrap-salt.sh -L https://bootstrap.saltproject.io
sudo sh bootstrap-salt.sh -A 192.168.100.120 sudo sh bootstrap-salt.sh -A 192.168.100.120
sudo systemctl start salt-minion sudo systemctl start salt-minion