summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-sysadm/2011-March/003123.html
blob: 10d44adae3119568955771f4b144c9e9ee68666f (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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-sysadm] Youri Check
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20Youri%20Check&In-Reply-To=%3C1300229839.12645.186.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="003122.html">
   <LINK REL="Next"  HREF="003124.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-sysadm] Youri Check</H1>
    <B>Michael Scherer</B> 
    <A HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20Youri%20Check&In-Reply-To=%3C1300229839.12645.186.camel%40akroma.ephaone.org%3E"
       TITLE="[Mageia-sysadm] Youri Check">misc at zarb.org
       </A><BR>
    <I>Tue Mar 15 23:57:19 CET 2011</I>
    <P><UL>
        <LI>Previous message: <A HREF="003122.html">[Mageia-sysadm] Youri Check
</A></li>
        <LI>Next message: <A HREF="003124.html">[Mageia-sysadm] Youri Check
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#3123">[ date ]</a>
              <a href="thread.html#3123">[ thread ]</a>
              <a href="subject.html#3123">[ subject ]</a>
              <a href="author.html#3123">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>Le mardi 15 mars 2011 &#224; 22:29 +0000, Pascal Terjan a &#233;crit :
&gt;<i> I started running youri-check on rabbit and created an initial
</I>&gt;<i> (untested) puppet module
</I>&gt;<i> I attached the patch and welcome any comments
</I>
The module look good, I just have some questions.

Index: modules/youri-check/manifests/init.pp
===================================================================
--- modules/youri-check/manifests/init.pp       (revision 0)
+++ modules/youri-check/manifests/init.pp       (revision 0)
@@ -0,0 +1,30 @@
+class youri_check {

I think the class should be called youri-check, or the file in
youri_check ( iirc, not sure if this is a problem ). 

+    $user = 'youri'
+    $home = '/var/tmp/youri'
+    $outdir = &quot;$home/www&quot;
+    $config = &quot;$home/check.conf&quot;

Why not in /etc ?

Index: modules/youri-check/templates/check.conf
===================================================================
--- modules/youri-check/templates/check.conf    (revision 0)
+++ modules/youri-check/templates/check.conf    (revision 0)
@@ -0,0 +1,85 @@
+# vim:ft=yaml:et:sw=4
+
+# helper variables
+mirror: /distrib/mageia/distrib/cauldron
+mirror_i586: ${mirror}/i586/media
+mirror_x86_64: ${mirror}/x86_64/media
+
+# resultset definition
+resultset:
+    class: Youri::Check::Resultset::DBI
+    options:
+        driver: SQLite
+        host: localhost
+        base: youri.db

Where will it be exactly  ? in $HOME ?


+# media definitions
+medias:
+    core.i586:
+        class: Youri::Media::URPM
+        options:
+            name: core
+            type: binary
+            path: ${mirror_i586}/core
+            hdlist: ${mirror_i586}/media_info/hdlist_core.cz
+            options:
+                dependencies:
+                    allowed:
+                        - core.i586
+                missing:
+                    allowed:
+                        - core.sources

I guess the other directory will be added later ?

-- 
Michael Scherer

</PRE>







<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="003122.html">[Mageia-sysadm] Youri Check
</A></li>
	<LI>Next message: <A HREF="003124.html">[Mageia-sysadm] Youri Check
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#3123">[ date ]</a>
              <a href="thread.html#3123">[ thread ]</a>
              <a href="subject.html#3123">[ subject ]</a>
              <a href="author.html#3123">[ 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>