-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathVagrantfile
37 lines (30 loc) · 1.25 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
32
33
34
35
36
37
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure('2') do |config|
config.vm.box = 'azure'
config.vm.box_url = 'https://github.com/msopentech/vagrant-azure/raw/master/dummy.box' #Caja base vacía
config.vm.network "private_network",ip: "192.168.11.4", virtualbox__intnet: "vboxnet0" #Ip privada
config.vm.hostname = "localhost"
config.vm.network "forwarded_port", guest: 80, host: 80
# use local ssh key to connect to remote vagrant box
config.vm.provider :azure do |azure, override|
config.ssh.private_key_path = '~/.ssh/id_rsa'
azure.vm_image_urn = 'canonical:UbuntuServer:16.04-LTS:16.04.201701130'
azure.vm_size = 'Basic_A0'
azure.location = 'southcentralus'
azure.tcp_endpoints = '80'
azure.vm_name = "bot-calendario-telegram-vm"
azure.resource_group_name= "bot-calendario-telegram"
azure.tenant_id = ENV["AZURE_TENANT_ID"]
azure.client_id = ENV["AZURE_CLIENT_ID"]
azure.client_secret = ENV["AZURE_CLIENT_SECRET"]
azure.subscription_id = ENV["AZURE_SUBSCRIPTION_ID"]
end
# Provisionar con ansible
config.vm.provision "ansible" do |ansible|
ansible.become = true
ansible.playbook = "./provisioning/playbook.yml"
ansible.verbose = "-vvvv"
ansible.host_key_checking = false
end
end