diff options
Diffstat (limited to 'zarb-ml/mageia-sysadm/2010-November/000319.html')
-rw-r--r-- | zarb-ml/mageia-sysadm/2010-November/000319.html | 157 |
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 = "/var/lib/pgsql/data/" ++ + package { 'postgresql9.0-server': ++ alias => "postgresql-server", + ensure => installed + } + + service { postgresql: + ensure => running, +- subscribe => Package["postgresql9.0-server"], +- restart => "/etc/rc.d/init.d/postgresql reload", ++ subscribe => Package["postgresql-server"], + hasstatus => true, + } + ++ exec { "service postgresql reload": ++ refreshonly => true, ++ subscribe => [ File["postgresql.conf"], ++ File["pg_ident.conf"], ++ File["pg_hba.conf"] ] ++ } ++ + file { '/etc/pam.d/postgresql': + ensure => present, + owner => root, +@@ -18,33 +28,33 @@ + content => template("postgresql/pam"), + } + +- file { '/var/lib/pgsql/data/postgresql.conf': ++ file { "postgresql.conf": ++ path => "$pgsql_data/$name", + ensure => present, + owner => postgres, + group => postgres, + mode => 600, + content => template("postgresql/postgresql.conf"), +- require => Package["postgresql9.0-server"], +- notify => [Service["postgresql"]] ++ require => Package["postgresql-server"], + } + +- file { '/var/lib/pgsql/data/pg_hba.conf': ++ file { 'pg_hba.conf': ++ path => "$pgsql_data/$name", + ensure => present, + owner => postgres, + group => postgres, + mode => 600, + content => template("postgresql/pg_hba.conf"), +- require => Package["postgresql9.0-server"], +- notify => [Service["postgresql"]] ++ require => Package["postgresql-server"], + } + +- file { '/var/lib/pgsql/data/pg_ident.conf': ++ file { 'pg_ident.conf': ++ path => "$pgsql_data/$name", + ensure => present, + owner => postgres, + group => postgres, + mode => 600, + content => template("postgresql/pg_ident.conf"), +- require => Package["postgresql9.0-server"], +- notify => [Service["postgresql"]] ++ require => Package["postgresql-server"], + } + } +-------------- next part -------------- +An HTML attachment was scrubbed... +URL: </pipermail/mageia-sysadm/attachments/20101107/fa973fab/attachment.html> +</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> |