Increase vagrant disk size, small yml format fixes

This commit is contained in:
Natalia Gulko 2018-11-08 15:19:59 -08:00 committed by natalia
parent 2aea502200
commit f85874f609
3 changed files with 14 additions and 2 deletions

12
Vagrantfile vendored
View File

@ -14,9 +14,21 @@ Vagrant.configure("2") do |config|
platform = "ubuntu/xenial64"
end
plugin_installed = false
unless Vagrant.has_plugin? ("vagrant-disksize")
system "vagrant plugin install vagrant-disksize"
plugin_installed = true
end
# Restart Vagrant when new plugin is installed
if plugin_installed === true
exec "vagrant #{ARGV.join' '}"
end
servers.each do |machine|
config.vm.define machine do |node|
node.vm.box = platform
node.disksize.size = '100GB'
node.vm.hostname = machine
node.vm.provision :ansible do |ansible|

View File

@ -60,7 +60,7 @@
wait_for: host={{ item.public_ip }} port=22 delay=90 timeout=320 state=started
with_items: "{{ ec2.instances }}"
when: ec2.changed
tags: explorer
tags: explorer
- name: Installing python
hosts: launched

View File

@ -40,7 +40,7 @@
- name: Add PostgreSQL Yum Repository
yum:
name: '{{ POSGRESQL_RPM_URL }}'
state: present
state: present
- name: Install PostgreSQL
yum: name={{ item }} state=installed