From 95204fb02aa9ea4e030b972685407e35a0b02f65 Mon Sep 17 00:00:00 2001 From: Christoph Kluenter Date: Wed, 28 Jan 2015 09:22:33 +0100 Subject: make the vagrant box smaller we dd everything with zeroes. Then the disk can be made sparse. The image is 100M smaller now. Fixes #253 --- provisioning/modules/pixelated/manifests/cleanup.pp | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 provisioning/modules/pixelated/manifests/cleanup.pp (limited to 'provisioning/modules/pixelated') diff --git a/provisioning/modules/pixelated/manifests/cleanup.pp b/provisioning/modules/pixelated/manifests/cleanup.pp new file mode 100644 index 00000000..b5966792 --- /dev/null +++ b/provisioning/modules/pixelated/manifests/cleanup.pp @@ -0,0 +1,6 @@ +# make the vagrant images smaller +class pixelated::cleanup { + exec{'dd_zero': + command => '/bin/dd if=/dev/zero of=/tmp/dd_zero;rm /tmp/dd_zero' + } +} -- cgit v1.2.3