mirror of
https://github.com/jbowdre/vagrant-saltlab.git
synced 2024-11-30 08:32:17 +00:00
auto-accept minion keys because lab
This commit is contained in:
parent
0861131c95
commit
e5622ca798
1 changed files with 6 additions and 3 deletions
9
salt/Vagrantfile
vendored
9
salt/Vagrantfile
vendored
|
@ -17,9 +17,12 @@ Vagrant.configure("2") do |config|
|
|||
sudo apt-get update
|
||||
sudo apt-get install curl vim -y
|
||||
curl -o bootstrap-salt.sh -L https://bootstrap.saltproject.io
|
||||
sudo sh bootstrap-salt.sh -M
|
||||
sudo systemctl start salt-master
|
||||
sudo systemctl start salt-minion
|
||||
sh bootstrap-salt.sh -M -X
|
||||
sed -i 's|^#auto_accept:.*$|auto_accept: True|' /etc/salt/master
|
||||
systemctl start salt-master
|
||||
systemctl start salt-minion
|
||||
sleep 5
|
||||
systemctl restart salt-master
|
||||
SHELL
|
||||
end
|
||||
config.vm.define "minion01" do |minion01|
|
||||
|
|
Loading…
Reference in a new issue