aboutsummaryrefslogtreecommitdiff
path: root/manifests/defines/ssh_create_key.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-03-16 16:51:27 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-03-16 16:51:27 -0300
commit5055135b544026487c79d3cc71cfebf94c1fd994 (patch)
tree446619c88d3f49367f9afc4cd4d6e6efbb2a34a0 /manifests/defines/ssh_create_key.pp
parent99db24c24f9dae32a573b7d33eb8ed4feb3494b4 (diff)
downloadpuppet-nodo-5055135b544026487c79d3cc71cfebf94c1fd994.tar.gz
puppet-nodo-5055135b544026487c79d3cc71cfebf94c1fd994.tar.bz2
Defining nodo::subsystem::ssh_folder as a parametrized class
Diffstat (limited to 'manifests/defines/ssh_create_key.pp')
-rw-r--r--manifests/defines/ssh_create_key.pp6
1 files changed, 5 insertions, 1 deletions
diff --git a/manifests/defines/ssh_create_key.pp b/manifests/defines/ssh_create_key.pp
index ec4bb67..3608b7e 100644
--- a/manifests/defines/ssh_create_key.pp
+++ b/manifests/defines/ssh_create_key.pp
@@ -4,7 +4,11 @@ define ssh_create_key(
$keyfile = 'id_rsa',
$home = '/home/$owner'
) {
- include nodo::subsystem::ssh_folder
+ class { "nodo::subsystem::ssh_folder":
+ home => $home,
+ owner => $owner,
+ group => $group,
+ }
exec { "ssh-keygen-${owner}":
command => "ssh-keygen -t rsa -P '' -f ${home}/.ssh/${keyfile}",