Increase vagrant disk size, small yml format fixes
This commit is contained in:
parent
2aea502200
commit
f85874f609
|
@ -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|
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue