X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fssh%2Fmanifests%2Fauthorized_key_collect.pp;h=28ba797afa8f0718cefcbf0ad85f1e73ea6a23ce;hb=18f26a9ca182f25cbdfc4c1532e2d34898295e92;hp=55eccf656923a440632c7393854f9da55215935d;hpb=e801844541145c6c2870dbbb799a50d0964f7578;p=mirror%2Fdsa-puppet.git diff --git a/modules/ssh/manifests/authorized_key_collect.pp b/modules/ssh/manifests/authorized_key_collect.pp index 55eccf656..28ba797af 100644 --- a/modules/ssh/manifests/authorized_key_collect.pp +++ b/modules/ssh/manifests/authorized_key_collect.pp @@ -4,17 +4,10 @@ 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", - } - concat { "/etc/ssh/puppetkeys/${target_user}": } - concat::fragment { "/etc/ssh/puppetkeys/${target_user}-header": - target => "/etc/ssh/puppetkeys/${target_user}", - order => '000', - content => "# This file is maintained with puppet\n", + concat { "/etc/ssh/puppetkeys/${target_user}": + warn => '# This file is maintained with puppet', + ensure_newline => true, + mode => '0444', } Concat::Fragment <<| tag == "ssh::authorized_key::fragment::${collect_tag}::${target_user}" |>>