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/bootstrap.sh | |
| 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/bootstrap.sh')
| -rw-r--r-- | vagrant/bootstrap.sh | 19 |
1 files changed, 19 insertions, 0 deletions
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 |
