aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vagrant/Vagrantfile6
-rw-r--r--vagrant/bootstrap.sh19
2 files changed, 25 insertions, 0 deletions
diff --git a/vagrant/Vagrantfile b/vagrant/Vagrantfile
index abcd9d72f..8ee6f9611 100644
--- a/vagrant/Vagrantfile
+++ b/vagrant/Vagrantfile
@@ -82,6 +82,12 @@ Vagrant.configure(2) do |config|
admin.vm.synced_folder ".", "/home/vagrant/sync", disabled: true
admin.vm.provider PROVIDER do |vm|
vm.memory = MULTINODE ? 1024 : 4096
+ if PROVIDER == 'libvirt'
+ # This only works with libvirt provider.
+ # We should be able to do something similar for virtualbox
+ # http://askubuntu.com/questions/317338/how-can-i-increase-disk-size-on-a-vagrant-vm
+ vm.machine_virtual_size = 40
+ end
end
admin.hostmanager.aliases = "operator"
end
diff --git a/vagrant/bootstrap.sh b/vagrant/bootstrap.sh
index cd413527f..81d0aa3af 100644
--- a/vagrant/bootstrap.sh
+++ b/vagrant/bootstrap.sh
@@ -61,6 +61,24 @@ EOF
usermod -aG docker vagrant
}
+function resize_partition {
+ fdisk /dev/vda <<EOF
+n
+p
+
+
+t
+
+8e
+w
+EOF
+ partprobe
+ pvcreate /dev/vda4
+ vgextend VolGroup00 /dev/vda4
+ lvextend /dev/VolGroup00/LogVol00 /dev/vda4
+ resize2fs /dev/VolGroup00/LogVol00
+}
+
# Configure the operator node and install some additional packages.
function configure_operator {
yum install -y git mariadb && yum clean all
@@ -127,5 +145,6 @@ prep_work
install_docker
if [ "$1" = "operator" ]; then
+ resize_partition
configure_operator
fi