From 3546510e95c3a75a10c8feebcee7f56a89449d92 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sun, 8 Sep 2019 10:36:45 +0200 Subject: [PATCH] Continue migrating to /etc/ssh/puppetkeys/ for exported ssh authkeys --- modules/ssh/manifests/authorized_key_collect.pp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/modules/ssh/manifests/authorized_key_collect.pp b/modules/ssh/manifests/authorized_key_collect.pp index 55eccf656..3e414c032 100644 --- a/modules/ssh/manifests/authorized_key_collect.pp +++ b/modules/ssh/manifests/authorized_key_collect.pp @@ -4,11 +4,8 @@ define ssh::authorized_key_collect( String $target_user, String $collect_tag, ) { - concat { "/etc/ssh/userkeys/${target_user}": } - concat::fragment { "/etc/ssh/userkeys/${target_user}-header": - target => "/etc/ssh/userkeys/${target_user}", - order => '000', - content => "# This file is maintained with puppet\n", + file { "/etc/ssh/userkeys/${target_user}": + ensure => 'absent', } concat { "/etc/ssh/puppetkeys/${target_user}": } concat::fragment { "/etc/ssh/puppetkeys/${target_user}-header": -- 2.20.1