/[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 3147 - (show annotations) (download)
Thu May 23 15:05:56 2013 UTC (10 years, 10 months ago) by boklm
File size: 3902 byte(s)
buildsystem: don't hardcode distros in vhost_repository.conf

Use buildsystem::var::distros settings in vhost_repository.conf
template.

The URLs for the infra_1 and infra_2 repositories have been changed, and
will need to be updated in urpmi configuration on servers using those
repositories.

The old URLs were :
- http://repository.mageia.org/distrib/infra_1/
- http://repository.mageia.org/distrib/infra_2/
The new URLs are now :
- http://repository.mageia.org/bootstrap/infra_1/
- http://repository.mageia.org/bootstrap/infra_2/
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 $repo_allow_from = [
95 '2a02:2178:2:7::3/64', # valstar
96 '2a02:2178:2:7::4/64', # ecosse
97 '2a02:2178:2:7::5/64', # jonund
98 ".${::domain}",
99 '10.42.0',
100 '212.85.158.152', #rabbit
101 ]
102 class { 'buildsystem::var::distros':
103 default_distro => 'cauldron',
104 distros => {
105 'cauldron' => {
106 'arch' => $std_arch,
107 'medias' => $std_medias,
108 'base_media' => $std_base_media,
109 'branch' => 'Devel',
110 'version' => '3',
111 'submit_allowed' => "${svn_root_packages}/cauldron",
112 'macros' => $std_macros,
113 'repo_allow_from' => $repo_allow_from,
114 },
115
116 '1' => {
117 'arch' => $std_arch,
118 'medias' => $std_medias,
119 'base_media' => $std_base_media,
120 'branch' => 'Official',
121 'version' => '1',
122 'submit_allowed' => "${svn_root_packages}/updates/1",
123 'macros' => $std_macros,
124 'repo_allow_from' => $repo_allow_from,
125 },
126
127 '2' => {
128 'arch' => $std_arch,
129 'medias' => $std_medias,
130 'base_media' => $std_base_media,
131 'branch' => 'Official',
132 'version' => '2',
133 'submit_allowed' => "${svn_root_packages}/updates/2",
134 'macros' => $std_macros,
135 'repo_allow_from' => $repo_allow_from,
136 },
137
138 'infra_1' => {
139 'arch' => $std_arch,
140 'medias' => $infra_medias,
141 'base_media' => $std_base_media,
142 'branch' => 'Official',
143 'version' => '1',
144 'submit_allowed' => $svn_root_packages,
145 'macros' => $std_macros,
146 },
147
148 'infra_2' => {
149 'arch' => $std_arch,
150 'medias' => $infra_medias,
151 'base_media' => $std_base_media,
152 'branch' => 'Official',
153 'version' => '2',
154 'submit_allowed' => $svn_root_packages,
155 'macros' => $std_macros,
156 },
157 }
158 }
159
160 }

  ViewVC Help
Powered by ViewVC 1.1.30