Skip to content

Instantly share code, notes, and snippets.

@h0jeZvgoxFepBQ2C
Created April 30, 2015 10:03
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 h0jeZvgoxFepBQ2C/fa38328d1d550d53432e to your computer and use it in GitHub Desktop.
Save h0jeZvgoxFepBQ2C/fa38328d1d550d53432e to your computer and use it in GitHub Desktop.
# salt --versions-report
Salt: 2015.2.0rc2-203-g0407892
Python: 2.7.9 (default, Jan 7 2015, 11:50:42)
Jinja2: 2.7.3
M2Crypto: 0.22
msgpack-python: 0.4.6
msgpack-pure: 0.1.3
pycrypto: 2.6.1
libnacl: Not Installed
PyYAML: 3.11
ioflo: 1.2.1
PyZMQ: 14.6.0
RAET: Not Installed
ZMQ: 4.0.5
Mako: 1.0.1
# vagrant file
# -*- mode: ruby -*-
Vagrant.configure(2) do |config|
config.vm.box = "precise64"
config.vm.hostname = "minion1"
config.vm.network :private_network, ip: "192.168.33.10"
config.vm.provider "virtualbox" do |vb|
vb.memory = "2048"
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
end
config.vm.provision :salt do |salt|
salt.run_highstate = true
salt.minion_config = "./minion1.conf"
salt.minion_key = "./minion1.pem"
salt.minion_pub = "./minion1.pub"
salt.colorize = true
end
end
# minion1.conf
file_client: remote
master: 10.0.2.2
# test.sls
curl:
pkg:
- installed
test_tmp:
file.directory:
- name: /tmp/couchdb
- makedirs: True
test_source:
archive.extracted:
- name: /tmp/couchdb
- source: 'https://www.apache.org/dist/couchdb/source/1.5.1/apache-couchdb-1.5.1.tar.gz'
- source_hash: 'https://www.apache.org/dist/couchdb/source/1.5.1/apache-couchdb-1.5.1.tar.gz.md5'
- archive_format: tar
- if_missing: /tmp/couchdb/apache-couchdb-1.5.1
- tar_options: zv
- require:
- file: test_tmp
- pkg: curl
# top.sls
base:
'minion1':
- test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment