summaryrefslogtreecommitdiff
path: root/provisioning/modules/pixelated
diff options
context:
space:
mode:
authorChristoph Kluenter <ckluente@thoughtworks.com>2015-01-28 09:22:33 +0100
committerChristoph Kluenter <ckluente@thoughtworks.com>2015-01-28 09:23:38 +0100
commit95204fb02aa9ea4e030b972685407e35a0b02f65 (patch)
treec0b55456649751797c19e4f1466fdea6fb9bb89f /provisioning/modules/pixelated
parentaa970aa0cff333359409ac69f7826e3cc2d797b7 (diff)
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
Diffstat (limited to 'provisioning/modules/pixelated')
-rw-r--r--provisioning/modules/pixelated/manifests/cleanup.pp6
1 files changed, 6 insertions, 0 deletions
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'
+ }
+}