-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile
31 lines (28 loc) · 1.13 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
VAGRANTFILE_API_VERSION = '2'
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = 'azure'
config.vm.network "public_network"
config.vm.network "private_network",ip: "192.168.56.10", virtualbox__intnet: "vboxnet0"
config.vm.network "forwarded_port", guest: 80, host: 80
config.vm.define "localhost" do |l|
l.vm.hostname = "localhost"
end
config.vm.provider :azure do |azure|
azure.mgmt_certificate = File.expand_path('/home/pgazquez/Escritorio/appdefinitiva/azurevagrant.pem')
azure.mgmt_endpoint = 'https://management.core.windows.net'
azure.subscription_id = '686945bb-88d5-4919-bd0d-d2e0aeb76c29'
azure.vm_image = 'b39f27a8b8c64d52b05eac6a62ebad85__Ubuntu-14_04_3-LTS-amd64-server-20151218-en-us-30GB'
azure.vm_name = 'baresquesada'
azure.vm_user = 'vagrant'
azure.vm_password = 'Pedro#1992'
azure.vm_location = 'Central US'
azure.ssh_port = '22'
azure.tcp_endpoints = '80:80'
end
config.vm.provision "ansible" do |ansible|
ansible.sudo = true
ansible.playbook = "ansiblebares.yml"
ansible.verbose = "v"
ansible.host_key_checking = false
end
end