/[adm]/puppet/deployment/mga_buildsystem/manifests/config.pp
ViewVC logotype

Contents of /puppet/deployment/mga_buildsystem/manifests/config.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3141 - (show annotations) (download)
Thu May 23 15:05:39 2013 UTC (10 years, 10 months ago) by boklm
File size: 3587 byte(s)
buildsystem: generate mgarepo.conf using $distros

Use settings from buildsystem::var::distros to create mgarep.conf.
1 class mga_buildsystem::config {
2 class { 'buildsystem::var::signbot':
3 keyid => '80420F66',
4 }
5
6 class { 'buildsystem::var::groups':
7 packagers => 'mga-packagers',
8 packagers_committers => 'mga-packagers-committers',
9 }
10
11 include buildsystem::var::scheduler
12 include buildsystem::var::repository
13 class { 'buildsystem::var::youri':
14 packages_archivedir => "${buildsystem::var::scheduler::homedir}/old",
15 }
16
17 class { 'buildsystem::var::binrepo':
18 uploadmail_from => "root@${::domain}",
19 uploadmail_to => "packages-commits@ml.${::domain}",
20 }
21
22 $svn_hostname = "svn.$::domain"
23 $svn_root_packages = "svn://${svn_hostname}/svn/packages"
24 class { 'buildsystem::var::mgarepo':
25 submit_host => "pkgsubmit.${::domain}",
26 svn_hostname => $svn_hostname,
27 svn_root_packages => $svn_root_packages,
28 oldurl => "svn+ssh://svn.${::domain}/svn/packages/misc",
29 conf => {
30 'global' => {
31 'ldap-server' => "ldap.${::domain}",
32 'ldap-base' => "ou=People,${::dc_suffix}",
33 'ldap-filterformat' => '(&(objectClass=inetOrgPerson)(uid=$username))',
34 'ldap-resultformat' => '$cn <$mail>',
35 }
36 }
37 }
38
39 $std_arch = ['i586', 'x86_64']
40 $std_repos = {
41 'release' => {
42 'media_types' => [ 'release' ],
43 },
44 'updates_testing' => {
45 'media_types' => [ 'testing' ],
46 'noauto' => '1',
47 },
48 'backports_testing' => {
49 'media_types' => [ 'testing' ],
50 'noauto' => '1',
51 },
52 'backports' => {
53 'media_types' => [ 'backports' ],
54 'noauto' => '1',
55 },
56 'updates' => {
57 'media_types' => [ 'updates' ],
58 'updates_for' => 'release',
59 },
60 }
61 $std_medias = {
62 'core' => {
63 'repos' => $std_repos,
64 'media_types' => [ 'official', 'free' ],
65 },
66 'nonfree' => {
67 'repos' => $std_repos,
68 'media_types' => [ 'official' ],
69 'noauto' => '1',
70 },
71 'tainted' => {
72 'repos' => $std_repos,
73 'media_types' => [ 'official' ],
74 'noauto' => '1',
75 },
76 }
77 $std_base_media = [ 'core/release', 'core/updates' ]
78 $infra_medias = {
79 'infra' => {
80 'repos' => {
81 'release' => {
82 'media_types' => [ 'release' ],
83 },
84 },
85 'media_types' => [ 'infra' ],
86 },
87 }
88 $std_macros = {
89 'distsuffix' => '.mga',
90 'distribution' => 'Mageia',
91 'vendor' => 'Mageia.Org',
92 '_real_vendor' => 'mageia',
93 }
94 class { 'buildsystem::var::distros':
95 default_distro => 'cauldron',
96 distros => {
97 'cauldron' => {
98 'arch' => $std_arch,
99 'medias' => $std_medias,
100 'base_media' => $std_base_media,
101 'branch' => 'Devel',
102 'version' => '3',
103 'submit_allowed' => "${svn_root_packages}/cauldron",
104 'macros' => $std_macros,
105 },
106
107 '1' => {
108 'arch' => $std_arch,
109 'medias' => $std_medias,
110 'base_media' => $std_base_media,
111 'branch' => 'Official',
112 'version' => '1',
113 'submit_allowed' => "${svn_root_packages}/updates/1",
114 'macros' => $std_macros,
115 },
116
117 '2' => {
118 'arch' => $std_arch,
119 'medias' => $std_medias,
120 'base_media' => $std_base_media,
121 'branch' => 'Official',
122 'version' => '2',
123 'submit_allowed' => "${svn_root_packages}/updates/2",
124 'macros' => $std_macros,
125 },
126
127 'infra_1' => {
128 'arch' => $std_arch,
129 'medias' => $infra_medias,
130 'base_media' => $std_base_media,
131 'branch' => 'Official',
132 'version' => '1',
133 'submit_allowed' => $svn_root_packages,
134 'macros' => $std_macros,
135 },
136
137 'infra_2' => {
138 'arch' => $std_arch,
139 'medias' => $infra_medias,
140 'base_media' => $std_base_media,
141 'branch' => 'Official',
142 'version' => '2',
143 'submit_allowed' => $svn_root_packages,
144 'macros' => $std_macros,
145 },
146 }
147 }
148
149 }

  ViewVC Help
Powered by ViewVC 1.1.30