Vagrant Updates:
* add Vagrant temp files to .gitignore * Update Vagrant Basebox to bento/ubuntu-18.04 (bento images deliver better Vagrant integration) * Update Vagrant setup-salt.sh to use the current salt bootstrap script.
This commit is contained in:
parent
1c03133e34
commit
78048d88b2
4
.gitignore
vendored
4
.gitignore
vendored
@ -120,3 +120,7 @@ docs/*.md
|
|||||||
Dockerfile.*_*
|
Dockerfile.*_*
|
||||||
ignore/
|
ignore/
|
||||||
tmp/
|
tmp/
|
||||||
|
|
||||||
|
#Vagrant Specific files
|
||||||
|
.vagrant
|
||||||
|
top.sls
|
2
Vagrantfile
vendored
2
Vagrantfile
vendored
@ -7,7 +7,7 @@
|
|||||||
VAGRANTFILE_API_VERSION = '2'
|
VAGRANTFILE_API_VERSION = '2'
|
||||||
|
|
||||||
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
||||||
config.vm.box = 'ubuntu/trusty64'
|
config.vm.box = 'bento/ubuntu-18.04'
|
||||||
config.vm.hostname = 'salt'
|
config.vm.hostname = 'salt'
|
||||||
config.vm.synced_folder './', '/srv/salt', id: 'vagrant-root'
|
config.vm.synced_folder './', '/srv/salt', id: 'vagrant-root'
|
||||||
|
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# use the latest stable Salt from repo.saltstack.com
|
curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com
|
||||||
wget -O - https://repo.saltstack.com/apt/ubuntu/14.04/amd64/latest/SALTSTACK-GPG-KEY.pub | sudo apt-key add -
|
sudo sh bootstrap-salt.sh stable
|
||||||
echo 'deb http://repo.saltstack.com/apt/ubuntu/14.04/amd64/latest trusty main' | sudo tee /etc/apt/sources.list.d/saltstack.list
|
|
||||||
|
|
||||||
sudo apt-get update -y
|
sudo apt-get update -y
|
||||||
sudo apt-get install salt-master -y
|
sudo apt-get install salt-master -y
|
||||||
@ -13,6 +12,6 @@ sudo ln -s /srv/salt/pillar.example /srv/pillar/salt.sls
|
|||||||
sudo ln -s /srv/salt/dev/pillar_top.sls /srv/pillar/top.sls
|
sudo ln -s /srv/salt/dev/pillar_top.sls /srv/pillar/top.sls
|
||||||
# this file will be copied to make a running config. it should not be checked in.
|
# this file will be copied to make a running config. it should not be checked in.
|
||||||
sudo cp /srv/salt/dev/state_top.sls /srv/salt/top.sls
|
sudo cp /srv/salt/dev/state_top.sls /srv/salt/top.sls
|
||||||
# Accept all keys#
|
|
||||||
sleep 15 #give the minion a few seconds to register
|
sleep 15 #give the minion a few seconds to register
|
||||||
|
# Accept all keys#
|
||||||
sudo salt-key -y -A
|
sudo salt-key -y -A
|
||||||
|
Loading…
Reference in New Issue
Block a user