diff options
Diffstat (limited to 'manifests/defines')
-rw-r--r-- | manifests/defines/ssh_folder.pp | 3 | ||||
-rw-r--r-- | manifests/defines/ssh_local_key.pp | 7 |
2 files changed, 6 insertions, 4 deletions
diff --git a/manifests/defines/ssh_folder.pp b/manifests/defines/ssh_folder.pp index e61ec02..b2bc55e 100644 --- a/manifests/defines/ssh_folder.pp +++ b/manifests/defines/ssh_folder.pp @@ -3,10 +3,11 @@ define ssh_folder( $home, $owner, $group, + $ensure => 'directory', ) { if !defined(File["${home}/.ssh"]) { file { "${home}/.ssh": - ensure => directory, + ensure => $ensure, owner => $owner, group => $group, mode => 0700, diff --git a/manifests/defines/ssh_local_key.pp b/manifests/defines/ssh_local_key.pp index f2828a2..55079f2 100644 --- a/manifests/defines/ssh_local_key.pp +++ b/manifests/defines/ssh_local_key.pp @@ -8,9 +8,10 @@ define ssh_local_key( $ensure = 'present', ) { ssh_folder { "ssh_local_key-${name}": - home => $home, - owner => $owner, - group => $group, + home => $home, + owner => $owner, + group => $group, + ensure => $ensure, } file { "${home}/.ssh/${dest}": |