summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-sysadm/2010-December/001053.html
blob: 20f8555b9e89509df60e99ac089f5404d6df49dc (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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-sysadm] [535] - add the owner option, to set the user to whom the database will belong
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B535%5D%20-%20add%20the%20owner%20option%2C%0A%20to%20set%20the%20user%20to%20whom%20the%20database%20will%20belong&In-Reply-To=%3C20101207024035.8E5B73FE29%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="001052.html">
   <LINK REL="Next"  HREF="001054.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-sysadm] [535] - add the owner option, to set the user to whom the database will belong</H1>
    <B>root at mageia.org</B> 
    <A HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B535%5D%20-%20add%20the%20owner%20option%2C%0A%20to%20set%20the%20user%20to%20whom%20the%20database%20will%20belong&In-Reply-To=%3C20101207024035.8E5B73FE29%40valstar.mageia.org%3E"
       TITLE="[Mageia-sysadm] [535] - add the owner option, to set the user to whom the database will belong">root at mageia.org
       </A><BR>
    <I>Tue Dec  7 03:40:35 CET 2010</I>
    <P><UL>
        <LI>Previous message: <A HREF="001052.html">[Mageia-sysadm] [534] - simplify the cgi path using custom fact
</A></li>
        <LI>Next message: <A HREF="001054.html">[Mageia-sysadm] [536] - add options to remove formatting,	so puppet do not try to recreate
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#1053">[ date ]</a>
              <a href="thread.html#1053">[ thread ]</a>
              <a href="subject.html#1053">[ subject ]</a>
              <a href="author.html#1053">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>Revision: 535
Author:   misc
Date:     2010-12-07 03:40:35 +0100 (Tue, 07 Dec 2010)
Log Message:
-----------
- add the owner option, to set the user to whom the database will belong

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

Modified: puppet/modules/postgresql/manifests/init.pp
===================================================================
--- puppet/modules/postgresql/manifests/init.pp	2010-12-07 02:40:34 UTC (rev 534)
+++ puppet/modules/postgresql/manifests/init.pp	2010-12-07 02:40:35 UTC (rev 535)
@@ -84,7 +84,7 @@
 
     # TODO convert it to a regular type ( so we can later change user and so on )
     define database($description=&quot;&quot;, $user=&quot;postgres&quot;) {
-        exec { &quot;createdb -U postgres $name '$description'&quot;:
+        exec { &quot;createdb -O $user -U postgres $name '$description'&quot;:
             user =&gt; root,
             unless =&gt; &quot;psql -l -U postgres | grep '^$name|'&quot;,
         }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: &lt;/pipermail/mageia-sysadm/attachments/20101207/73197330/attachment-0001.html&gt;
</PRE>




<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="001052.html">[Mageia-sysadm] [534] - simplify the cgi path using custom fact
</A></li>
	<LI>Next message: <A HREF="001054.html">[Mageia-sysadm] [536] - add options to remove formatting,	so puppet do not try to recreate
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#1053">[ date ]</a>
              <a href="thread.html#1053">[ thread ]</a>
              <a href="subject.html#1053">[ subject ]</a>
              <a href="author.html#1053">[ 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>