]> WPIA git - infra.git/commitdiff
upd: clean base-image package-lists
authorFelix Dörre <felix@dogcraft.de>
Sat, 15 Apr 2017 23:42:22 +0000 (01:42 +0200)
committerFelix Dörre <felix@dogcraft.de>
Mon, 17 Apr 2017 17:41:59 +0000 (19:41 +0200)
Change-Id: Ia51b388c0a9b1bd34f4ad2e84f7f5594fa5918bb

modules/lxc/manifests/init.pp

index 0ba4a20f96aa09dbfee7603af916c22aaa88520b..d2795b331c60c87a97b6d686be4a6277e8057e5c 100644 (file)
@@ -7,7 +7,7 @@ class lxc {
     }->
     exec {'lxc-base-image-created':
         logoutput => on_failure,
-        command => '/usr/bin/lxc-create -n base-image -t debian -- -r stretch --packages=gnupg2,puppet,lsb-release,debconf-utils',# gnupg2 needed for puppet managing apt-keys
+        command => '/usr/bin/lxc-create -n base-image -t debian -- -r stretch --packages=gnupg2,puppet,lsb-release,debconf-utils && rm -r /var/lib/lxc/base-image/rootfs/var/apt/lists',# gnupg2 needed for puppet managing apt-keys
         unless => '/usr/bin/test -d /var/lib/lxc/base-image',
         timeout => '0'
     }