summaryrefslogtreecommitdiffstats
path: root/foreman/ci/Vagrantfile
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2015-09-03 17:12:11 -0400
committerTim Rozet <trozet@redhat.com>2015-09-10 17:31:52 +0000
commitdddec765a06dd4cf4260e79c2cca0beaa549aba6 (patch)
tree17dd63a95a417019874242ca0f5a86ad2036bf97 /foreman/ci/Vagrantfile
parent94ecbe154d19dcfe2cac13075adf0a08e10a7e24 (diff)
Adds functionality to modify VM resources
VM resources (vcpus, memory, disk size) are now configurable in the opnfv_ksgen_settings files. Each node in the ksgen settings file now has "memory, cpus, disk" attributes: - cpus is an integer number of CPUs to assign to the VM - memory is an integer size in kilobytes - disk is an integer size in gigabytes The vagrant box vmdk is resized for each VM. Each VM will then modify its partition to the new size, execute the normal reboot, then extend the physical+logical volumes and filesystem using vagrant provisioning scripts. JIRA: APEX-1 Change-Id: I471319db14d2189052961b2f533c65850ebeb1e7 Signed-off-by: Tim Rozet <trozet@redhat.com> (cherry picked from commit 5384a722ffae47bc3519512d34802102ebc7be5b)
Diffstat (limited to 'foreman/ci/Vagrantfile')
-rw-r--r--foreman/ci/Vagrantfile4
1 files changed, 3 insertions, 1 deletions
diff --git a/foreman/ci/Vagrantfile b/foreman/ci/Vagrantfile
index 5550976..c7dfc03 100644
--- a/foreman/ci/Vagrantfile
+++ b/foreman/ci/Vagrantfile
@@ -80,10 +80,11 @@ Vagrant.configure(2) do |config|
# sudo apt-get update
# sudo apt-get install -y apache2
# SHELL
-
+
config.ssh.username = 'root'
config.ssh.password = 'vagrant'
config.ssh.insert_key = 'true'
+ config.vm.provision :shell, path: "resize_partition.sh"
config.vm.provision "ansible" do |ansible|
ansible.playbook = "reload_playbook.yml"
end
@@ -97,4 +98,5 @@ Vagrant.configure(2) do |config|
config.vm.provision :shell, :inline => "systemctl stop dhcpd"
config.vm.provision :shell, :inline => "systemctl disable dhcpd"
end
+ config.vm.provision :shell, path: "resize_lvm.sh"
end