diff options
| author | Martin André <m.andre@redhat.com> | 2015-09-14 23:19:21 +0900 |
|---|---|---|
| committer | Martin André <m.andre@redhat.com> | 2015-09-15 14:59:31 +0900 |
| commit | 172103749ea8313631f29cd816a531d4e4c275d0 (patch) | |
| tree | 0a99719c5da1667d94e78ca248e99db98ccfd27f /vagrant | |
| parent | 1228cc8365b64163cb2f307603fe436bcbf0c900 (diff) | |
| download | kolla-172103749ea8313631f29cd816a531d4e4c275d0.tar.gz kolla-172103749ea8313631f29cd816a531d4e4c275d0.zip | |
Increase size of operator to allow building images
This is only implemented for libvirt provider at the moment.
Partially-Implements: blueprint vagrant-improvements
Change-Id: I72a2c32d7b5966a255eefcf687533023e84280da
Diffstat (limited to 'vagrant')
| -rw-r--r-- | vagrant/Vagrantfile | 6 | ||||
| -rw-r--r-- | vagrant/bootstrap.sh | 19 |
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 |
