summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-sysadm/2010-November/000426.html
blob: a6fefc4f03e85c86075e5f27db8ece18500b2c07 (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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-sysadm] password and puppet
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20password%20and%20puppet&In-Reply-To=%3C1288912805.2499.164.camel%40akroma.ephaone.org%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="000229.html">
   <LINK REL="Next"  HREF="000427.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-sysadm] password and puppet</H1>
    <B>Michael Scherer</B> 
    <A HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20password%20and%20puppet&In-Reply-To=%3C1288912805.2499.164.camel%40akroma.ephaone.org%3E"
       TITLE="[Mageia-sysadm] password and puppet">misc at zarb.org
       </A><BR>
    <I>Fri Nov  5 00:20:05 CET 2010</I>
    <P><UL>
        <LI>Previous message: <A HREF="000229.html">[Mageia-sysadm] [114] - allow postgres connection using IPv6
</A></li>
        <LI>Next message: <A HREF="000427.html">[Mageia-sysadm] password and puppet
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#426">[ date ]</a>
              <a href="thread.html#426">[ thread ]</a>
              <a href="subject.html#426">[ subject ]</a>
              <a href="author.html#426">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>Hi,

as those who carefully read all commit have noted, I have used extlookup
( as planned ) to store the password outside of svn.

For now, the passwords are in /etc/puppet/extdata/common.csv, on
valstar. The format is :
name_of_the_password,password

To get the password, in a puppet manifest, just use :

$password = extlookup('name_of_the_password')

and then use $password in template or in the manifest ( variable from
the manifest can be used directly in the templates ).
Look at the catdap module to see how I did it.
You can also look at
<A HREF="http://docs.puppetlabs.com/references/2.6.1/function.html#extlookup">http://docs.puppetlabs.com/references/2.6.1/function.html#extlookup</A>
( and on the web ).

The file is read protected by puppet in valstar config.
 
However, there is no back up, and no auditing of change. Therefore, I
propose to use some private git/svn for this, any idea or remark ?

( I would also suggest to send mail on commit without the diff, as
knowing we have added a password is not critical, the content is the
only thing important  ).

WDYT ?
-- 
Michael Scherer

</PRE>


<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="000229.html">[Mageia-sysadm] [114] - allow postgres connection using IPv6
</A></li>
	<LI>Next message: <A HREF="000427.html">[Mageia-sysadm] password and puppet
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#426">[ date ]</a>
              <a href="thread.html#426">[ thread ]</a>
              <a href="subject.html#426">[ subject ]</a>
              <a href="author.html#426">[ 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>