Skip to content

Instantly share code, notes, and snippets.

@mikeywaites
Created February 14, 2014 17:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikeywaites/cc97bd24637e141f40b9 to your computer and use it in GitHub Desktop.
Save mikeywaites/cc97bd24637e141f40b9 to your computer and use it in GitHub Desktop.
vagrant ssh
$ sudo salt-call state.highstate
#errors out on a known typo in an sls file for testing purposes
# Force no master (bug in 1.10.5)
master: ""
user: root
# File Roots
file_client: local
file_roots:
base:
- /srv/salt/states/
$ vagrant provision
[default] Configuring and enabling network interfaces...
[default] Mounting shared folders...
[default] -- /vagrant
[default] -- /srv/salt
[default] Running provisioner: salt...
Copying salt minion config to vm.
Checking if salt-minion is installed
salt-minion found
Checking if salt-call is installed
salt-call found
Salt binaries found. Configuring only.
Salt successfully configured!
run_overstate set to false. Not running state.overstate.
Calling state.highstate... (this may take a while)
.
├── README.md
├── Vagrantfile
├── bin
│   └── install.sh
└── salt
├── config
│   └── minion.conf
├── pillars
│   └── top.sls
└── states
├── core
│   └── init.sls
├── pip
│   ├── config.sls
│   ├── files
│   │   └── pip.conf
│   ├── init.sls
│   ├── install.sls
│   └── macro.sls
├── python
│   ├── init.sls
│   └── install.sls
├── python-software-properties
│   ├── init.sls
│   └── install.sls
├── top.sls
├── vim
│   └── init.sls
└── virtualenv
├── init.sls
└── install.sls
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Requires Vagrant 1.4+
Vagrant.require_version ">= 1.4.0", "< 1.5.0"
# Plugin Dependencies
Vagrant.require_plugin "vagrant-vbguest" # Auto Installs Guest Additions
Vagrant.configure("2") do |config|
## Choose your base box
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.network :private_network, ip: "10.10.10.10"
config.vm.provider :virtualbox do |v|
v.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"]
end
config.vm.synced_folder "./salt", "/srv/salt"
config.vm.provision :salt do |s|
s.run_highstate = true # Always run the Salt provisioning system
s.minion_config = "salt/config/minion.conf" # Where the minion config lives
s.install_type = "stable"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment