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"
|
platform = "ubuntu/xenial64"
|
||||||
end
|
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|
|
servers.each do |machine|
|
||||||
config.vm.define machine do |node|
|
config.vm.define machine do |node|
|
||||||
node.vm.box = platform
|
node.vm.box = platform
|
||||||
|
node.disksize.size = '100GB'
|
||||||
node.vm.hostname = machine
|
node.vm.hostname = machine
|
||||||
|
|
||||||
node.vm.provision :ansible do |ansible|
|
node.vm.provision :ansible do |ansible|
|
||||||
|
|
|
@ -60,7 +60,7 @@
|
||||||
wait_for: host={{ item.public_ip }} port=22 delay=90 timeout=320 state=started
|
wait_for: host={{ item.public_ip }} port=22 delay=90 timeout=320 state=started
|
||||||
with_items: "{{ ec2.instances }}"
|
with_items: "{{ ec2.instances }}"
|
||||||
when: ec2.changed
|
when: ec2.changed
|
||||||
tags: explorer
|
tags: explorer
|
||||||
|
|
||||||
- name: Installing python
|
- name: Installing python
|
||||||
hosts: launched
|
hosts: launched
|
||||||
|
|
Loading…
Reference in New Issue