1 |
# $default_distro: |
2 |
# the name of the default distribution |
3 |
# $distros: |
4 |
# a hash variable containing distributions informations indexed by |
5 |
# distribution name. Each distribution is itself an hash containing |
6 |
# the following infos: |
7 |
# { |
8 |
# # the 'cauldron' distribution |
9 |
# 'cauldron' => { |
10 |
# # list of arch supported by 'cauldron' |
11 |
# 'arch' => [ 'i586', 'x86_64' ], |
12 |
# # Set this if you don't want media.cfg to be generated |
13 |
# 'no_media_cfg_update' => true, |
14 |
# 'medias' => { |
15 |
# # the 'core' media |
16 |
# 'core' => { |
17 |
# 'repos' => { |
18 |
# # the 'release' repo in the 'core' media |
19 |
# 'release' => { |
20 |
# 'media_type' => [ 'release' ], |
21 |
# 'noauto' => '1', |
22 |
# # the 'release' repo should be listed first in media.cfg |
23 |
# 'order' => 0, |
24 |
# }, |
25 |
# # the 'updates' repo |
26 |
# 'updates' => { |
27 |
# 'media_type' => [ 'updates' ], |
28 |
# 'noauto' => '1', |
29 |
# # the 'updates' repo requires the 'release' repo |
30 |
# 'requires' => [ 'release' ], |
31 |
# # the 'updates' repo should be listed after 'release' in media.cfg |
32 |
# 'order' => 1, |
33 |
# }, |
34 |
# }, |
35 |
# # media_type for media.cfg |
36 |
# 'media_type' => [ 'official', 'free' ], |
37 |
# # if noauto is set to '1' either in medias or repos, |
38 |
# # the option will be added to media.cfg |
39 |
# 'noauto' => '1', |
40 |
# # list 'core' first in media.cfg |
41 |
# 'order' => 0, |
42 |
# }, |
43 |
# # the 'non-free' media |
44 |
# 'non-free' => { |
45 |
# 'repos' => { |
46 |
# ... |
47 |
# }, |
48 |
# 'media_type' => [ 'official', 'non-free' ], |
49 |
# # the 'non-free' media requires the 'core' media |
50 |
# 'requires' => [ 'core' ], |
51 |
# # list 'non-free' second |
52 |
# 'order' => 1, |
53 |
# } |
54 |
# }, |
55 |
# # the list of media used by iurt to build the chroots |
56 |
# 'base_medias' => [ 'core/release' ], |
57 |
# # optionally, a media.cfg template file can be specified, if |
58 |
# # the default one should not be used |
59 |
# 'tmpl_media.cfg' => 'buildsystem/something', |
60 |
# # branch is Devel or Official. Used in media.cfg. |
61 |
# 'branch' => 'Devel', |
62 |
# # Version of the distribution |
63 |
# 'version' => '3', |
64 |
# # SVN Urls allowed to submit |
65 |
# 'submit_allowed' => 'svn://svn.something/svn/packages/cauldron', |
66 |
# # rpm macros to set when build source package |
67 |
# 'macros' => { |
68 |
# 'distsuffix' => '.mga', |
69 |
# 'distribution' => 'Mageia', |
70 |
# 'vendor' => 'Mageia.Org', |
71 |
# }, |
72 |
# # set this if the distro is not mirrored. This is used to add |
73 |
# # an Alias in the vhost. |
74 |
# 'no_mirror' => true, |
75 |
# # list of IP or hostnames allowed to access this distro on the |
76 |
# # repository. If you don't want to filter allowed IPs, don't set |
77 |
# # this value |
78 |
# 'repo_allow_from' => [ '127.0.0.1', '10.0.0.1', '.mageia.org' ], |
79 |
# Optionally, the distribution can be based on the repos from an other |
80 |
# distribution. In this example we're saying that the distribution is |
81 |
# based on 2/core/release and 2/core/updates. |
82 |
# 'based_on' => { |
83 |
# '2' => { |
84 |
# 'core' => [ 'release', 'updates' ], |
85 |
# }, |
86 |
# }, |
87 |
# 'youri' => { |
88 |
# # Configuration for youri-upload |
89 |
# 'upload' => { |
90 |
# # list of enabled checks, actions and posts |
91 |
# 'targets' => { |
92 |
# 'checks' => [ |
93 |
# ... |
94 |
# ], |
95 |
# 'actions' => [ |
96 |
# ... |
97 |
# ], |
98 |
# 'posts' => [ |
99 |
# ... |
100 |
# ], |
101 |
# }, |
102 |
# 'checks' => { |
103 |
# # rpmlint checks options |
104 |
# 'rpmlint' => { |
105 |
# 'config' => '/usr/share/rpmlint/config', |
106 |
# 'path' => ''/usr/bin/rpmlint', |
107 |
# }, |
108 |
# }, |
109 |
# # options for actions |
110 |
# 'actions' => { |
111 |
# ... |
112 |
# }, |
113 |
# }, |
114 |
# # Configuration for youri-todo |
115 |
# 'todo' => { |
116 |
# ... |
117 |
# }, |
118 |
# }, |
119 |
# }, |
120 |
# } |
121 |
class buildsystem::var::distros( |
122 |
$default_distro, |
123 |
$distros |
124 |
) { } |