if $key {
@@concat::fragment { "ssh::authorized_key::${name} ${target_user} from ${::hostname}":
tag => $ssh_tags,
- target => "/etc/ssh/userkeys/${target_user}",
+ target => "/etc/ssh/puppetkeys/${target_user}",
order => '200',
content => @("EOF"),
# from ${::fqdn}
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::Fragment <<| tag == "ssh::authorized_key::fragment::${collect_tag}::${target_user}" |>>
Ferm::Rule <<| tag == "ssh::authorized_key::ferm::${collect_tag}::${target_user}" |>>