Created
April 14, 2014 22:42
-
-
Save stepkirk/10687914 to your computer and use it in GitHub Desktop.
My Vagrantfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat Vagrantfile | |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# Every Vagrant virtual environment requires a box to build off of. | |
config.vm.box = "dummy" | |
# Sync over srv/ to /srv/ | |
config.vm.synced_folder "srv/", "/srv/" | |
# Force vagrant to use a pty for provisioning | |
config.ssh.pty = true | |
config.vm.provider :aws do |aws, override| | |
aws.access_key_id = "SCRUBBED" | |
aws.secret_access_key = "SCRUBBED" | |
aws.keypair_name = "SCRUBBED" | |
aws.ami = "ami-SCRUBBED" | |
aws.instance_type = "t1.micro" | |
aws.region = "us-east-1" | |
aws.availability_zone = "us-east-1a" | |
aws.security_groups = [ 'sg-SCRUBBED' ] | |
aws.subnet_id = "subnet-SCRUBBED" | |
aws.tags = { | |
'Name' => 'salt', | |
'owner' => 'someone@somewhere.com', | |
'service' => 'mgmt', | |
'role' => 'mgmt', | |
'environment' => 'production', | |
'uptimehours' => '24', | |
'osplatform' => 'linux', | |
'backups' => 'no' | |
} | |
override.ssh.username = "ec2-user" | |
override.ssh.private_key_path = "/Users/someone/.ssh/someone-aws.pem" | |
# Salt Master | |
config.vm.provision :shell, path: "scripts/addsm2ddns.sh", args: "salt-use1a-prod" | |
config.vm.provision :shell, path: "scripts/saltmaster.sh" | |
config.vm.provision :salt do |salt| | |
salt.install_master = true | |
salt.install_type = "git" | |
salt.install_args = "v2014.1.1" | |
salt.minion_config = "salt/minion" | |
salt.master_config = "salt/master" | |
salt.run_highstate = false | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment