diff options
author | Christoph Kluenter <ckluente@thoughtworks.com> | 2015-01-28 09:22:33 +0100 |
---|---|---|
committer | Christoph Kluenter <ckluente@thoughtworks.com> | 2015-01-28 09:23:38 +0100 |
commit | 95204fb02aa9ea4e030b972685407e35a0b02f65 (patch) | |
tree | c0b55456649751797c19e4f1466fdea6fb9bb89f | |
parent | aa970aa0cff333359409ac69f7826e3cc2d797b7 (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
-rw-r--r-- | provisioning/manifests/source.pp | 3 | ||||
-rw-r--r-- | provisioning/modules/pixelated/manifests/cleanup.pp | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/provisioning/manifests/source.pp b/provisioning/manifests/source.pp index 899257c7..c45059f5 100644 --- a/provisioning/manifests/source.pp +++ b/provisioning/manifests/source.pp @@ -1,4 +1,5 @@ class { '::pixelated::apt': } -> class { '::pixelated::common': } -> -class { '::pixelated::source': } +class { '::pixelated::source': } -> +class { '::pixelated::cleanup':} 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' + } +} |