mirror of
https://gitlab.com/tildes/tildes.git
synced 2026-04-16 14:28:32 +02:00
The new version of Salt ("3000") seems to have a number of bugs,
including not being able to handle "unless" checks, which the Tildes
states use frequently. Because of this, creating a new dev environment
currently doesn't work. This pins Salt to the previous stable version
for now.
Here's the relevant bug for "unless" specifically:
https://github.com/saltstack/salt/issues/56131
And the overall release notes:
https://docs.saltstack.com/en/latest/topics/releases/3000.html
36 lines
925 B
Ruby
36 lines
925 B
Ruby
# -*- mode: ruby -*-
|
|
# vi: set ft=ruby :
|
|
|
|
VAGRANT_CONFIG_VERSION = "2"
|
|
|
|
Vagrant.configure(VAGRANT_CONFIG_VERSION) do |config|
|
|
config.vm.box = "ubuntu/xenial64"
|
|
|
|
# Main application folder
|
|
config.vm.synced_folder "tildes/", "/opt/tildes/"
|
|
|
|
# Mount the salt file root and pillar root
|
|
config.vm.synced_folder "salt/salt/", "/srv/salt/"
|
|
config.vm.synced_folder "salt/pillar/", "/srv/pillar/"
|
|
|
|
config.vm.network "forwarded_port", guest: 443, host: 4443
|
|
config.vm.network "forwarded_port", guest: 9090, host: 9090
|
|
|
|
# Masterless salt provisioning
|
|
config.vm.provision :salt do |salt|
|
|
salt.masterless = true
|
|
salt.minion_config = "salt/minion"
|
|
salt.run_highstate = true
|
|
salt.verbose = true
|
|
salt.log_level = "info"
|
|
|
|
salt.install_type = "stable"
|
|
salt.version = "2019.2.3"
|
|
end
|
|
|
|
config.vm.provider "virtualbox" do |vb|
|
|
vb.memory = "4096"
|
|
vb.cpus = "4"
|
|
end
|
|
end
|