summaryrefslogtreecommitdiff
path: root/sitemodules
diff options
context:
space:
mode:
authorJan Dittberner <jan@dittberner.info>2017-04-13 14:35:15 +0200
committerJan Dittberner <jan@dittberner.info>2017-04-13 14:35:15 +0200
commitc1ba2d9e37ddc8d0c8b07ef90bd37b26d4aa0269 (patch)
tree2fe745c40443a2ef3be969de8b13896f37ca4209 /sitemodules
parentf0c8ee5cfe42c4747ace4e45ded4483dff231b6c (diff)
downloadcacert-puppet-c1ba2d9e37ddc8d0c8b07ef90bd37b26d4aa0269.tar.gz
cacert-puppet-c1ba2d9e37ddc8d0c8b07ef90bd37b26d4aa0269.tar.xz
cacert-puppet-c1ba2d9e37ddc8d0c8b07ef90bd37b26d4aa0269.zip
Remove unmanaged ssh keys
Diffstat (limited to 'sitemodules')
-rw-r--r--sitemodules/profiles/manifests/base.pp13
1 files changed, 7 insertions, 6 deletions
diff --git a/sitemodules/profiles/manifests/base.pp b/sitemodules/profiles/manifests/base.pp
index f892bce..dcc2cc1 100644
--- a/sitemodules/profiles/manifests/base.pp
+++ b/sitemodules/profiles/manifests/base.pp
@@ -41,12 +41,13 @@ class profiles::base (
ensure => present,
} ->
user { $user['username']:
- ensure => present,
- comment => $user['fullname'],
- gid => $user['username'],
- groups => ['sudo', 'adm'],
- password => $user['password'],
- uid => $user['uid'],
+ ensure => present,
+ comment => $user['fullname'],
+ gid => $user['username'],
+ groups => ['sudo', 'adm'],
+ password => $user['password'],
+ uid => $user['uid'],
+ purge_ssh_keys => true,
}
$user['ssh_keys'].each |Hash[String, Data] $keydata| {
$osusername = $user['username']