summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-sysadm/2010-November/000294.html
blob: b11335d04042d72815d6f947fa599109122a90a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-sysadm] [172] - manage pg_ident.conf for postgresql
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B172%5D%20-%20manage%20pg_ident.conf%20for%20postgresql&In-Reply-To=%3C20101106072244.9F8F83F8D0%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="000293.html">
   <LINK REL="Next"  HREF="000295.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-sysadm] [172] - manage pg_ident.conf for postgresql</H1>
    <B>root at mageia.org</B> 
    <A HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B172%5D%20-%20manage%20pg_ident.conf%20for%20postgresql&In-Reply-To=%3C20101106072244.9F8F83F8D0%40valstar.mageia.org%3E"
       TITLE="[Mageia-sysadm] [172] - manage pg_ident.conf for postgresql">root at mageia.org
       </A><BR>
    <I>Sat Nov  6 08:22:44 CET 2010</I>
    <P><UL>
        <LI>Previous message: <A HREF="000293.html">[Mageia-sysadm] [171] - allow transifex user to connect to	transifex database
</A></li>
        <LI>Next message: <A HREF="000295.html">[Mageia-sysadm] [173] - root on the server is accepted as postgres	user
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#294">[ date ]</a>
              <a href="thread.html#294">[ thread ]</a>
              <a href="subject.html#294">[ subject ]</a>
              <a href="author.html#294">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>Revision: 172
Author:   nanardon
Date:     2010-11-06 08:22:44 +0100 (Sat, 06 Nov 2010)
Log Message:
-----------
- manage pg_ident.conf for postgresql

Modified Paths:
--------------
    puppet/modules/postgresql/manifests/init.pp

Added Paths:
-----------
    puppet/modules/postgresql/templates/pg_ident.conf

Modified: puppet/modules/postgresql/manifests/init.pp
===================================================================
--- puppet/modules/postgresql/manifests/init.pp	2010-11-06 07:10:14 UTC (rev 171)
+++ puppet/modules/postgresql/manifests/init.pp	2010-11-06 07:22:44 UTC (rev 172)
@@ -37,4 +37,14 @@
         require =&gt; Package[&quot;postgresql9.0-server&quot;],
         notify =&gt; [Service[&quot;postgresql&quot;]]
     }
+
+    file { '/var/lib/pgsql/data/pg_ident.conf':
+        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;]]
+    }
 }

Added: puppet/modules/postgresql/templates/pg_ident.conf
===================================================================
--- puppet/modules/postgresql/templates/pg_ident.conf	                        (rev 0)
+++ puppet/modules/postgresql/templates/pg_ident.conf	2010-11-06 07:22:44 UTC (rev 172)
@@ -0,0 +1,42 @@
+# PostgreSQL User Name Maps
+# =========================
+#
+# Refer to the PostgreSQL documentation, chapter &quot;Client
+# Authentication&quot; for a complete description.  A short synopsis
+# follows.
+#
+# This file controls PostgreSQL user name mapping.  It maps external
+# user names to their corresponding PostgreSQL user names.  Records
+# are of the form:
+#
+# MAPNAME  SYSTEM-USERNAME  PG-USERNAME
+#
+# (The uppercase quantities must be replaced by actual values.)
+#
+# MAPNAME is the (otherwise freely chosen) map name that was used in
+# pg_hba.conf.  SYSTEM-USERNAME is the detected user name of the
+# client.  PG-USERNAME is the requested PostgreSQL user name.  The
+# existence of a record specifies that SYSTEM-USERNAME may connect as
+# PG-USERNAME.
+#
+# If SYSTEM-USERNAME starts with a slash (/), it will be treated as a
+# regular expression.  Optionally this can contain a capture (a
+# parenthesized subexpression).  The substring matching the capture
+# will be substituted for \1 (backslash-one) if present in
+# PG-USERNAME.
+#
+# Multiple maps may be specified in this file and used by pg_hba.conf.
+#
+# No map names are defined in the default configuration.  If all
+# system user names and PostgreSQL user names are the same, you don't
+# need anything in this file.
+#
+# This file is read on server startup and when the postmaster receives
+# a SIGHUP signal.  If you edit the file on a running system, you have
+# to SIGHUP the postmaster for the changes to take effect.  You can
+# use &quot;pg_ctl reload&quot; to do that.
+
+# Put your actual configuration here
+# ----------------------------------
+
+# MAPNAME       SYSTEM-USERNAME         PG-USERNAME
-------------- next part --------------
An HTML attachment was scrubbed...
URL: &lt;/pipermail/mageia-sysadm/attachments/20101106/5ee10c09/attachment.html&gt;
</PRE>




<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="000293.html">[Mageia-sysadm] [171] - allow transifex user to connect to	transifex database
</A></li>
	<LI>Next message: <A HREF="000295.html">[Mageia-sysadm] [173] - root on the server is accepted as postgres	user
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#294">[ date ]</a>
              <a href="thread.html#294">[ thread ]</a>
              <a href="subject.html#294">[ subject ]</a>
              <a href="author.html#294">[ 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>