summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-sysadm/2010-December/001088.html
diff options
context:
space:
mode:
Diffstat (limited to 'zarb-ml/mageia-sysadm/2010-December/001088.html')
-rw-r--r--zarb-ml/mageia-sysadm/2010-December/001088.html157
1 files changed, 157 insertions, 0 deletions
diff --git a/zarb-ml/mageia-sysadm/2010-December/001088.html b/zarb-ml/mageia-sysadm/2010-December/001088.html
new file mode 100644
index 000000000..47fa52d60
--- /dev/null
+++ b/zarb-ml/mageia-sysadm/2010-December/001088.html
@@ -0,0 +1,157 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [Mageia-sysadm] [562] - use a variable for the robot and http vhost ( and force https in www
+ </TITLE>
+ <LINK REL="Index" HREF="index.html" >
+ <LINK REL="made" HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B562%5D%20-%20use%20a%20variable%20for%20the%20robot%20and%20http%20vhost%0A%20%28%20and%20force%20https%20in%20www&In-Reply-To=%3C20101209123429.9CC543FEBC%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="001087.html">
+ <LINK REL="Next" HREF="001089.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[Mageia-sysadm] [562] - use a variable for the robot and http vhost ( and force https in www</H1>
+ <B>root at mageia.org</B>
+ <A HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B562%5D%20-%20use%20a%20variable%20for%20the%20robot%20and%20http%20vhost%0A%20%28%20and%20force%20https%20in%20www&In-Reply-To=%3C20101209123429.9CC543FEBC%40valstar.mageia.org%3E"
+ TITLE="[Mageia-sysadm] [562] - use a variable for the robot and http vhost ( and force https in www">root at mageia.org
+ </A><BR>
+ <I>Thu Dec 9 13:34:29 CET 2010</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="001087.html">[Mageia-sysadm] [561] - use the lib_dir fact
+</A></li>
+ <LI>Next message: <A HREF="001089.html">[Mageia-sysadm] [563] add epoll selfsigned certificate
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#1088">[ date ]</a>
+ <a href="thread.html#1088">[ thread ]</a>
+ <a href="subject.html#1088">[ subject ]</a>
+ <a href="author.html#1088">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>Revision: 562
+Author: misc
+Date: 2010-12-09 13:34:29 +0100 (Thu, 09 Dec 2010)
+Log Message:
+-----------
+- use a variable for the robot and http vhost ( and force https in www
+ sympa config too )
+
+Modified Paths:
+--------------
+ puppet/modules/sympa/manifests/init.pp
+ puppet/modules/sympa/templates/sympa.conf
+
+Modified: puppet/modules/sympa/manifests/init.pp
+===================================================================
+--- puppet/modules/sympa/manifests/init.pp 2010-12-09 12:34:28 UTC (rev 561)
++++ puppet/modules/sympa/manifests/init.pp 2010-12-09 12:34:29 UTC (rev 562)
+@@ -1,5 +1,9 @@
+ class sympa {
+- class server {
++ class variable {
++ $vhost = &quot;ml.$domain&quot;
++ }
++
++ class server inherits variable {
+ # perl-CGI-Fast is needed for fast cgi
+ # perl-Socket6 is required by perl-IO-Socket-SSL
+ # (optional requirement)
+@@ -49,13 +53,13 @@
+ webapp_file =&gt; &quot;sympa/webapp_sympa.conf&quot;,
+ }
+
+- apache::vhost_redirect_ssl { &quot;ml.$domain&quot;: }
++ apache::vhost_redirect_ssl { &quot;$vhost&quot;: }
+
+- apache::vhost_other_app { &quot;ml.$domain&quot;:
++ apache::vhost_other_app { &quot;$vhost&quot;:
+ vhost_file =&gt; &quot;sympa/vhost_ml.conf&quot;,
+ }
+
+- openssl::self_signed_cert{ &quot;ml.$domain&quot;:
++ openssl::self_signed_cert{ &quot;$vhost&quot;:
+ directory =&gt; &quot;/etc/ssl/apache/&quot;
+ }
+
+@@ -80,6 +84,8 @@
+
+ define list($subject, $profile, $language = 'en') {
+
++ include sympa::variable
++
+ $xml_file = &quot;/etc/sympa/lists_xml/$name.xml&quot;
+
+ file { &quot;$xml_file&quot;:
+@@ -88,7 +94,7 @@
+ content =&gt; template('sympa/list.xml')
+ }
+
+- exec { &quot;sympa.pl --create_list --robot=ml.$domain --input_file=$xml_file&quot;:
++ exec { &quot;sympa.pl --create_list --robot=$sympa::variable::vhost --input_file=$xml_file&quot;:
+ refreshonly =&gt; true,
+ subscribe =&gt; File[&quot;$xml_file&quot;]
+ }
+
+Modified: puppet/modules/sympa/templates/sympa.conf
+===================================================================
+--- puppet/modules/sympa/templates/sympa.conf 2010-12-09 12:34:28 UTC (rev 561)
++++ puppet/modules/sympa/templates/sympa.conf 2010-12-09 12:34:29 UTC (rev 562)
+@@ -86,11 +86,11 @@
+ ###\\\\ General definition ////###
+
+ ## Main robot hostname
+-domain ml.&lt;%= domain %&gt;
++domain &lt;%= vhost %&gt;
+
+ ## Listmasters email list comma separated
+ ## Sympa will associate listmaster privileges to these email addresses (mail and web interfaces). Some error reports may also be sent to these addresses.
+-listmaster <A HREF="https://www.mageia.org/mailman/listinfo/mageia-sysadm">listmaster at ml.</A>&lt;%= domain %&gt;
++listmaster listmaster@&lt;%= vhost %&gt;
+
+ ## Local part of sympa email adresse
+ ## Effective address will be \[EMAIL\]@\[HOST\]
+@@ -278,7 +278,7 @@
+ ###\\\\ Web interface ////###
+
+ ## Sympa's main page URL
+-wwsympa_url <A HREF="http://ml.&lt;%=">http://ml.&lt;%=</A> domain %&gt;/
++wwsympa_url <A HREF="https://&lt;%=">https://&lt;%=</A> vhost %&gt;/
+
+ ## If a spam filter (like spamassassin or j-chkmail) add a smtp headers to tag spams, name of this header (example X-Spam-Status)
+ antispam_tag_header_name X-Spam-Status
+-------------- next part --------------
+An HTML attachment was scrubbed...
+URL: &lt;/pipermail/mageia-sysadm/attachments/20101209/5ea67dbe/attachment.html&gt;
+</PRE>
+
+
+
+
+
+
+
+
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="001087.html">[Mageia-sysadm] [561] - use the lib_dir fact
+</A></li>
+ <LI>Next message: <A HREF="001089.html">[Mageia-sysadm] [563] add epoll selfsigned certificate
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#1088">[ date ]</a>
+ <a href="thread.html#1088">[ thread ]</a>
+ <a href="subject.html#1088">[ subject ]</a>
+ <a href="author.html#1088">[ 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>