2013-02-04 10:02:41 +04:00
|
|
|
# -*- mode: ruby -*-
|
|
|
|
# vi: set ft=ruby :
|
|
|
|
|
2013-03-22 04:23:23 +04:00
|
|
|
def v10(config)
|
2013-03-12 23:05:04 +04:00
|
|
|
config.vm.box = "quantal64_3.5.0-25"
|
|
|
|
config.vm.box_url = "http://get.docker.io/vbox/ubuntu/12.10/quantal64_3.5.0-25.box"
|
2013-02-04 10:02:41 +04:00
|
|
|
|
2013-03-28 03:19:30 +04:00
|
|
|
config.vm.share_folder "v-data", "/opt/go/src/github.com/dotcloud/docker", File.dirname(__FILE__)
|
2013-02-04 10:02:41 +04:00
|
|
|
|
2013-03-22 19:28:51 +04:00
|
|
|
# Ensure puppet is installed on the instance
|
|
|
|
config.vm.provision :shell, :inline => "apt-get -qq update; apt-get install -y puppet"
|
|
|
|
|
2013-02-04 10:02:41 +04:00
|
|
|
config.vm.provision :puppet do |puppet|
|
|
|
|
puppet.manifests_path = "puppet/manifests"
|
|
|
|
puppet.manifest_file = "quantal64.pp"
|
|
|
|
puppet.module_path = "puppet/modules"
|
|
|
|
end
|
|
|
|
end
|
2013-03-15 08:22:07 +04:00
|
|
|
|
2013-03-28 03:19:30 +04:00
|
|
|
Vagrant::VERSION < "1.1.0" and Vagrant::Config.run do |config|
|
2013-03-22 04:23:23 +04:00
|
|
|
v10(config)
|
|
|
|
end
|
|
|
|
|
2013-03-28 03:19:30 +04:00
|
|
|
Vagrant::VERSION >= "1.1.0" and Vagrant.configure("1") do |config|
|
2013-03-22 04:23:23 +04:00
|
|
|
v10(config)
|
|
|
|
end
|
|
|
|
|
2013-03-28 03:19:30 +04:00
|
|
|
Vagrant::VERSION >= "1.1.0" and Vagrant.configure("2") do |config|
|
2013-03-15 08:22:07 +04:00
|
|
|
config.vm.provider :aws do |aws|
|
2013-03-22 09:26:18 +04:00
|
|
|
config.vm.box = "dummy"
|
|
|
|
config.vm.box_url = "https://github.com/mitchellh/vagrant-aws/raw/master/dummy.box"
|
2013-03-15 08:22:07 +04:00
|
|
|
aws.access_key_id = ENV["AWS_ACCESS_KEY_ID"]
|
2013-03-22 09:26:18 +04:00
|
|
|
aws.secret_access_key = ENV["AWS_SECRET_ACCESS_KEY"]
|
|
|
|
aws.keypair_name = ENV["AWS_KEYPAIR_NAME"]
|
|
|
|
aws.ssh_private_key_path = ENV["AWS_SSH_PRIVKEY"]
|
|
|
|
aws.region = "us-east-1"
|
2013-03-27 05:41:47 +04:00
|
|
|
aws.ami = "ami-ae9806c7"
|
2013-03-26 21:40:56 +04:00
|
|
|
aws.ssh_username = "ubuntu"
|
2013-03-22 09:26:18 +04:00
|
|
|
aws.instance_type = "t1.micro"
|
2013-03-15 08:22:07 +04:00
|
|
|
end
|
2013-03-27 05:41:47 +04:00
|
|
|
|
2013-03-22 19:28:51 +04:00
|
|
|
config.vm.provider :rackspace do |rs|
|
2013-03-24 14:16:50 +04:00
|
|
|
config.vm.box = "dummy"
|
|
|
|
config.vm.box_url = "https://github.com/mitchellh/vagrant-rackspace/raw/master/dummy.box"
|
|
|
|
config.ssh.private_key_path = ENV["RS_PRIVATE_KEY"]
|
|
|
|
rs.username = ENV["RS_USERNAME"]
|
|
|
|
rs.api_key = ENV["RS_API_KEY"]
|
2013-03-28 03:19:30 +04:00
|
|
|
rs.public_key_path = ENV["RS_PUBLIC_KEY"]
|
2013-03-24 14:16:50 +04:00
|
|
|
rs.flavor = /512MB/
|
|
|
|
rs.image = /Ubuntu/
|
2013-03-28 03:19:30 +04:00
|
|
|
end
|
2013-03-27 05:41:47 +04:00
|
|
|
|
2013-03-15 08:22:07 +04:00
|
|
|
config.vm.provider :virtualbox do |vb|
|
2013-03-22 09:26:18 +04:00
|
|
|
config.vm.box = "quantal64_3.5.0-25"
|
|
|
|
config.vm.box_url = "http://get.docker.io/vbox/ubuntu/12.10/quantal64_3.5.0-25.box"
|
|
|
|
end
|
2013-03-15 08:22:07 +04:00
|
|
|
end
|