summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2019-08-02 08:10:54 +0200
committerJan Dittberner <jandd@cacert.org>2019-08-02 08:10:54 +0200
commit3dd78ee5e1a69be63d9c1f5eb831a8ce8dc12779 (patch)
tree27d518d2f9a6c31df8d1a25943616b87219aab12
parentce4561d2b85f3604faf665410ce50e5ac6f6f71b (diff)
downloadcacert-puppet-3dd78ee5e1a69be63d9c1f5eb831a8ce8dc12779.tar.gz
cacert-puppet-3dd78ee5e1a69be63d9c1f5eb831a8ce8dc12779.tar.xz
cacert-puppet-3dd78ee5e1a69be63d9c1f5eb831a8ce8dc12779.zip
Clean /etc/passwd in upload chroot
-rw-r--r--sitemodules/profiles/manifests/debarchive.pp3
1 files changed, 3 insertions, 0 deletions
diff --git a/sitemodules/profiles/manifests/debarchive.pp b/sitemodules/profiles/manifests/debarchive.pp
index 0442962..0a8e59e 100644
--- a/sitemodules/profiles/manifests/debarchive.pp
+++ b/sitemodules/profiles/manifests/debarchive.pp
@@ -95,6 +95,9 @@ class profiles::debarchive (
exec { '/bin/bash /usr/share/doc/rssh/examples/mkchroot.sh /srv/upload':
creates => '/srv/upload/usr/bin/rssh',
require => [Package['rssh'], File['/srv/upload']],
+ } ~>
+ exec { '/bin/sed -n -i \'/^root:/p; /^debarchive:/p\' /srv/upload/etc/passwd':
+ refreshonly => true,
}
$rssh_conf = '/etc/rssh.conf'