summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-sysadm/2010-November/000319.html
diff options
context:
space:
mode:
Diffstat (limited to 'zarb-ml/mageia-sysadm/2010-November/000319.html')
-rw-r--r--zarb-ml/mageia-sysadm/2010-November/000319.html157
1 files changed, 157 insertions, 0 deletions
diff --git a/zarb-ml/mageia-sysadm/2010-November/000319.html b/zarb-ml/mageia-sysadm/2010-November/000319.html
new file mode 100644
index 000000000..a0e230525
--- /dev/null
+++ b/zarb-ml/mageia-sysadm/2010-November/000319.html
@@ -0,0 +1,157 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [Mageia-sysadm] [189] - add a alias not dependent on the pogsql version
+ </TITLE>
+ <LINK REL="Index" HREF="index.html" >
+ <LINK REL="made" HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B189%5D%20-%20add%20a%20alias%20not%20dependent%20on%20the%20pogsql%0A%09version&In-Reply-To=%3C20101107130426.C3CA23F92A%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="000416.html">
+ <LINK REL="Next" HREF="000320.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[Mageia-sysadm] [189] - add a alias not dependent on the pogsql version</H1>
+ <B>root at mageia.org</B>
+ <A HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B189%5D%20-%20add%20a%20alias%20not%20dependent%20on%20the%20pogsql%0A%09version&In-Reply-To=%3C20101107130426.C3CA23F92A%40valstar.mageia.org%3E"
+ TITLE="[Mageia-sysadm] [189] - add a alias not dependent on the pogsql version">root at mageia.org
+ </A><BR>
+ <I>Sun Nov 7 14:04:26 CET 2010</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="000416.html">[Mageia-sysadm] secret key might be secret ?
+</A></li>
+ <LI>Next message: <A HREF="000320.html">[Mageia-sysadm] [190] - my trick about using $name do not work as expected
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#319">[ date ]</a>
+ <a href="thread.html#319">[ thread ]</a>
+ <a href="subject.html#319">[ subject ]</a>
+ <a href="author.html#319">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>Revision: 189
+Author: misc
+Date: 2010-11-07 14:04:26 +0100 (Sun, 07 Nov 2010)
+Log Message:
+-----------
+- add a alias not dependent on the pogsql version
+- do not reload on restart ( as this may have side effect )
+- explicitly ask for reload on config file change ( with exec service reload )
+- use shorter name for file, with a common variable
+
+Modified Paths:
+--------------
+ puppet/modules/postgresql/manifests/init.pp
+
+Modified: puppet/modules/postgresql/manifests/init.pp
+===================================================================
+--- puppet/modules/postgresql/manifests/init.pp 2010-11-07 00:46:55 UTC (rev 188)
++++ puppet/modules/postgresql/manifests/init.pp 2010-11-07 13:04:26 UTC (rev 189)
+@@ -1,15 +1,25 @@
+ class postgresql {
++
++ $pgsql_data = &quot;/var/lib/pgsql/data/&quot;
++
+ package { 'postgresql9.0-server':
++ alias =&gt; &quot;postgresql-server&quot;,
+ ensure =&gt; installed
+ }
+
+ service { postgresql:
+ ensure =&gt; running,
+- subscribe =&gt; Package[&quot;postgresql9.0-server&quot;],
+- restart =&gt; &quot;/etc/rc.d/init.d/postgresql reload&quot;,
++ subscribe =&gt; Package[&quot;postgresql-server&quot;],
+ hasstatus =&gt; true,
+ }
+
++ exec { &quot;service postgresql reload&quot;:
++ refreshonly =&gt; true,
++ subscribe =&gt; [ File[&quot;postgresql.conf&quot;],
++ File[&quot;pg_ident.conf&quot;],
++ File[&quot;pg_hba.conf&quot;] ]
++ }
++
+ file { '/etc/pam.d/postgresql':
+ ensure =&gt; present,
+ owner =&gt; root,
+@@ -18,33 +28,33 @@
+ content =&gt; template(&quot;postgresql/pam&quot;),
+ }
+
+- file { '/var/lib/pgsql/data/postgresql.conf':
++ file { &quot;postgresql.conf&quot;:
++ path =&gt; &quot;$pgsql_data/$name&quot;,
+ ensure =&gt; present,
+ owner =&gt; postgres,
+ group =&gt; postgres,
+ mode =&gt; 600,
+ content =&gt; template(&quot;postgresql/postgresql.conf&quot;),
+- require =&gt; Package[&quot;postgresql9.0-server&quot;],
+- notify =&gt; [Service[&quot;postgresql&quot;]]
++ require =&gt; Package[&quot;postgresql-server&quot;],
+ }
+
+- file { '/var/lib/pgsql/data/pg_hba.conf':
++ file { 'pg_hba.conf':
++ path =&gt; &quot;$pgsql_data/$name&quot;,
+ ensure =&gt; present,
+ owner =&gt; postgres,
+ group =&gt; postgres,
+ mode =&gt; 600,
+ content =&gt; template(&quot;postgresql/pg_hba.conf&quot;),
+- require =&gt; Package[&quot;postgresql9.0-server&quot;],
+- notify =&gt; [Service[&quot;postgresql&quot;]]
++ require =&gt; Package[&quot;postgresql-server&quot;],
+ }
+
+- file { '/var/lib/pgsql/data/pg_ident.conf':
++ file { 'pg_ident.conf':
++ path =&gt; &quot;$pgsql_data/$name&quot;,
+ ensure =&gt; present,
+ owner =&gt; postgres,
+ group =&gt; postgres,
+ mode =&gt; 600,
+ content =&gt; template(&quot;postgresql/pg_ident.conf&quot;),
+- require =&gt; Package[&quot;postgresql9.0-server&quot;],
+- notify =&gt; [Service[&quot;postgresql&quot;]]
++ require =&gt; Package[&quot;postgresql-server&quot;],
+ }
+ }
+-------------- next part --------------
+An HTML attachment was scrubbed...
+URL: &lt;/pipermail/mageia-sysadm/attachments/20101107/fa973fab/attachment.html&gt;
+</PRE>
+
+
+
+
+
+
+
+
+
+
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="000416.html">[Mageia-sysadm] secret key might be secret ?
+</A></li>
+ <LI>Next message: <A HREF="000320.html">[Mageia-sysadm] [190] - my trick about using $name do not work as expected
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#319">[ date ]</a>
+ <a href="thread.html#319">[ thread ]</a>
+ <a href="subject.html#319">[ subject ]</a>
+ <a href="author.html#319">[ 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>