aboutsummaryrefslogtreecommitdiff
path: root/manifests/defines/ssh_create_key.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-09-11 21:16:42 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-09-11 21:16:42 -0300
commit76ec4642be1a8bc64380c077a5890c4d0f4243e0 (patch)
treee31930271b7eefb3c3d693264e012e8ff45832ae /manifests/defines/ssh_create_key.pp
parent6509060a791daeeee13c40f9367489ac5e00880e (diff)
downloadpuppet-nodo-76ec4642be1a8bc64380c077a5890c4d0f4243e0.tar.gz
puppet-nodo-76ec4642be1a8bc64380c077a5890c4d0f4243e0.tar.bz2
Autoload definitions
Diffstat (limited to 'manifests/defines/ssh_create_key.pp')
-rw-r--r--manifests/defines/ssh_create_key.pp20
1 files changed, 0 insertions, 20 deletions
diff --git a/manifests/defines/ssh_create_key.pp b/manifests/defines/ssh_create_key.pp
deleted file mode 100644
index 77d1f00..0000000
--- a/manifests/defines/ssh_create_key.pp
+++ /dev/null
@@ -1,20 +0,0 @@
-define ssh_create_key(
- $owner,
- $group,
- $keyfile = 'id_rsa',
- $home = '/home/$owner'
-) {
- ssh_folder { "ssh_create_key-${name}":
- home => $home,
- owner => $owner,
- group => $group,
- }
-
- exec { "ssh-keygen-${owner}":
- command => "ssh-keygen -t rsa -P '' -f ${home}/.ssh/${keyfile}",
- creates => "${home}/.ssh/${keyfile}",
- user => $owner,
- group => $group,
- require => File["${home}/.ssh"],
- }
-}