Skip to content

Instantly share code, notes, and snippets.

@imduffy15
Created March 8, 2014 05:41
Show Gist options
  • Save imduffy15/9425879 to your computer and use it in GitHub Desktop.
Save imduffy15/9425879 to your computer and use it in GitHub Desktop.
Vagrant.configure("2") do |config|
config.vm.box = "dummy"
config.vm.provider :aws do |aws, override|
aws.access_key_id = "api-key"
aws.secret_access_key = "secret-key"
aws.keypair_name = "demo"
aws.endpoint = "http://localhost:5000/"
aws.ami = "c34bf3f0-318b-4d77-b0ca-f20585d05d32"
aws.user_data = "#!/bin/bash\nsed -i -e 's/Defaults requiretty/#Defaults requiretty/g' /etc/sudoers"
aws.security_groups = ["default", "demo"]
override.ssh.username = "root"
override.ssh.private_key_path = "~/.ssh/id_rsa.cloud"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment