Skip to content

Instantly share code, notes, and snippets.

@zelig
Created February 12, 2014 23:09
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 zelig/8966410 to your computer and use it in GitHub Desktop.
Save zelig/8966410 to your computer and use it in GitHub Desktop.
$ vagrant --version
Vagrant 1.4.3
$ vagrant box list
example (aws)
juicer-core (aws)
ubuntu (virtualbox)
$ cat Vagrantfile
# -*_ mode: ruby _*_
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "juicer-core"
config.vm.provider :aws do |aws, override|
aws.access_key_id = ENV['AWS_ACCESS_KEY_ID']
aws.secret_access_key = ENV['AWS_SECRET_KEY']
aws.security_groups = [ ENV['AWS_SECURITY_GROUP'] ]
aws.keypair_name = ENV['AWS_KEYPAIR_NAME']
override.ssh.username = "ubuntu"
override.ssh.private_key_path = ENV['AWS_PRIVATE_KEY_FILE']
end
config.vm.provision :puppet do |puppet|
puppet.options = '--verbose'
puppet.module_path = 'puppet/modules'
puppet.manifests_path = 'puppet/manifests'
puppet.manifest_file = 'juicer-core.pp'
end
config.vm.synced_folder "synced_share/", "/synced_share/", mount_options: ["dmode=777,fmode=666"]
end
$ vagrant up --provider=aws
An active machine was found with a different provider. Vagrant
currently allows each machine to be brought up with only a single
provider at a time. A future version will remove this limitation.
Until then, please destroy the existing machine to up with a new
provider.
Machine name: default
Active provider: virtualbox
Requested provider: aws
$ vagrant up juicer-core --provider=aws
The machine with the name 'juicer-core' was not found configured for
this Vagrant environment.
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
There are errors in the configuration of this machine. Please fix
the following errors and try again:
vm:
* The box 'juicer-core' could not be found.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment