Skip to content

Instantly share code, notes, and snippets.

@jcockhren
Created November 18, 2015 23:13
Show Gist options
  • Save jcockhren/2ed36558c37c98638230 to your computer and use it in GitHub Desktop.
Save jcockhren/2ed36558c37c98638230 to your computer and use it in GitHub Desktop.
Files for demonstrating Issue #6073 doesn't solve all our problems

To reproduce the problem mentioned in the description of Issue #6382 and it's comments do the following:

Included

  • Vagrantfile
  • minion config (placed in a directory salt/)
  • top.sls (placed in a directory salt/states/)
  • something.sls (placed in directory salt/states/; used to prove that a even the most trivial of states won't run)

Assumptions

  1. You should have a directory called salt which contains a states subdirectory and the minion config file provided below. The Synced Folder setting in the Vagrantfile requires it.
  2. You should have top.sls and something.sls in the salt/states/ subdirectory as stated in the section above.
file_client: local
htop:
pkg.installed
base:
'*':
- something
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.box_check_update = false
config.vm.synced_folder "salt/states/", "/srv/salt/"
config.vm.provider "virtualbox" do |vb|
vb.memory = "1024"
end
config.vm.provision :salt do |salt|
salt.minion_config = 'salt/minion'
salt.run_highstate = true
salt.install_args = 'git v2015.5.5'
salt.verbose = true
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment