summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-sysadm/2010-December/001048.html
diff options
context:
space:
mode:
Diffstat (limited to 'zarb-ml/mageia-sysadm/2010-December/001048.html')
-rw-r--r--zarb-ml/mageia-sysadm/2010-December/001048.html106
1 files changed, 106 insertions, 0 deletions
diff --git a/zarb-ml/mageia-sysadm/2010-December/001048.html b/zarb-ml/mageia-sysadm/2010-December/001048.html
new file mode 100644
index 000000000..f802dc511
--- /dev/null
+++ b/zarb-ml/mageia-sysadm/2010-December/001048.html
@@ -0,0 +1,106 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [Mageia-sysadm] [530] add a type for selfsigned certificate in 2 file
+ </TITLE>
+ <LINK REL="Index" HREF="index.html" >
+ <LINK REL="made" HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B530%5D%20add%20a%20type%20for%20selfsigned%20certificate%20in%202%0A%09file&In-Reply-To=%3C20101207024030.27A393FE29%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="001047.html">
+ <LINK REL="Next" HREF="001049.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[Mageia-sysadm] [530] add a type for selfsigned certificate in 2 file</H1>
+ <B>root at mageia.org</B>
+ <A HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B530%5D%20add%20a%20type%20for%20selfsigned%20certificate%20in%202%0A%09file&In-Reply-To=%3C20101207024030.27A393FE29%40valstar.mageia.org%3E"
+ TITLE="[Mageia-sysadm] [530] add a type for selfsigned certificate in 2 file">root at mageia.org
+ </A><BR>
+ <I>Tue Dec 7 03:40:30 CET 2010</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="001047.html">[Mageia-sysadm] [529] - create sympa user &amp; db
+</A></li>
+ <LI>Next message: <A HREF="001049.html">[Mageia-sysadm] [531] - create the needed certificate for postgresql ( name is hardcoded )
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#1048">[ date ]</a>
+ <a href="thread.html#1048">[ thread ]</a>
+ <a href="subject.html#1048">[ subject ]</a>
+ <a href="author.html#1048">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>Revision: 530
+Author: misc
+Date: 2010-12-07 03:40:29 +0100 (Tue, 07 Dec 2010)
+Log Message:
+-----------
+add a type for selfsigned certificate in 2 file
+
+Modified Paths:
+--------------
+ puppet/modules/openssl/manifests/init.pp
+
+Modified: puppet/modules/openssl/manifests/init.pp
+===================================================================
+--- puppet/modules/openssl/manifests/init.pp 2010-12-07 02:40:28 UTC (rev 529)
++++ puppet/modules/openssl/manifests/init.pp 2010-12-07 02:40:29 UTC (rev 530)
+@@ -15,4 +15,29 @@
+ require =&gt; Package['openssl']
+ }
+ }
++
++ define self_signed_splitted_cert($filename = '',
++ $directory = '/etc/certs',
++ $owner = &quot;root&quot;,
++ $group = 'root',
++ $mode = '600') {
++ include openssl::base
++
++ $crt_file = &quot;$filename.crt&quot;
++ $key_file = &quot;$filename.key&quot;
++ exec { &quot;openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout $key_file -out $crt_file -subj '/CN=$name'&quot;:
++ cwd =&gt; &quot;$directory&quot;,
++ creates =&gt; &quot;$directory/$key_file&quot;,
++ require =&gt; Package['openssl'],
++ before =&gt; [ File[&quot;$directory/$key_file&quot;],
++ File[&quot;$directory/$crt_file&quot;]]
++ }
++
++ file { [&quot;$directory/$key_file&quot;,&quot;$directory/$crt_file&quot;]:
++ owner =&gt; $owner,
++ group =&gt; $group,
++ mode =&gt; $mode
++ }
++ }
++
+ }
+-------------- next part --------------
+An HTML attachment was scrubbed...
+URL: &lt;/pipermail/mageia-sysadm/attachments/20101207/e227da80/attachment-0001.html&gt;
+</PRE>
+
+
+
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="001047.html">[Mageia-sysadm] [529] - create sympa user &amp; db
+</A></li>
+ <LI>Next message: <A HREF="001049.html">[Mageia-sysadm] [531] - create the needed certificate for postgresql ( name is hardcoded )
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#1048">[ date ]</a>
+ <a href="thread.html#1048">[ thread ]</a>
+ <a href="subject.html#1048">[ subject ]</a>
+ <a href="author.html#1048">[ 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>