summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-sysadm/2010-November/000570.html
blob: 8a0f81108e1d4547cbbf941481bee609e58dcba2 (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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-sysadm] [265] - add a proto module for taking care of pam ( need pam_ldap, etc support, and a review of the pam config file too )
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B265%5D%20-%20add%20a%20proto%20module%20for%20taking%20care%20of%20pam%20%28%0A%20need%20pam_ldap%2C%20etc%20support%2C%20and%20a%20review%20of%20the%20pam%20config%20file%20too%20%29&In-Reply-To=%3C20101117153510.D33A53FC09%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="000569.html">
   <LINK REL="Next"  HREF="000571.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-sysadm] [265] - add a proto module for taking care of pam ( need pam_ldap, etc support, and a review of the pam config file too )</H1>
    <B>root at mageia.org</B> 
    <A HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B265%5D%20-%20add%20a%20proto%20module%20for%20taking%20care%20of%20pam%20%28%0A%20need%20pam_ldap%2C%20etc%20support%2C%20and%20a%20review%20of%20the%20pam%20config%20file%20too%20%29&In-Reply-To=%3C20101117153510.D33A53FC09%40valstar.mageia.org%3E"
       TITLE="[Mageia-sysadm] [265] - add a proto module for taking care of pam ( need pam_ldap, etc support, and a review of the pam config file too )">root at mageia.org
       </A><BR>
    <I>Wed Nov 17 16:35:10 CET 2010</I>
    <P><UL>
        <LI>Previous message: <A HREF="000569.html">[Mageia-sysadm] [264] update binddn and password file
</A></li>
        <LI>Next message: <A HREF="000571.html">[Mageia-sysadm] [266] - better use heritance
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#570">[ date ]</a>
              <a href="thread.html#570">[ thread ]</a>
              <a href="subject.html#570">[ subject ]</a>
              <a href="author.html#570">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>Revision: 265
Author:   misc
Date:     2010-11-17 16:35:10 +0100 (Wed, 17 Nov 2010)
Log Message:
-----------
- add a proto module for taking care of pam ( need pam_ldap, etc support, and a review of the pam config file too )

Modified Paths:
--------------
    puppet/modules/apache/templates/vhost_catalyst_app.conf
    puppet/modules/apache/templates/vhost_django_app.conf
    puppet/modules/buildsystem/manifests/init.pp
    puppet/modules/postfix/manifests/init.pp
    puppet/modules/transifex/manifests/init.pp

Added Paths:
-----------
    puppet/modules/pam/
    puppet/modules/pam/manifests/
    puppet/modules/pam/manifests/init.pp
    puppet/modules/pam/templates/
    puppet/modules/pam/templates/system-auth

Modified: puppet/modules/apache/templates/vhost_catalyst_app.conf
===================================================================
--- puppet/modules/apache/templates/vhost_catalyst_app.conf	2010-11-17 15:13:07 UTC (rev 264)
+++ puppet/modules/apache/templates/vhost_catalyst_app.conf	2010-11-17 15:35:10 UTC (rev 265)
@@ -15,6 +15,8 @@
         ServerName &lt;%= name %&gt;
         # Serve static content directly
         DocumentRoot  /dev/null
+# header 
+
 &lt;% if location then %&gt;
         Alias /static &lt;%= location %&gt;/root/static
 &lt;% end %&gt;

Modified: puppet/modules/apache/templates/vhost_django_app.conf
===================================================================
--- puppet/modules/apache/templates/vhost_django_app.conf	2010-11-17 15:13:07 UTC (rev 264)
+++ puppet/modules/apache/templates/vhost_django_app.conf	2010-11-17 15:35:10 UTC (rev 265)
@@ -4,7 +4,7 @@
         DocumentRoot  /dev/null
 
         WSGIScriptAlias / /usr/local/lib/wsgi/&lt;%= name %&gt;.wsgi
-
+#footer
         &lt;Location /&gt;
             Allow from all
         &lt;/Location&gt;

Modified: puppet/modules/buildsystem/manifests/init.pp
===================================================================
--- puppet/modules/buildsystem/manifests/init.pp	2010-11-17 15:13:07 UTC (rev 264)
+++ puppet/modules/buildsystem/manifests/init.pp	2010-11-17 15:35:10 UTC (rev 265)
@@ -4,6 +4,22 @@
         include iurt
     }
 
+    class scheduler {
+        # ulri        
+    }
+
+    class dispatcher {
+        # emi
+    }
+    
+    class repsys {
+        package { 'repsys':
+
+        }
+
+
+    }
+
     class iurt {
         include sudo
 

Added: puppet/modules/pam/manifests/init.pp
===================================================================
--- puppet/modules/pam/manifests/init.pp	                        (rev 0)
+++ puppet/modules/pam/manifests/init.pp	2010-11-17 15:35:10 UTC (rev 265)
@@ -0,0 +1,27 @@
+class pam {
+
+  package { [&quot;pam_ldap&quot;,&quot;nss_ldap&quot;, &quot;pam_mkhomedir&quot;]:
+    ensure =&gt; installed,  
+  }
+
+
+  file { &quot;system-auth&quot;:
+     path =&gt; &quot;/etc/pam.d/system-auth&quot;,
+     owner =&gt; root,
+     group =&gt; root,
+     mode =&gt; 644,
+     content =&gt; template(&quot;openldap/system-auth&quot;)
+  }
+  
+  # for server where only admin can connect
+  class admin_access {
+    $access_class = &quot;admin&quot;
+    file { &quot;system-auth&quot;: }
+  }
+
+  # for server where people can connect with ssh ( git, svn )
+  class commiters_access {
+    $access_class = &quot;commiters&quot;
+    file { &quot;system-auth&quot;: }
+  }
+}

Added: puppet/modules/pam/templates/system-auth
===================================================================
--- puppet/modules/pam/templates/system-auth	                        (rev 0)
+++ puppet/modules/pam/templates/system-auth	2010-11-17 15:35:10 UTC (rev 265)
@@ -0,0 +1,35 @@
+auth    required    pam_env.so
+# this part is here if the module don't exist
+# basically, the idea is to copy the exact detail of sufficient,
+# and add abort=ignore
+auth    [abort=ignore success=done new_authtok_reqd=done default=ignore]  pam_tcb.so shadow fork nullok prefix=$2a$ count=8
+auth    sufficient   pam_unix.so likeauth nullok
+auth    sufficient   pam_ldap.so use_first_pass
+&lt;% if access_class = 'admin' %&gt;
+auth    required     pam_wheel.so group=mga-sysadmin
+&lt;% end %&gt;
+&lt;% if access_class = 'commiters' %&gt;
+auth    required     pam_wheel.so group=mga-commiters
+&lt;% end %&gt;
+auth    required     pam_deny.so
+
+
+account sufficient  pam_localuser.so
+account sufficient  pam_ldap.so
+account required    pam_deny.so
+
+
+password    required    pam_cracklib.so retry=3 minlen=8 dcredit=-1 ucredit=-1 ocredit=-1 lcredit=-1 dcredit=0  ucredit=0 ucredit=0
+# TODO check this part too
+password    sufficient  pam_tcb.so use_authtok shadow write_to=shadow fork nullok prefix=$2a$ count=8 abort=ignore
+password    sufficient  pam_ldap.so use_authtok
+password    sufficient  pam_unix.so use_authtok nullok md5 shadow
+password    required    pam_deny.so
+
+session optional    pam_keyinit.so revoke
+# optional if there is a problem when creating the account
+session optional    pam_mkhomedir.so
+session required    pam_limits.so
+session required    pam_unix.so
+session optional    pam_ldap.so
+

Modified: puppet/modules/postfix/manifests/init.pp
===================================================================
--- puppet/modules/postfix/manifests/init.pp	2010-11-17 15:13:07 UTC (rev 264)
+++ puppet/modules/postfix/manifests/init.pp	2010-11-17 15:35:10 UTC (rev 265)
@@ -4,7 +4,7 @@
         package { postfix:
             ensure =&gt; installed
         }
-	package { 'nail':
+    	package { 'nail':
                 ensure =&gt; installed
         }
         service { postfix:
@@ -30,4 +30,17 @@
             content =&gt; template(&quot;postfix/simple_relay_main.cf&quot;),
         }
     }
+
+    class primary_smtp inherits base {
+        file { '/etc/postfix/main.cf':
+            content =&gt; template(&quot;postfix/primary_main.cf&quot;),
+        }
+    }
+
+    class secondary_smtp inherits base {
+        file { '/etc/postfix/main.cf':
+            content =&gt; template(&quot;postfix/secondary_main.cf&quot;),
+        }
+    }
+
 }

Modified: puppet/modules/transifex/manifests/init.pp
===================================================================
--- puppet/modules/transifex/manifests/init.pp	2010-11-17 15:13:07 UTC (rev 264)
+++ puppet/modules/transifex/manifests/init.pp	2010-11-17 15:35:10 UTC (rev 265)
@@ -12,4 +12,8 @@
     mode =&gt; 755,
     content =&gt; template(&quot;transifex/20-engines.conf&quot;)
   }
+
+  apache::vhost_django_app { &quot;transifex.$domain&quot;:
+    module =&gt; &quot;transifex&quot; 
+  }  
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: &lt;/pipermail/mageia-sysadm/attachments/20101117/15a9175d/attachment.html&gt;
</PRE>










<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="000569.html">[Mageia-sysadm] [264] update binddn and password file
</A></li>
	<LI>Next message: <A HREF="000571.html">[Mageia-sysadm] [266] - better use heritance
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#570">[ date ]</a>
              <a href="thread.html#570">[ thread ]</a>
              <a href="subject.html#570">[ subject ]</a>
              <a href="author.html#570">[ 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>