Created
February 23, 2014 11:53
-
-
Save hyperfocus1338/9170406 to your computer and use it in GitHub Desktop.
Amazon AWS Vagrantfile
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
Vagrant.configure("2") do |config| | |
config.vm.box = "dummy" | |
config.vm.provider :aws do |aws, override| | |
override.ssh.username = "ubuntu" | |
override.ssh.private_key_path = "/path/to/ssh/key" | |
override.vm.box_url = "https://github.com/mitchellh/vagrant-aws/raw/master/dummy.box" | |
aws.access_key_id = "xxx" | |
aws.secret_access_key = "xxx" | |
aws.region_config "eu-west-1" do |region| | |
region.ami = "ami-480bea3f" | |
# region.aws_region = "eu-west-1" | |
region.instance_type = "t1.micro" | |
region.availability_zone = "eu-west-1c" | |
region.instance_ready_timeout = "120" | |
region.keypair_name = "keypair" | |
region.security_groups = "standard-settings" | |
# region.subnet_id = | |
# region.private_ip_address = | |
end | |
end | |
config.vm.provision "ansible" do |ansible| | |
# Start at certain task | |
# | |
# ansible.start_at_task = "install php-fpm" | |
# Testing configuration | |
# | |
# ansible.tags = "run" | |
# Basic | |
# | |
ansible.tags = "tag1", "tag2" | |
# General settings | |
# | |
# ansible.verbose = "v" | |
ansible.playbook = "site.yml" | |
ansible.inventory_path = "hosts" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment