From: Silvio Rhatto Date: Fri, 11 Apr 2014 01:43:55 +0000 (-0300) Subject: Manage also the pubkey at ssh_local_key X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=9c1662aa1110fa3840ac64498e9e7bab9ccd1683;p=puppet-nodo.git Manage also the pubkey at ssh_local_key --- diff --git a/manifests/defines/ssh_local_key.pp b/manifests/defines/ssh_local_key.pp index b41e618..57bb251 100644 --- a/manifests/defines/ssh_local_key.pp +++ b/manifests/defines/ssh_local_key.pp @@ -28,4 +28,16 @@ define ssh_local_key( }, require => File["${home}/.ssh"], } + + file { "${home}/.ssh/${dest}.pub": + ensure => $ensure, + owner => $owner, + group => $group, + mode => 0400, + source => $ensure ? { + 'present' => "${source}.pub", + default => undef, + }, + require => File["${home}/.ssh"], + } }