-
Notifications
You must be signed in to change notification settings - Fork 1
/
vagrantfile
33 lines (26 loc) · 929 Bytes
/
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
Vagrant.configure("2") do |config|
config.vm.box = "google/gce"
config.vm.provider :google do |google, override|
#Credenciales
google.google_project_id = ENV['PROJECT_ID']
google.google_client_email = ENV['CLIENT_EMAIL']
google.google_json_key_location = ENV['KEY_LOCATION']
#Configuración tipo MV
google.machine_type = "g1-small"
google.zone = "europe-west1-b"
google.name = "tfg_gymapp"
google.image = "ubuntu-1604-xenial-v20160721"
# SSH
override.ssh.username = "antonio"
override.ssh.private_key_path = "/home/antonio/.ssh/id_rsa"
end
#rsync (desactivado)
config.vm.synced_folder ".", "/projectsrc", type: "rsync",
rsync__exclude: ".git/", :disabled => true
#Ansible - Provisionamiento
config.vm.provision "ansible" do |ansible|
ansible.sudo = true
ansible.playbook = "ansible.yml"
ansible.host_key_checking = false
end
end