Created
June 11, 2014 13:32
-
-
Save feniix/3f35aa4ca124e1b74825 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.require_version ">= 1.5.1" | |
Vagrant.configure("2") do |config| | |
config.vm.box = "dummy" | |
config.vm.provider "aws" do |aws, override| | |
aws.access_key_id = ENV['AWS_ACCESS_KEY_ID'] | |
aws.secret_access_key = ENV['AWS_SECRET_ACCESS_KEY'] | |
aws.keypair_name = "otaeguis" | |
aws.ami = "ami-018c9568" # trusty 64 PV | |
aws.instance_type = "m3.medium" | |
aws.region = "us-east-1" | |
aws.security_groups = [ 'jenkins' ] | |
aws.elb = "nexus-spantree-net" | |
aws.tags = { | |
'Name' => 'blue.spantree.net', | |
'Hostname' => 'blue', | |
'fqdn' => 'blue.spantree.net', | |
} | |
aws.block_device_mapping = [ | |
{ | |
'DeviceName' => '/dev/sda1', | |
'Ebs.VolumeSize' => 50 | |
}, | |
{ | |
'DeviceName' => '/dev/sdg', | |
'Ebs.VolumeSize' => 150 | |
} | |
] | |
aws.user_data = File.read("cloud-init.yaml") | |
override.ssh.username = "ubuntu" | |
override.ssh.private_key_path = "~/.ssh/id_rsa" | |
end | |
config.vm.synced_folder ".", "/usr/local/src/project", :create => "true" | |
config.vm.synced_folder "puppet", "/usr/local/etc/puppet", :create => "true" | |
config.vm.provision :shell, :path => "shell/initial-setup.sh", :args => "/vagrant/shell" | |
config.vm.provision :shell, :path => "shell/update-puppet.sh", :args => "/vagrant/shell" | |
config.vm.provision :shell, :path => "shell/librarian-puppet-vagrant.sh", :args => "/vagrant/shell" | |
config.vm.provision :puppet do |puppet| | |
puppet.manifests_path = "puppet/manifests" | |
puppet.options = [ | |
"--verbose", | |
"--debug", | |
"--modulepath=/etc/puppet/modules:/usr/local/etc/puppet/modules", | |
"--hiera_config /usr/local/src/project/hiera.yaml" | |
] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment