summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-sysadm/2011-January/001675.html
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-04-14 13:46:12 +0000
committerNicolas Vigier <boklm@mageia.org>2013-04-14 13:46:12 +0000
commit1be510f9529cb082f802408b472a77d074b394c0 (patch)
treeb175f9d5fcb107576dabc768e7bd04d4a3e491a0 /zarb-ml/mageia-sysadm/2011-January/001675.html
parentfa5098cf210b23ab4f419913e28af7b1b07dafb2 (diff)
downloadarchives-1be510f9529cb082f802408b472a77d074b394c0.tar
archives-1be510f9529cb082f802408b472a77d074b394c0.tar.gz
archives-1be510f9529cb082f802408b472a77d074b394c0.tar.bz2
archives-1be510f9529cb082f802408b472a77d074b394c0.tar.xz
archives-1be510f9529cb082f802408b472a77d074b394c0.zip
Add zarb MLs html archivesHEADmaster
Diffstat (limited to 'zarb-ml/mageia-sysadm/2011-January/001675.html')
-rw-r--r--zarb-ml/mageia-sysadm/2011-January/001675.html163
1 files changed, 163 insertions, 0 deletions
diff --git a/zarb-ml/mageia-sysadm/2011-January/001675.html b/zarb-ml/mageia-sysadm/2011-January/001675.html
new file mode 100644
index 000000000..3e43af241
--- /dev/null
+++ b/zarb-ml/mageia-sysadm/2011-January/001675.html
@@ -0,0 +1,163 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [Mageia-sysadm] [696] add script to help adding ssh keys
+ </TITLE>
+ <LINK REL="Index" HREF="index.html" >
+ <LINK REL="made" HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B696%5D%20add%20script%20to%20help%20adding%20ssh%20keys&In-Reply-To=%3C20110107132608.D596041B71%40valstar.mageia.org%3E">
+ <META NAME="robots" CONTENT="index,nofollow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+ <LINK REL="Previous" HREF="001674.html">
+ <LINK REL="Next" HREF="001676.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[Mageia-sysadm] [696] add script to help adding ssh keys</H1>
+ <B>root at mageia.org</B>
+ <A HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B696%5D%20add%20script%20to%20help%20adding%20ssh%20keys&In-Reply-To=%3C20110107132608.D596041B71%40valstar.mageia.org%3E"
+ TITLE="[Mageia-sysadm] [696] add script to help adding ssh keys">root at mageia.org
+ </A><BR>
+ <I>Fri Jan 7 14:26:08 CET 2011</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="001674.html">[Mageia-sysadm] Rebuild failed on x86_64 for @235:bash-4.1-6mga1.src.rpm
+</A></li>
+ <LI>Next message: <A HREF="001676.html">[Mageia-sysadm] [697] disable lists for now as import is causing problems on other nodes
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#1675">[ date ]</a>
+ <a href="thread.html#1675">[ thread ]</a>
+ <a href="subject.html#1675">[ subject ]</a>
+ <a href="author.html#1675">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>Revision: 696
+Author: boklm
+Date: 2011-01-07 14:26:08 +0100 (Fri, 07 Jan 2011)
+Log Message:
+-----------
+add script to help adding ssh keys
+
+Modified Paths:
+--------------
+ puppet/manifests/nodes.pp
+ puppet/modules/buildsystem/manifests/init.pp
+
+Added Paths:
+-----------
+ puppet/modules/buildsystem/templates/mgacreatehome
+
+Modified: puppet/manifests/nodes.pp
+===================================================================
+--- puppet/manifests/nodes.pp 2011-01-07 02:46:13 UTC (rev 695)
++++ puppet/manifests/nodes.pp 2011-01-07 13:26:08 UTC (rev 696)
+@@ -19,6 +19,7 @@
+ include ssh::auth
+ include ssh::auth::keymaster
+ include buildsystem::mainnode
++ include buildsystem::mgacreatehome
+
+ include pam::committers_access
+ include restrictshell::allow_svn
+
+Modified: puppet/modules/buildsystem/manifests/init.pp
+===================================================================
+--- puppet/modules/buildsystem/manifests/init.pp 2011-01-07 02:46:13 UTC (rev 695)
++++ puppet/modules/buildsystem/manifests/init.pp 2011-01-07 13:26:08 UTC (rev 696)
+@@ -241,4 +241,16 @@
+ content =&gt; template(&quot;buildsystem/sudoers.iurt&quot;)
+ }
+ }
++
++ # temporary script to create home dir with ssh key
++ # taking login and url as arguments
++ class mgacreatehome {
++ file { &quot;/usr/local/sbin/mgacreatehome&quot;:
++ ensure =&gt; present,
++ owner =&gt; root,
++ group =&gt; root,
++ mode =&gt; 700,
++ content =&gt; template(&quot;buildsystem/mgacreatehome&quot;)
++ }
++ }
+ }
+
+Added: puppet/modules/buildsystem/templates/mgacreatehome
+===================================================================
+--- puppet/modules/buildsystem/templates/mgacreatehome (rev 0)
++++ puppet/modules/buildsystem/templates/mgacreatehome 2011-01-07 13:26:08 UTC (rev 696)
+@@ -0,0 +1,27 @@
++#!/bin/sh
++
++# script to create home directory with ssh key
++# takes two arguments :
++# - login
++# - URL for ssh key
++
++test $# -eq 2 || exit 1
++login=&quot;$1&quot;
++sshkeyurl=&quot;$2&quot;
++sshkeyfile=`mktemp`
++homeroot='/home'
++
++id &quot;$login&quot; || exit 2
++wget -O &quot;$sshkeyfile&quot; &quot;$sshkeyurl&quot; || exit 2
++cat &quot;$sshkeyfile&quot;
++echo &quot;Press enter to validate&quot;
++read z
++
++test ! -d &quot;$homeroot/$login&quot; &amp;&amp; cp -a /etc/skel &quot;$homeroot/$login&quot;
++mkdir &quot;$homeroot/$login/.ssh&quot;
++cat &quot;$sshkeyfile&quot; &gt;&gt; &quot;$homeroot/$login/.ssh/authorized_keys&quot;
++rm -f &quot;$sshkeyfile&quot;
++chmod 700 &quot;$homeroot/$login/.ssh&quot;
++chmod 600 &quot;$homeroot/$login/.ssh/authorized_keys&quot;
++chown -R &quot;$login&quot;:mga-users &quot;$homeroot/$login&quot;
++
+
+
+Property changes on: puppet/modules/buildsystem/templates/mgacreatehome
+___________________________________________________________________
+Added: svn:executable
+ + *
+-------------- next part --------------
+An HTML attachment was scrubbed...
+URL: &lt;/pipermail/mageia-sysadm/attachments/20110107/172d58d3/attachment-0001.html&gt;
+</PRE>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="001674.html">[Mageia-sysadm] Rebuild failed on x86_64 for @235:bash-4.1-6mga1.src.rpm
+</A></li>
+ <LI>Next message: <A HREF="001676.html">[Mageia-sysadm] [697] disable lists for now as import is causing problems on other nodes
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#1675">[ date ]</a>
+ <a href="thread.html#1675">[ thread ]</a>
+ <a href="subject.html#1675">[ subject ]</a>
+ <a href="author.html#1675">[ author ]</a>
+ </LI>
+ </UL>
+
+<hr>
+<a href="https://www.mageia.org/mailman/listinfo/mageia-sysadm">More information about the Mageia-sysadm
+mailing list</a><br>
+</body></html>