aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2012-03-17 00:30:19 +0000
committerMichael Scherer <misc@mageia.org>2012-03-17 00:30:19 +0000
commit6e741965325ba3a09275d9e67577945582d7341f (patch)
tree0720a691033f6adec175c78cce32c70de87484a2 /modules
parentea2d95bac02a0db58b0a4c8278521831582bc06f (diff)
downloadpuppet-6e741965325ba3a09275d9e67577945582d7341f.tar
puppet-6e741965325ba3a09275d9e67577945582d7341f.tar.gz
puppet-6e741965325ba3a09275d9e67577945582d7341f.tar.bz2
puppet-6e741965325ba3a09275d9e67577945582d7341f.tar.xz
puppet-6e741965325ba3a09275d9e67577945582d7341f.zip
iremove old script mgacreatehome, deprecated since we use pam directly since 1 year
Diffstat (limited to 'modules')
-rw-r--r--modules/buildsystem/manifests/mgacreatehome.pp7
-rwxr-xr-xmodules/buildsystem/templates/mgacreatehome27
2 files changed, 0 insertions, 34 deletions
diff --git a/modules/buildsystem/manifests/mgacreatehome.pp b/modules/buildsystem/manifests/mgacreatehome.pp
deleted file mode 100644
index d7a05527..00000000
--- a/modules/buildsystem/manifests/mgacreatehome.pp
+++ /dev/null
@@ -1,7 +0,0 @@
-class buildsystem::mgacreatehome {
- # temporary script to create home dir with ssh key
- # taking login and url as arguments
- local_script { 'mgacreatehome':
- content => template('buildsystem/mgacreatehome')
- }
-}
diff --git a/modules/buildsystem/templates/mgacreatehome b/modules/buildsystem/templates/mgacreatehome
deleted file mode 100755
index 3c0fc140..00000000
--- a/modules/buildsystem/templates/mgacreatehome
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/sh
-
-# script to create home directory with ssh key
-# takes two arguments :
-# - login
-# - URL for ssh key
-
-test $# -eq 2 || exit 1
-login="$1"
-sshkeyurl="$2"
-sshkeyfile=`mktemp`
-homeroot='/home'
-
-id "$login" || exit 2
-wget -O "$sshkeyfile" "$sshkeyurl" || exit 2
-cat "$sshkeyfile"
-echo "Press enter to validate"
-read z
-
-test ! -d "$homeroot/$login" && cp -a /etc/skel "$homeroot/$login"
-mkdir "$homeroot/$login/.ssh"
-cat "$sshkeyfile" >> "$homeroot/$login/.ssh/authorized_keys"
-rm -f "$sshkeyfile"
-chmod 700 "$homeroot/$login/.ssh"
-chmod 600 "$homeroot/$login/.ssh/authorized_keys"
-chown -R "$login":mga-users "$homeroot/$login"
-