Merge lp:~milo/linaro-license-protection/bug1183689 into lp:~linaro-automation/linaro-license-protection/trunk
- bug1183689
- Merge into trunk
Status: | Superseded | ||||
---|---|---|---|---|---|
Proposed branch: | lp:~milo/linaro-license-protection/bug1183689 | ||||
Merge into: | lp:~linaro-automation/linaro-license-protection/trunk | ||||
Diff against target: |
1001 lines (+882/-0) (has conflicts) 23 files modified
README (+216/-0) apache/releases.linaro.org (+39/-0) apache/security/all-private-hwpack-teams.txt (+5/-0) apache/security/allowed-ops.txt (+1/-0) apache/security/arm-private-hwpack-teams.txt (+1/-0) apache/security/freescale-private-hwpack-teams.txt (+1/-0) apache/security/linaro-android-teams.txt (+2/-0) apache/security/linaro-teams.txt (+1/-0) apache/security/mservices.linaro.org-teams.txt (+2/-0) apache/security/samsung-private-hwpack-teams.txt (+1/-0) apache/security/ste-private-hwpack-teams.txt (+1/-0) apache/security/ti-private-hwpack-teams.txt (+1/-0) apache/snapshots.linaro.org (+165/-0) apache/staging.releases.linaro.org (+39/-0) apache/staging.snapshots.linaro.org (+164/-0) django/settings_releases.py (+54/-0) django/settings_snapshots.py (+54/-0) django/settings_staging_releases.py (+39/-0) django/settings_staging_snapshots.py (+20/-0) wsgi/wsgi_releases.py (+19/-0) wsgi/wsgi_snapshots.py (+19/-0) wsgi/wsgi_staging_releases.py (+19/-0) wsgi/wsgi_staging_snapshots.py (+19/-0) Conflict adding file README. Moved existing file to README.moved. |
||||
To merge this branch: | bzr merge lp:~milo/linaro-license-protection/bug1183689 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Linaro Automation & Validation | Pending | ||
Review via email: mp+165542@code.launchpad.net |
This proposal has been superseded by a proposal from 2013-05-24.
Commit message
Description of the change
Fixed Python paths to point to the correct ones.
On the new migrated EC2 instance, Python 2.6 is not installed anymore.
Unmerged revisions
- 32. By Milo Casagrande
-
Fixed Python path to point to Python 2.7.
- 31. By Paul Sokolovsky
-
Capture latest apache config from actual staging.
snapshots. linaro. org host. - 30. By Paul Sokolovsky
-
Update README with steps for /etc/apache2/
security/ population. - 29. By Paul Sokolovsky
-
Capture /etc/apache2/
security dir from snapshots. linaro. org This nostly contains OpenID group lists. These files are referenced
from *snapshots.linaro. org Apache site config files. - 28. By Paul Sokolovsky
-
Update name of deployment script.
- 27. By Georgy Redkozubov
-
Removed fallback support
- 26. By Georgy Redkozubov
-
[merge] Update LINUX_FILES according to spec
- 25. By Georgy Redkozubov
-
Remove HOWTO_flashfirm
ware.txt from mandatory files - 24. By Stevan Radaković
-
Move textile constants to settings so we can change them for releases.*.
- 23. By Данило Шеган
-
Update the snapshots.
linaro. org to match the actual production config.
Preview Diff
1 | === added file 'README' | |||
2 | --- README 1970-01-01 00:00:00 +0000 | |||
3 | +++ README 2013-05-24 07:30:35 +0000 | |||
4 | @@ -0,0 +1,216 @@ | |||
5 | 1 | Linaro License Protection configuration | ||
6 | 2 | ======================================= | ||
7 | 3 | |||
8 | 4 | This branch contains current production configuration for | ||
9 | 5 | |||
10 | 6 | * releases.linaro.org (hosted on mombin.canonical.com) | ||
11 | 7 | * snapshots.linaro.org (mombin) | ||
12 | 8 | * staging.releases.linaro.org (kahaku.canonical.com) | ||
13 | 9 | * staging.snapshots.linaro.org (kahaku.canonical.com) | ||
14 | 10 | |||
15 | 11 | |||
16 | 12 | Dependencies | ||
17 | 13 | ------------ | ||
18 | 14 | |||
19 | 15 | libapache2-mod-xsendfile >= 0.10 | ||
20 | 16 | libapache2-mod-python | ||
21 | 17 | python-django >= 1.3.1 | ||
22 | 18 | python-django-openid-auth | ||
23 | 19 | python-apache-openid | ||
24 | 20 | |||
25 | 21 | python-apache-openid is needed until we migrate existing apache | ||
26 | 22 | openid-protected directories to the new setup. | ||
27 | 23 | |||
28 | 24 | |||
29 | 25 | Pushing framework on snapshots.linaro.org | ||
30 | 26 | ----------------------------------------- | ||
31 | 27 | |||
32 | 28 | Pushing/uploading side is currently implemented as a multi-system setup: | ||
33 | 29 | |||
34 | 30 | * configuration on jenkins | ||
35 | 31 | * configuration of users on server | ||
36 | 32 | |||
37 | 33 | Configuration of jenkins | ||
38 | 34 | ........................ | ||
39 | 35 | |||
40 | 36 | * We are using Publish-over-SSH plugin for jenkins | ||
41 | 37 | |||
42 | 38 | * We perform two build (not publish, to allow for LAVA to have known URLs) | ||
43 | 39 | steps: | ||
44 | 40 | |||
45 | 41 | * publish artifacts over SSH (ends up on a private location on the server) | ||
46 | 42 | |||
47 | 43 | * call out a trigger script over SSH (to move files securely to a public | ||
48 | 44 | location) | ||
49 | 45 | |||
50 | 46 | * We use strictly "push from master" in advanced settings of publish-over-ssh | ||
51 | 47 | plugin, and keep private keys for both actions above on the master: | ||
52 | 48 | |||
53 | 49 | /home/ubuntu/snapshots-sync2/linaro-android-build-publish — | ||
54 | 50 | linaro-android-build-publish | ||
55 | 51 | /home/ubuntu/snapshots-sync2/linaro-android-build-publish-trigger — | ||
56 | 52 | linaro-android-build-publish-trigger | ||
57 | 53 | |||
58 | 54 | Configuration of users on the receiving server (snapshots.l.o) | ||
59 | 55 | .............................................................. | ||
60 | 56 | |||
61 | 57 | For the two actions above, we have two separate users for all hosts | ||
62 | 58 | accessing the system (two for android-build.linaro.org and another two | ||
63 | 59 | for ci.linaro.org at this time). | ||
64 | 60 | |||
65 | 61 | One of the users is a sftp/push user, and another is the trigger user that | ||
66 | 62 | shuffles the files around. | ||
67 | 63 | |||
68 | 64 | Current users and their configurations: | ||
69 | 65 | |||
70 | 66 | * linaro-android-build-publish | ||
71 | 67 | /etc/ssh/user-authorized-keys/linaro-android-build-publish | ||
72 | 68 | |||
73 | 69 | command="/usr/lib/sftp-server",no-pty,no-port-forwarding,\ | ||
74 | 70 | no-X11-forwarding,no-agent-forwarding,from="50.17.250.69" \ | ||
75 | 71 | <PUBLIC-SSH-KEY-DATA> | ||
76 | 72 | |||
77 | 73 | (chrooted to /srv/snapshots.linaro.org/uploads/) | ||
78 | 74 | |||
79 | 75 | * linaro-android-build-publish-trigger: | ||
80 | 76 | |||
81 | 77 | /etc/ssh/user-authorized-keys/linaro-android-build-publish-trigger | ||
82 | 78 | |||
83 | 79 | command="/home/linaro-android-build-publish-trigger/scripts\ | ||
84 | 80 | /trigger-linaro-android-build-publish.sh \ | ||
85 | 81 | ${SSH_ORIGINAL_COMMAND#* }",\ | ||
86 | 82 | no-pty,no-port-forwarding,no-X11-forwarding,no-agent-forwarding, | ||
87 | 83 | from="50.17.250.69" <PUBLIC-SSH-KEY-DATA> | ||
88 | 84 | |||
89 | 85 | The script being executed passes parameters to publish_to_snapshots | ||
90 | 86 | which moves files from /uploads/ into appropriate public directory: | ||
91 | 87 | |||
92 | 88 | #!/bin/sh | ||
93 | 89 | if [ "$(id -un)" != "linaro-android-build-publish-trigger" ]; then | ||
94 | 90 | echo "This script is designed to be run as linaro-android-build-publish-trigger user" | ||
95 | 91 | exit 1 | ||
96 | 92 | fi | ||
97 | 93 | sudo -u linaro-android-build-publish /home/linaro-android-build-publish/linaro-license-protection/scripts/publish_to_snapshots.py "$@" | ||
98 | 94 | |||
99 | 95 | * linaro-ci-publish | ||
100 | 96 | |||
101 | 97 | Exactly the same as linaro-android-build-publish, except for the IP | ||
102 | 98 | (allowing ci.linaro.org from 50.17.200.206) and SSH key data. | ||
103 | 99 | |||
104 | 100 | * linaro-ci-publish-trigger | ||
105 | 101 | |||
106 | 102 | Like linaro-android-build-publish-trigger, with different IP | ||
107 | 103 | and SSH key data. Script lives in | ||
108 | 104 | |||
109 | 105 | /home/linaro-ci-publish-trigger/scripts/trigger-linaro-ci-publish.sh | ||
110 | 106 | |||
111 | 107 | and is of similar structure to the one for the user | ||
112 | 108 | linaro-android-build-publish-trigger. | ||
113 | 109 | |||
114 | 110 | android-build.linaro.org | ||
115 | 111 | ........................ | ||
116 | 112 | |||
117 | 113 | Runs Jenkins and uses SFTP plugin to access the above two users. Private | ||
118 | 114 | keys live in | ||
119 | 115 | |||
120 | 116 | /home/ubuntu/snapshots-sync2/linaro-android-build-publish — | ||
121 | 117 | linaro-android-build-publish | ||
122 | 118 | /home/ubuntu/snapshots-sync2/linaro-android-build-publish-trigger — | ||
123 | 119 | linaro-android-build-publish-trigger | ||
124 | 120 | |||
125 | 121 | To ensure serialization of steps, and allow LAVA submission, these happen as | ||
126 | 122 | build steps, and not as publishing steps. | ||
127 | 123 | |||
128 | 124 | Deployment steps | ||
129 | 125 | ---------------- | ||
130 | 126 | |||
131 | 127 | This documents our current deployment while at the same time representing | ||
132 | 128 | an example production deployment. | ||
133 | 129 | |||
134 | 130 | 1. Install the dependencies | ||
135 | 131 | (see the "Dependencies" section) | ||
136 | 132 | |||
137 | 133 | 2. Get the code | ||
138 | 134 | |||
139 | 135 | mkdir -p /srv/shared-branches | ||
140 | 136 | cd /srv/shared-branches | ||
141 | 137 | bzr branch lp:linaro-license-protection | ||
142 | 138 | |||
143 | 139 | (we are actually using http URLs since lp: defaults to bzr+ssh which | ||
144 | 140 | doesn't work on system accounts) | ||
145 | 141 | |||
146 | 142 | 3. Get the configuration | ||
147 | 143 | |||
148 | 144 | Configuration files for deploying to snapshots.linaro.org, | ||
149 | 145 | releases.linaro.org, staging.snapshots.linaro.org | ||
150 | 146 | and staging.releases.linaro.org all live in | ||
151 | 147 | |||
152 | 148 | lp:linaro-license-protection/configs | ||
153 | 149 | |||
154 | 150 | We need to branch that into /srv/shared-branches as well: | ||
155 | 151 | |||
156 | 152 | cd /srv/shared-branches | ||
157 | 153 | bzr branch lp:linaro-license-protection/configs linaro-license-protection-configs | ||
158 | 154 | |||
159 | 155 | 4. Checkout branches for the services you want to use: | ||
160 | 156 | |||
161 | 157 | (cd /srv/staging.snapshots.linaro.org && | ||
162 | 158 | bzr checkout /srv/shared-branches/linaro-license-protection-configs configs && | ||
163 | 159 | bzr checkout /srv/shared-branches/linaro-license-protection) | ||
164 | 160 | |||
165 | 161 | Replace "/srv/staging.snapshots.linaro.org" with one of | ||
166 | 162 | /srv/staging.releases.linaro.org | ||
167 | 163 | /srv/snapshots.linaro.org | ||
168 | 164 | /srv/releases.linaro.org | ||
169 | 165 | |||
170 | 166 | depending on the service you are deploying. | ||
171 | 167 | |||
172 | 168 | If you use these paths, none of the config files will need updating. | ||
173 | 169 | |||
174 | 170 | 5. Configure apache2 | ||
175 | 171 | |||
176 | 172 | Make sure mod-xsendfile and mod-python are enabled. | ||
177 | 173 | Copy appropriate | ||
178 | 174 | /srv/staging.snapshots.linaro.org/configs/apache/staging.snapshots.linaro.org | ||
179 | 175 | files to /etc/apache2/sites-available | ||
180 | 176 | |||
181 | 177 | Copy apache/security/ directory to /etc/apache2/security (it contains OpenID group | ||
182 | 178 | mappings, etc). | ||
183 | 179 | |||
184 | 180 | Add appropriate NameVirtualHost directive to | ||
185 | 181 | |||
186 | 182 | /etc/apache2/sites-enabled/000-default | ||
187 | 183 | |||
188 | 184 | Run "a2ensite staging.snapshots.linaro.org". | ||
189 | 185 | |||
190 | 186 | You also need to set up SSL certificate for *snapshots.linaro.org. | ||
191 | 187 | |||
192 | 188 | 6. Create databases and set up static files | ||
193 | 189 | |||
194 | 190 | Make sure appropriate configs/django directory is in the PYTHONPATH | ||
195 | 191 | and set DJANGO_SETTINGS_MODULE and then run django-admin: | ||
196 | 192 | |||
197 | 193 | export PYTHONPATH=/srv/staging.snapshots.linaro.org:/srv/staging.snapshots.linaro.org/linaro-license-protection:/srv/staging.snapshots.linaro.org/configs/django | ||
198 | 194 | export DJANGO_SETTINGS_MODULE=settings_staging_snapshots | ||
199 | 195 | mkdir -p /srv/staging.snapshots.linaro.org/db | ||
200 | 196 | django-admin syncdb --noinput | ||
201 | 197 | django-admin collectstatic --noinput | ||
202 | 198 | |||
203 | 199 | 7. Set up a cron job to keep code updating automatically | ||
204 | 200 | |||
205 | 201 | You may want to automatically keep code up to date (mostly for staging) | ||
206 | 202 | instances. | ||
207 | 203 | |||
208 | 204 | There is | ||
209 | 205 | |||
210 | 206 | scripts/update-deployment.py | ||
211 | 207 | |||
212 | 208 | from lp:linaro-license-protection which can be run from a cronjob to keep | ||
213 | 209 | the above deployment always up to date. | ||
214 | 210 | |||
215 | 211 | 8. Ensure license_protected_downloads/config.py contains relevant white-listed | ||
216 | 212 | IP addresses: | ||
217 | 213 | |||
218 | 214 | For releases.linaro.org: | ||
219 | 215 | * android-build.linaro.org (50.17.250.69) | ||
220 | 216 | * validation.linaro.org (213.123.120.124) | ||
221 | 0 | 217 | ||
222 | === renamed file 'README' => 'README.moved' | |||
223 | === added directory 'apache' | |||
224 | === added file 'apache/releases.linaro.org' | |||
225 | --- apache/releases.linaro.org 1970-01-01 00:00:00 +0000 | |||
226 | +++ apache/releases.linaro.org 2013-05-24 07:30:35 +0000 | |||
227 | @@ -0,0 +1,39 @@ | |||
228 | 1 | <VirtualHost 91.189.95.16:80> | ||
229 | 2 | Alias /static/ /srv/releases.linaro.org/linaro-license-protection/static/ | ||
230 | 3 | DocumentRoot /srv/releases.linaro.org/www | ||
231 | 4 | ServerName releases.linaro.org | ||
232 | 5 | ServerAdmin webmaster@linaro.org | ||
233 | 6 | CustomLog /var/log/apache2/releases.linaro.org-access.log combined | ||
234 | 7 | ErrorLog /var/log/apache2/releases.linaro.org-error.log | ||
235 | 8 | |||
236 | 9 | <Directory /srv/releases.linaro.org/linaro-license-protection/static> | ||
237 | 10 | Order deny,allow | ||
238 | 11 | Allow from all | ||
239 | 12 | </Directory> | ||
240 | 13 | |||
241 | 14 | <Directory /srv/releases.linaro.org/www> | ||
242 | 15 | Order deny,allow | ||
243 | 16 | Allow from all | ||
244 | 17 | </Directory> | ||
245 | 18 | |||
246 | 19 | XSendFile on | ||
247 | 20 | XSendFilePath /srv/releases.linaro.org/www | ||
248 | 21 | |||
249 | 22 | WSGIScriptAlias / /srv/releases.linaro.org/configs/wsgi/wsgi_releases.py | ||
250 | 23 | WSGIDaemonProcess linaro-license-protection-releases | ||
251 | 24 | |||
252 | 25 | <Directory /srv/releases.linaro.org/configs/wsgi> | ||
253 | 26 | <Files wsgi_releases.py> | ||
254 | 27 | Order deny,allow | ||
255 | 28 | Allow from all | ||
256 | 29 | </Files> | ||
257 | 30 | </Directory> | ||
258 | 31 | |||
259 | 32 | <Directory /> | ||
260 | 33 | IndexOptions NameWidth=* +SuppressDescription | ||
261 | 34 | Options +Indexes +FollowSymLinks | ||
262 | 35 | IndexIgnore favicon.ico HEADER.html | ||
263 | 36 | AllowOverride FileInfo Indexes | ||
264 | 37 | </Directory> | ||
265 | 38 | |||
266 | 39 | </VirtualHost> | ||
267 | 0 | 40 | ||
268 | === added directory 'apache/security' | |||
269 | === added file 'apache/security/all-private-hwpack-teams.txt' | |||
270 | --- apache/security/all-private-hwpack-teams.txt 1970-01-01 00:00:00 +0000 | |||
271 | +++ apache/security/all-private-hwpack-teams.txt 2013-05-24 07:30:35 +0000 | |||
272 | @@ -0,0 +1,5 @@ | |||
273 | 1 | linaro-landing-team-freescale | ||
274 | 2 | linaro-landing-team-samsung | ||
275 | 3 | linaro-landing-team-ste | ||
276 | 4 | linaro-landing-team-ti | ||
277 | 5 | linaro-landing-team-arm | ||
278 | 0 | 6 | ||
279 | === added file 'apache/security/allowed-ops.txt' | |||
280 | --- apache/security/allowed-ops.txt 1970-01-01 00:00:00 +0000 | |||
281 | +++ apache/security/allowed-ops.txt 2013-05-24 07:30:35 +0000 | |||
282 | @@ -0,0 +1,1 @@ | |||
283 | 1 | Ubuntu=https://login.ubuntu.com | ||
284 | 0 | 2 | ||
285 | === added file 'apache/security/arm-private-hwpack-teams.txt' | |||
286 | --- apache/security/arm-private-hwpack-teams.txt 1970-01-01 00:00:00 +0000 | |||
287 | +++ apache/security/arm-private-hwpack-teams.txt 2013-05-24 07:30:35 +0000 | |||
288 | @@ -0,0 +1,1 @@ | |||
289 | 1 | linaro-landing-team-arm | ||
290 | 0 | 2 | ||
291 | === added file 'apache/security/freescale-private-hwpack-teams.txt' | |||
292 | --- apache/security/freescale-private-hwpack-teams.txt 1970-01-01 00:00:00 +0000 | |||
293 | +++ apache/security/freescale-private-hwpack-teams.txt 2013-05-24 07:30:35 +0000 | |||
294 | @@ -0,0 +1,1 @@ | |||
295 | 1 | linaro-landing-team-freescale | ||
296 | 0 | 2 | ||
297 | === added file 'apache/security/linaro-android-teams.txt' | |||
298 | --- apache/security/linaro-android-teams.txt 1970-01-01 00:00:00 +0000 | |||
299 | +++ apache/security/linaro-android-teams.txt 2013-05-24 07:30:35 +0000 | |||
300 | @@ -0,0 +1,2 @@ | |||
301 | 1 | linaro | ||
302 | 2 | linaro-android-restricted | ||
303 | 0 | 3 | ||
304 | === added file 'apache/security/linaro-teams.txt' | |||
305 | --- apache/security/linaro-teams.txt 1970-01-01 00:00:00 +0000 | |||
306 | +++ apache/security/linaro-teams.txt 2013-05-24 07:30:35 +0000 | |||
307 | @@ -0,0 +1,1 @@ | |||
308 | 1 | linaro | ||
309 | 0 | 2 | ||
310 | === added file 'apache/security/mservices.linaro.org-teams.txt' | |||
311 | --- apache/security/mservices.linaro.org-teams.txt 1970-01-01 00:00:00 +0000 | |||
312 | +++ apache/security/mservices.linaro.org-teams.txt 2013-05-24 07:30:35 +0000 | |||
313 | @@ -0,0 +1,2 @@ | |||
314 | 1 | linaro-member-services-leadership | ||
315 | 2 | canonical-sysadmins | ||
316 | 0 | 3 | ||
317 | === added file 'apache/security/samsung-private-hwpack-teams.txt' | |||
318 | --- apache/security/samsung-private-hwpack-teams.txt 1970-01-01 00:00:00 +0000 | |||
319 | +++ apache/security/samsung-private-hwpack-teams.txt 2013-05-24 07:30:35 +0000 | |||
320 | @@ -0,0 +1,1 @@ | |||
321 | 1 | linaro-landing-team-samsung | ||
322 | 0 | 2 | ||
323 | === added file 'apache/security/ste-private-hwpack-teams.txt' | |||
324 | --- apache/security/ste-private-hwpack-teams.txt 1970-01-01 00:00:00 +0000 | |||
325 | +++ apache/security/ste-private-hwpack-teams.txt 2013-05-24 07:30:35 +0000 | |||
326 | @@ -0,0 +1,1 @@ | |||
327 | 1 | linaro-landing-team-ste | ||
328 | 0 | 2 | ||
329 | === added file 'apache/security/ti-private-hwpack-teams.txt' | |||
330 | --- apache/security/ti-private-hwpack-teams.txt 1970-01-01 00:00:00 +0000 | |||
331 | +++ apache/security/ti-private-hwpack-teams.txt 2013-05-24 07:30:35 +0000 | |||
332 | @@ -0,0 +1,1 @@ | |||
333 | 1 | linaro-landing-team-ti | ||
334 | 0 | 2 | ||
335 | === added file 'apache/snapshots.linaro.org' | |||
336 | --- apache/snapshots.linaro.org 1970-01-01 00:00:00 +0000 | |||
337 | +++ apache/snapshots.linaro.org 2013-05-24 07:30:35 +0000 | |||
338 | @@ -0,0 +1,165 @@ | |||
339 | 1 | <VirtualHost 91.189.95.16:80 91.189.95.247:80> | ||
340 | 2 | |||
341 | 3 | Alias /static/ /srv/snapshots.linaro.org/linaro-license-protection/static/ | ||
342 | 4 | DocumentRoot /srv/snapshots.linaro.org/www | ||
343 | 5 | ServerName snapshots.linaro.org | ||
344 | 6 | ServerAdmin webmaster@linaro.org | ||
345 | 7 | CustomLog /var/log/apache2/snapshots.linaro.org-access.log combined | ||
346 | 8 | ErrorLog /var/log/apache2/snapshots.linaro.org-error.log | ||
347 | 9 | |||
348 | 10 | # SSL + OpenID for these: | ||
349 | 11 | Redirect /hwpacks https://snapshots.linaro.org/hwpacks | ||
350 | 12 | Redirect /android/~linaro-android-private https://snapshots.linaro.org/android/~linaro-android-private | ||
351 | 13 | Redirect /android/~linaro-android-restricted https://snapshots.linaro.org/android/~linaro-android-restricted | ||
352 | 14 | Redirect /precise/restricted https://snapshots.linaro.org/precise/restricted | ||
353 | 15 | |||
354 | 16 | <Directory /srv/snapshots.linaro.org/linaro-license-protection/static> | ||
355 | 17 | Order deny,allow | ||
356 | 18 | Allow from all | ||
357 | 19 | </Directory> | ||
358 | 20 | |||
359 | 21 | <Directory /srv/snapshots.linaro.org/www> | ||
360 | 22 | Order deny,allow | ||
361 | 23 | Allow from all | ||
362 | 24 | </Directory> | ||
363 | 25 | |||
364 | 26 | XSendFile on | ||
365 | 27 | XSendFilePath /srv/snapshots.linaro.org/www | ||
366 | 28 | |||
367 | 29 | WSGIScriptAlias / /srv/snapshots.linaro.org/configs/wsgi/wsgi_snapshots.py | ||
368 | 30 | WSGIDaemonProcess linaro-license-protection-snapshots | ||
369 | 31 | |||
370 | 32 | <Directory /srv/snapshots.linaro.org/configs/wsgi> | ||
371 | 33 | <Files wsgi_snapshots.py> | ||
372 | 34 | Order deny,allow | ||
373 | 35 | Allow from all | ||
374 | 36 | </Files> | ||
375 | 37 | </Directory> | ||
376 | 38 | |||
377 | 39 | <Directory /> | ||
378 | 40 | IndexOptions NameWidth=* +SuppressDescription | ||
379 | 41 | Options +Indexes +FollowSymLinks | ||
380 | 42 | IndexIgnore favicon.ico HEADER.html | ||
381 | 43 | AllowOverride FileInfo Indexes | ||
382 | 44 | </Directory> | ||
383 | 45 | |||
384 | 46 | </VirtualHost> | ||
385 | 47 | |||
386 | 48 | <VirtualHost 91.189.95.247:443> | ||
387 | 49 | |||
388 | 50 | Alias /static/ /srv/snapshots.linaro.org/linaro-license-protection/static/ | ||
389 | 51 | DocumentRoot /srv/snapshots.linaro.org/www | ||
390 | 52 | ServerName snapshots.linaro.org | ||
391 | 53 | ServerAdmin webmaster@linaro.org | ||
392 | 54 | CustomLog /var/log/apache2/snapshots.linaro.org-access.log combined | ||
393 | 55 | ErrorLog /var/log/apache2/snapshots.linaro.org-error.log | ||
394 | 56 | |||
395 | 57 | SSLEngine On | ||
396 | 58 | SSLCertificateFile /etc/apache2/ssl/snapshots.linaro.org.crt | ||
397 | 59 | SSLCertificateKeyFile /etc/apache2/ssl/snapshots.linaro.org.key | ||
398 | 60 | SSLCertificateChainFile /etc/apache2/ssl/gd_bundle.crt | ||
399 | 61 | |||
400 | 62 | <Directory /srv/snapshots.linaro.org/linaro-license-protection/static> | ||
401 | 63 | Order deny,allow | ||
402 | 64 | Allow from all | ||
403 | 65 | </Directory> | ||
404 | 66 | |||
405 | 67 | <Directory /srv/snapshots.linaro.org/www> | ||
406 | 68 | Order deny,allow | ||
407 | 69 | Allow from all | ||
408 | 70 | </Directory> | ||
409 | 71 | |||
410 | 72 | XSendFile on | ||
411 | 73 | XSendFilePath /srv/snapshots.linaro.org/www | ||
412 | 74 | |||
413 | 75 | WSGIScriptAlias / /srv/snapshots.linaro.org/configs/wsgi/wsgi_snapshots.py | ||
414 | 76 | WSGIDaemonProcess linaro-license-protection-snapshots-ssl | ||
415 | 77 | |||
416 | 78 | <Directory /srv/snapshots.linaro.org/configs/wsgi> | ||
417 | 79 | <Files wsgi_snapshots.py> | ||
418 | 80 | Order deny,allow | ||
419 | 81 | Allow from all | ||
420 | 82 | </Files> | ||
421 | 83 | </Directory> | ||
422 | 84 | |||
423 | 85 | <Directory /> | ||
424 | 86 | IndexOptions NameWidth=* +SuppressDescription | ||
425 | 87 | Options +Indexes +FollowSymLinks | ||
426 | 88 | IndexIgnore favicon.ico HEADER.html | ||
427 | 89 | AllowOverride FileInfo Indexes | ||
428 | 90 | </Directory> | ||
429 | 91 | |||
430 | 92 | <Location "/hwpacks"> | ||
431 | 93 | PythonAccessHandler apache_openid::protect | ||
432 | 94 | PythonOption handler openidteams | ||
433 | 95 | PythonOption authorized-teams-list-url "file:///etc/apache2/security/all-private-hwpack-teams.txt" | ||
434 | 96 | PythonOption action-path "/openid/" | ||
435 | 97 | </Location> | ||
436 | 98 | |||
437 | 99 | <Location "/openid/"> | ||
438 | 100 | Allow from all | ||
439 | 101 | SetHandler mod_python | ||
440 | 102 | PythonAccessHandler apache_openid::protect | ||
441 | 103 | PythonOption handler openidteams | ||
442 | 104 | PythonOption store-type file | ||
443 | 105 | PythonOption store-directory /var/cache/apache2/openid/ | ||
444 | 106 | PythonOption allowed-op-list-url "file:///etc/apache2/security/allowed-ops.txt" | ||
445 | 107 | PythonOption authorized-teams-list-url "file:///etc/apache2/security/all-private-hwpack-teams.txt" | ||
446 | 108 | PythonOption action-path "/openid/" | ||
447 | 109 | </Location> | ||
448 | 110 | |||
449 | 111 | <Location "/android/~linaro-android-restricted"> | ||
450 | 112 | PythonAccessHandler apache_openid::protect | ||
451 | 113 | PythonOption handler openidteams | ||
452 | 114 | PythonOption authorized-teams-list-url "file:///etc/apache2/security/linaro-teams.txt" | ||
453 | 115 | PythonOption action-path "/openid/" | ||
454 | 116 | </Location> | ||
455 | 117 | |||
456 | 118 | <Location "/precise/restricted"> | ||
457 | 119 | PythonAccessHandler apache_openid::protect | ||
458 | 120 | PythonOption handler openidteams | ||
459 | 121 | PythonOption authorized-teams-list-url "file:///etc/apache2/security/linaro-teams.txt" | ||
460 | 122 | PythonOption action-path "/openid/" | ||
461 | 123 | </Location> | ||
462 | 124 | |||
463 | 125 | Alias /hwpacks/freescale /srv/landing-teams/hwpacks/freescale | ||
464 | 126 | <Location "/hwpacks/freescale"> | ||
465 | 127 | PythonAccessHandler apache_openid::protect | ||
466 | 128 | PythonOption handler openidteams | ||
467 | 129 | PythonOption authorized-teams-list-url "file:///etc/apache2/security/freescale-private-hwpack-teams.txt" | ||
468 | 130 | PythonOption action-path "/openid/" | ||
469 | 131 | </Location> | ||
470 | 132 | |||
471 | 133 | Alias /hwpacks/samsung /srv/landing-teams/hwpacks/samsung | ||
472 | 134 | <Location "/hwpacks/samsung"> | ||
473 | 135 | PythonAccessHandler apache_openid::protect | ||
474 | 136 | PythonOption handler openidteams | ||
475 | 137 | PythonOption authorized-teams-list-url "file:///etc/apache2/security/samsung-private-hwpack-teams.txt" | ||
476 | 138 | PythonOption action-path "/openid/" | ||
477 | 139 | </Location> | ||
478 | 140 | |||
479 | 141 | Alias /hwpacks/ste /srv/landing-teams/hwpacks/ste | ||
480 | 142 | <Location "/hwpacks/ste"> | ||
481 | 143 | PythonAccessHandler apache_openid::protect | ||
482 | 144 | PythonOption handler openidteams | ||
483 | 145 | PythonOption authorized-teams-list-url "file:///etc/apache2/security/ste-private-hwpack-teams.txt" | ||
484 | 146 | PythonOption action-path "/openid/" | ||
485 | 147 | </Location> | ||
486 | 148 | |||
487 | 149 | Alias /hwpacks/ti /srv/landing-teams/hwpacks/ti | ||
488 | 150 | <Location "/hwpacks/ti"> | ||
489 | 151 | PythonAccessHandler apache_openid::protect | ||
490 | 152 | PythonOption handler openidteams | ||
491 | 153 | PythonOption authorized-teams-list-url "file:///etc/apache2/security/ti-private-hwpack-teams.txt" | ||
492 | 154 | PythonOption action-path "/openid/" | ||
493 | 155 | </Location> | ||
494 | 156 | |||
495 | 157 | Alias /hwpacks/arm /srv/landing-teams/hwpacks/arm | ||
496 | 158 | <Location "/hwpacks/arm"> | ||
497 | 159 | PythonAccessHandler apache_openid::protect | ||
498 | 160 | PythonOption handler openidteams | ||
499 | 161 | PythonOption authorized-teams-list-url "file:///etc/apache2/security/arm-private-hwpack-teams.txt" | ||
500 | 162 | PythonOption action-path "/openid/" | ||
501 | 163 | </Location> | ||
502 | 164 | |||
503 | 165 | </VirtualHost> | ||
504 | 0 | 166 | ||
505 | === added file 'apache/staging.releases.linaro.org' | |||
506 | --- apache/staging.releases.linaro.org 1970-01-01 00:00:00 +0000 | |||
507 | +++ apache/staging.releases.linaro.org 2013-05-24 07:30:35 +0000 | |||
508 | @@ -0,0 +1,39 @@ | |||
509 | 1 | <VirtualHost 91.189.95.80:80> | ||
510 | 2 | Alias /static/ /srv/staging.releases.linaro.org/linaro-license-protection/static/ | ||
511 | 3 | DocumentRoot /srv/staging.releases.linaro.org/www | ||
512 | 4 | ServerName staging.releases.linaro.org | ||
513 | 5 | ServerAdmin webmaster@linaro.org | ||
514 | 6 | CustomLog /var/log/apache2/staging.releases.linaro.org-access.log combined | ||
515 | 7 | ErrorLog /var/log/apache2/staging.releases.linaro.org-error.log | ||
516 | 8 | |||
517 | 9 | <Directory /srv/staging.releases.linaro.org/linaro-license-protection/static> | ||
518 | 10 | Order deny,allow | ||
519 | 11 | Allow from all | ||
520 | 12 | </Directory> | ||
521 | 13 | |||
522 | 14 | <Directory /srv/staging.releases.linaro.org/www> | ||
523 | 15 | Order deny,allow | ||
524 | 16 | Allow from all | ||
525 | 17 | </Directory> | ||
526 | 18 | |||
527 | 19 | XSendFile on | ||
528 | 20 | XSendFilePath /srv/staging.releases.linaro.org/www | ||
529 | 21 | |||
530 | 22 | WSGIScriptAlias / /srv/staging.releases.linaro.org/configs/wsgi/wsgi_staging_releases.py | ||
531 | 23 | WSGIDaemonProcess linaro-license-protection-staging-releases | ||
532 | 24 | |||
533 | 25 | <Directory /srv/staging.releases.linaro.org/configs/wsgi> | ||
534 | 26 | <Files wsgi_staging_releases.py> | ||
535 | 27 | Order deny,allow | ||
536 | 28 | Allow from all | ||
537 | 29 | </Files> | ||
538 | 30 | </Directory> | ||
539 | 31 | |||
540 | 32 | <Directory /> | ||
541 | 33 | IndexOptions NameWidth=* +SuppressDescription | ||
542 | 34 | Options +Indexes +FollowSymLinks | ||
543 | 35 | IndexIgnore favicon.ico HEADER.html | ||
544 | 36 | AllowOverride FileInfo Indexes | ||
545 | 37 | </Directory> | ||
546 | 38 | |||
547 | 39 | </VirtualHost> | ||
548 | 0 | 40 | ||
549 | === added file 'apache/staging.snapshots.linaro.org' | |||
550 | --- apache/staging.snapshots.linaro.org 1970-01-01 00:00:00 +0000 | |||
551 | +++ apache/staging.snapshots.linaro.org 2013-05-24 07:30:35 +0000 | |||
552 | @@ -0,0 +1,164 @@ | |||
553 | 1 | <VirtualHost 91.189.95.80:80> | ||
554 | 2 | |||
555 | 3 | Alias /static/ /srv/staging.snapshots.linaro.org/linaro-license-protection/static/ | ||
556 | 4 | DocumentRoot /srv/staging.snapshots.linaro.org/www | ||
557 | 5 | ServerName staging.snapshots.linaro.org | ||
558 | 6 | ServerAdmin webmaster@linaro.org | ||
559 | 7 | CustomLog /var/log/apache2/staging.snapshots.linaro.org-access.log combined | ||
560 | 8 | ErrorLog /var/log/apache2/staging.snapshots.linaro.org-error.log | ||
561 | 9 | |||
562 | 10 | Redirect /hwpacks https://staging.snapshots.linaro.org/hwpacks | ||
563 | 11 | Redirect /precise/restricted https://staging.snapshots.linaro.org/precise/restricted | ||
564 | 12 | Redirect /android/~linaro-android-private https://staging.snapshots.linaro.org/android/~linaro-android-private | ||
565 | 13 | Redirect /android/~linaro-android-restricted https://staging.snapshots.linaro.org/android/~linaro-android-restricted | ||
566 | 14 | |||
567 | 15 | <Directory /srv/staging.snapshots.linaro.org/linaro-license-protection/static> | ||
568 | 16 | Order deny,allow | ||
569 | 17 | Allow from all | ||
570 | 18 | </Directory> | ||
571 | 19 | |||
572 | 20 | <Directory /srv/staging.snapshots.linaro.org/www> | ||
573 | 21 | Order deny,allow | ||
574 | 22 | Allow from all | ||
575 | 23 | </Directory> | ||
576 | 24 | |||
577 | 25 | XSendFile on | ||
578 | 26 | XSendFilePath /srv/staging.snapshots.linaro.org/www | ||
579 | 27 | |||
580 | 28 | WSGIScriptAlias / /srv/staging.snapshots.linaro.org/configs/wsgi/wsgi_staging_snapshots.py | ||
581 | 29 | WSGIDaemonProcess linaro-license-protection-staging-snapshots | ||
582 | 30 | |||
583 | 31 | <Directory /srv/staging.snapshots.linaro.org/configs/wsgi> | ||
584 | 32 | <Files wsgi_staging_snapshots.py> | ||
585 | 33 | Order deny,allow | ||
586 | 34 | Allow from all | ||
587 | 35 | </Files> | ||
588 | 36 | </Directory> | ||
589 | 37 | |||
590 | 38 | <Directory /> | ||
591 | 39 | IndexOptions NameWidth=* +SuppressDescription | ||
592 | 40 | Options +Indexes +FollowSymLinks | ||
593 | 41 | IndexIgnore favicon.ico HEADER.html | ||
594 | 42 | AllowOverride FileInfo Indexes | ||
595 | 43 | </Directory> | ||
596 | 44 | |||
597 | 45 | </VirtualHost> | ||
598 | 46 | |||
599 | 47 | <VirtualHost 91.189.95.80:443> | ||
600 | 48 | |||
601 | 49 | Alias /static/ /srv/staging.snapshots.linaro.org/linaro-license-protection/static/ | ||
602 | 50 | DocumentRoot /srv/staging.snapshots.linaro.org/www | ||
603 | 51 | ServerName staging.snapshots.linaro.org | ||
604 | 52 | ServerAdmin webmaster@linaro.org | ||
605 | 53 | CustomLog /var/log/apache2/staging.snapshots.linaro.org-access.log combined | ||
606 | 54 | ErrorLog /var/log/apache2/staging.snapshots.linaro.org-error.log | ||
607 | 55 | |||
608 | 56 | SSLEngine On | ||
609 | 57 | SSLCertificateFile /etc/apache2/ssl/staging.snapshots.linaro.org.pem | ||
610 | 58 | |||
611 | 59 | <Directory /srv/staging.snapshots.linaro.org/linaro-license-protection/static> | ||
612 | 60 | Order deny,allow | ||
613 | 61 | Allow from all | ||
614 | 62 | </Directory> | ||
615 | 63 | |||
616 | 64 | <Directory /srv/staging.snapshots.linaro.org/www> | ||
617 | 65 | Order deny,allow | ||
618 | 66 | Allow from all | ||
619 | 67 | </Directory> | ||
620 | 68 | |||
621 | 69 | XSendFile on | ||
622 | 70 | XSendFilePath /srv/staging.snapshots.linaro.org/www | ||
623 | 71 | |||
624 | 72 | WSGIScriptAlias / /srv/staging.snapshots.linaro.org/configs/wsgi/wsgi_staging_snapshots.py | ||
625 | 73 | WSGIDaemonProcess linaro-license-protection-staging-snapshots-ssl | ||
626 | 74 | |||
627 | 75 | <Directory /srv/staging.snapshots.linaro.org/configs/wsgi> | ||
628 | 76 | <Files wsgi_staging_snapshots.py> | ||
629 | 77 | Order deny,allow | ||
630 | 78 | Allow from all | ||
631 | 79 | </Files> | ||
632 | 80 | </Directory> | ||
633 | 81 | |||
634 | 82 | <Directory /> | ||
635 | 83 | IndexOptions NameWidth=* +SuppressDescription | ||
636 | 84 | Options +Indexes +FollowSymLinks | ||
637 | 85 | IndexIgnore favicon.ico HEADER.html | ||
638 | 86 | AllowOverride FileInfo Indexes | ||
639 | 87 | </Directory> | ||
640 | 88 | |||
641 | 89 | <Location "/hwpacks"> | ||
642 | 90 | PythonAccessHandler apache_openid::protect | ||
643 | 91 | PythonOption handler openidteams | ||
644 | 92 | PythonOption authorized-teams-list-url "file:///etc/apache2/security/all-private-hwpack-teams.txt" | ||
645 | 93 | PythonOption action-path "/openid/" | ||
646 | 94 | </Location> | ||
647 | 95 | |||
648 | 96 | <Location "/openid/"> | ||
649 | 97 | Allow from all | ||
650 | 98 | SetHandler mod_python | ||
651 | 99 | PythonAccessHandler apache_openid::protect | ||
652 | 100 | PythonOption handler openidteams | ||
653 | 101 | PythonOption store-type file | ||
654 | 102 | PythonOption store-directory /var/cache/apache2/openid/ | ||
655 | 103 | PythonOption allowed-op-list-url "file:///etc/apache2/security/allowed-ops.txt" | ||
656 | 104 | PythonOption authorized-teams-list-url "file:///etc/apache2/security/all-private-hwpack-teams.txt" | ||
657 | 105 | PythonOption authorized-teams-list-url "file:///etc/apache2/security/linaro-teams.txt" | ||
658 | 106 | PythonOption action-path "/openid/" | ||
659 | 107 | </Location> | ||
660 | 108 | |||
661 | 109 | <Location "/precise/restricted"> | ||
662 | 110 | PythonAccessHandler apache_openid::protect | ||
663 | 111 | PythonOption handler openidteams | ||
664 | 112 | PythonOption authorized-teams-list-url "file:///etc/apache2/security/linaro-teams.txt" | ||
665 | 113 | PythonOption action-path "/openid/" | ||
666 | 114 | </Location> | ||
667 | 115 | |||
668 | 116 | Alias /hwpacks/freescale /srv/landing-teams/hwpacks/freescale | ||
669 | 117 | <Location "/hwpacks/freescale"> | ||
670 | 118 | PythonAccessHandler apache_openid::protect | ||
671 | 119 | PythonOption handler openidteams | ||
672 | 120 | PythonOption authorized-teams-list-url "file:///etc/apache2/security/freescale-private-hwpack-teams.txt" | ||
673 | 121 | PythonOption action-path "/openid/" | ||
674 | 122 | </Location> | ||
675 | 123 | |||
676 | 124 | Alias /hwpacks/samsung /srv/landing-teams/hwpacks/samsung | ||
677 | 125 | <Location "/hwpacks/samsung"> | ||
678 | 126 | PythonAccessHandler apache_openid::protect | ||
679 | 127 | PythonOption handler openidteams | ||
680 | 128 | PythonOption authorized-teams-list-url "file:///etc/apache2/security/samsung-private-hwpack-teams.txt" | ||
681 | 129 | PythonOption action-path "/openid/" | ||
682 | 130 | </Location> | ||
683 | 131 | |||
684 | 132 | Alias /hwpacks/ste /srv/landing-teams/hwpacks/ste | ||
685 | 133 | <Location "/hwpacks/ste"> | ||
686 | 134 | PythonAccessHandler apache_openid::protect | ||
687 | 135 | PythonOption handler openidteams | ||
688 | 136 | PythonOption authorized-teams-list-url "file:///etc/apache2/security/ste-private-hwpack-teams.txt" | ||
689 | 137 | PythonOption action-path "/openid/" | ||
690 | 138 | </Location> | ||
691 | 139 | |||
692 | 140 | Alias /hwpacks/ti /srv/landing-teams/hwpacks/ti | ||
693 | 141 | <Location "/hwpacks/ti"> | ||
694 | 142 | PythonAccessHandler apache_openid::protect | ||
695 | 143 | PythonOption handler openidteams | ||
696 | 144 | PythonOption authorized-teams-list-url "file:///etc/apache2/security/ti-private-hwpack-teams.txt" | ||
697 | 145 | PythonOption action-path "/openid/" | ||
698 | 146 | </Location> | ||
699 | 147 | |||
700 | 148 | Alias /hwpacks/arm /srv/landing-teams/hwpacks/arm | ||
701 | 149 | <Location "/hwpacks/arm"> | ||
702 | 150 | PythonAccessHandler apache_openid::protect | ||
703 | 151 | PythonOption handler openidteams | ||
704 | 152 | PythonOption authorized-teams-list-url "file:///etc/apache2/security/arm-private-hwpack-teams.txt" | ||
705 | 153 | PythonOption action-path "/openid/" | ||
706 | 154 | </Location> | ||
707 | 155 | |||
708 | 156 | <Location "/android/~linaro-android-restricted"> | ||
709 | 157 | PythonAccessHandler apache_openid::protect | ||
710 | 158 | PythonOption handler openidteams | ||
711 | 159 | PythonOption authorized-teams-list-url "file:///etc/apache2/security/linaro-teams.txt" | ||
712 | 160 | PythonOption action-path "/openid/" | ||
713 | 161 | </Location> | ||
714 | 162 | |||
715 | 163 | |||
716 | 164 | </VirtualHost> | ||
717 | 0 | 165 | ||
718 | === added directory 'django' | |||
719 | === added file 'django/settings_releases.py' | |||
720 | --- django/settings_releases.py 1970-01-01 00:00:00 +0000 | |||
721 | +++ django/settings_releases.py 2013-05-24 07:30:35 +0000 | |||
722 | @@ -0,0 +1,54 @@ | |||
723 | 1 | # Settings for releases.linaro.org. | ||
724 | 2 | |||
725 | 3 | from settings import * | ||
726 | 4 | |||
727 | 5 | DEBUG = False | ||
728 | 6 | |||
729 | 7 | ROOT_URLCONF = 'urls' | ||
730 | 8 | |||
731 | 9 | DATABASES = { | ||
732 | 10 | 'default': { | ||
733 | 11 | 'ENGINE': 'django.db.backends.sqlite3', | ||
734 | 12 | 'NAME': '/srv/releases.linaro.org/db/licenses.db', | ||
735 | 13 | 'USER': '', | ||
736 | 14 | 'PASSWORD': '', | ||
737 | 15 | 'HOST': '', | ||
738 | 16 | 'PORT': '', | ||
739 | 17 | } | ||
740 | 18 | } | ||
741 | 19 | |||
742 | 20 | TEMPLATE_DIRS = ( | ||
743 | 21 | os.path.join(PROJECT_ROOT, "templates_releases" ), | ||
744 | 22 | os.path.join(PROJECT_ROOT, "templates" ), | ||
745 | 23 | ) | ||
746 | 24 | SERVED_PATHS = ['/srv/releases.linaro.org/www'] | ||
747 | 25 | |||
748 | 26 | # Render TEXTILE files settings. | ||
749 | 27 | LINUX_FILES = ('README.textile', | ||
750 | 28 | 'INSTALL.textile', | ||
751 | 29 | 'HACKING.textile', | ||
752 | 30 | 'FIRMWARE.textile', | ||
753 | 31 | 'RTSM.textile') | ||
754 | 32 | |||
755 | 33 | ANDROID_FILES = ('HOWTO_releasenotes.txt', | ||
756 | 34 | 'HOWTO_install.txt', | ||
757 | 35 | 'HOWTO_getsourceandbuild.txt', | ||
758 | 36 | 'HOWTO_flashfirmware.txt', | ||
759 | 37 | 'HOWTO_rtsm.txt') | ||
760 | 38 | |||
761 | 39 | FILES_MAP = {'HOWTO_releasenotes.txt': 'Release Notes', | ||
762 | 40 | 'HOWTO_install.txt': 'Binary Image Installation', | ||
763 | 41 | 'HOWTO_getsourceandbuild.txt': 'Building From Source', | ||
764 | 42 | 'HOWTO_flashfirmware.txt': 'Firmware Update', | ||
765 | 43 | 'HOWTO_rtsm.txt': 'RTSM', | ||
766 | 44 | 'README.textile': 'Release Notes', | ||
767 | 45 | 'INSTALL.textile': 'Binary Image Installation', | ||
768 | 46 | 'HACKING.textile': 'Building From Source', | ||
769 | 47 | 'FIRMWARE.textile': 'Firmware Update', | ||
770 | 48 | 'RTSM.textile': 'RTSM'} | ||
771 | 49 | |||
772 | 50 | TAB_PRIORITY = ['Release Notes', | ||
773 | 51 | 'Binary Image Installation', | ||
774 | 52 | 'Building From Source', | ||
775 | 53 | 'Firmware Update', | ||
776 | 54 | 'RTSM'] | ||
777 | 0 | 55 | ||
778 | === added file 'django/settings_snapshots.py' | |||
779 | --- django/settings_snapshots.py 1970-01-01 00:00:00 +0000 | |||
780 | +++ django/settings_snapshots.py 2013-05-24 07:30:35 +0000 | |||
781 | @@ -0,0 +1,54 @@ | |||
782 | 1 | # Settings for snapshots.linaro.org. | ||
783 | 2 | |||
784 | 3 | from settings import * | ||
785 | 4 | |||
786 | 5 | DEBUG = False | ||
787 | 6 | |||
788 | 7 | ROOT_URLCONF = 'urls' | ||
789 | 8 | |||
790 | 9 | DATABASES = { | ||
791 | 10 | 'default': { | ||
792 | 11 | 'ENGINE': 'django.db.backends.sqlite3', | ||
793 | 12 | 'NAME': '/srv/snapshots.linaro.org/db/licenses.db', | ||
794 | 13 | 'USER': '', | ||
795 | 14 | 'PASSWORD': '', | ||
796 | 15 | 'HOST': '', | ||
797 | 16 | 'PORT': '', | ||
798 | 17 | } | ||
799 | 18 | } | ||
800 | 19 | |||
801 | 20 | TEMPLATE_DIRS = ( | ||
802 | 21 | os.path.join(PROJECT_ROOT, "templates_snapshots" ), | ||
803 | 22 | os.path.join(PROJECT_ROOT, "templates" ), | ||
804 | 23 | ) | ||
805 | 24 | SERVED_PATHS = ['/srv/snapshots.linaro.org/www'] | ||
806 | 25 | |||
807 | 26 | # Render TEXTILE files settings. | ||
808 | 27 | LINUX_FILES = ('README', | ||
809 | 28 | 'INSTALL', | ||
810 | 29 | 'HACKING', | ||
811 | 30 | 'FIRMWARE', | ||
812 | 31 | 'RTSM') | ||
813 | 32 | |||
814 | 33 | ANDROID_FILES = ('HOWTO_releasenotes.txt', | ||
815 | 34 | 'HOWTO_install.txt', | ||
816 | 35 | 'HOWTO_getsourceandbuild.txt', | ||
817 | 36 | 'HOWTO_flashfirmware.txt', | ||
818 | 37 | 'HOWTO_rtsm.txt') | ||
819 | 38 | |||
820 | 39 | FILES_MAP = {'HOWTO_releasenotes.txt': 'Release Notes', | ||
821 | 40 | 'HOWTO_install.txt': 'Binary Image Installation', | ||
822 | 41 | 'HOWTO_getsourceandbuild.txt': 'Building From Source', | ||
823 | 42 | 'HOWTO_flashfirmware.txt': 'Firmware Update', | ||
824 | 43 | 'HOWTO_rtsm.txt': 'RTSM', | ||
825 | 44 | 'README': 'Release Notes', | ||
826 | 45 | 'INSTALL': 'Binary Image Installation', | ||
827 | 46 | 'HACKING': 'Building From Source', | ||
828 | 47 | 'FIRMWARE': 'Firmware Update', | ||
829 | 48 | 'RTSM': 'RTSM'} | ||
830 | 49 | |||
831 | 50 | TAB_PRIORITY = ['Release Notes', | ||
832 | 51 | 'Binary Image Installation', | ||
833 | 52 | 'Building From Source', | ||
834 | 53 | 'Firmware Update', | ||
835 | 54 | 'RTSM'] | ||
836 | 0 | 55 | ||
837 | === added file 'django/settings_staging_releases.py' | |||
838 | --- django/settings_staging_releases.py 1970-01-01 00:00:00 +0000 | |||
839 | +++ django/settings_staging_releases.py 2013-05-24 07:30:35 +0000 | |||
840 | @@ -0,0 +1,39 @@ | |||
841 | 1 | # Settings for staging.releases.linaro.org. | ||
842 | 2 | |||
843 | 3 | from settings import * | ||
844 | 4 | |||
845 | 5 | DATABASES = { | ||
846 | 6 | 'default': { | ||
847 | 7 | 'ENGINE': 'django.db.backends.sqlite3', | ||
848 | 8 | 'NAME': '/srv/staging.releases.linaro.org/db/licenses.db', | ||
849 | 9 | 'USER': '', | ||
850 | 10 | 'PASSWORD': '', | ||
851 | 11 | 'HOST': '', | ||
852 | 12 | 'PORT': '', | ||
853 | 13 | } | ||
854 | 14 | } | ||
855 | 15 | |||
856 | 16 | TEMPLATE_DIRS = ( | ||
857 | 17 | os.path.join(PROJECT_ROOT, "templates_releases" ), | ||
858 | 18 | os.path.join(PROJECT_ROOT, "templates" ), | ||
859 | 19 | ) | ||
860 | 20 | SERVED_PATHS = ['/srv/staging.releases.linaro.org/www'] | ||
861 | 21 | |||
862 | 22 | # Render TEXTILE files settings. | ||
863 | 23 | LINUX_FILES = ('README.textile', | ||
864 | 24 | 'INSTALL.textile', | ||
865 | 25 | 'HACKING.textile', | ||
866 | 26 | 'FIRMWARE.textile', | ||
867 | 27 | 'RTSM.textile') | ||
868 | 28 | |||
869 | 29 | FILES_MAP = {'HOWTO_releasenotes.txt': 'Release Notes', | ||
870 | 30 | 'HOWTO_install.txt': 'Binary Image Installation', | ||
871 | 31 | 'HOWTO_getsourceandbuild.txt': 'Building From Source', | ||
872 | 32 | 'HOWTO_flashfirmware.txt': 'Firmware Update', | ||
873 | 33 | 'HOWTO_rtsm.txt': 'RTSM', | ||
874 | 34 | 'README.textile': 'Release Notes', | ||
875 | 35 | 'INSTALL.textile': 'Binary Image Installation', | ||
876 | 36 | 'HACKING.textile': 'Building From Source', | ||
877 | 37 | 'FIRMWARE.textile': 'Firmware Update', | ||
878 | 38 | 'RTSM.textile': 'RTSM'} | ||
879 | 39 | |||
880 | 0 | 40 | ||
881 | === added file 'django/settings_staging_snapshots.py' | |||
882 | --- django/settings_staging_snapshots.py 1970-01-01 00:00:00 +0000 | |||
883 | +++ django/settings_staging_snapshots.py 2013-05-24 07:30:35 +0000 | |||
884 | @@ -0,0 +1,20 @@ | |||
885 | 1 | # Settings for staging.snapshots.linaro.org. | ||
886 | 2 | |||
887 | 3 | from settings import * | ||
888 | 4 | |||
889 | 5 | DATABASES = { | ||
890 | 6 | 'default': { | ||
891 | 7 | 'ENGINE': 'django.db.backends.sqlite3', | ||
892 | 8 | 'NAME': '/srv/staging.snapshots.linaro.org/db/licenses.db', | ||
893 | 9 | 'USER': '', | ||
894 | 10 | 'PASSWORD': '', | ||
895 | 11 | 'HOST': '', | ||
896 | 12 | 'PORT': '', | ||
897 | 13 | } | ||
898 | 14 | } | ||
899 | 15 | |||
900 | 16 | TEMPLATE_DIRS = ( | ||
901 | 17 | os.path.join(PROJECT_ROOT, "templates_snapshots" ), | ||
902 | 18 | os.path.join(PROJECT_ROOT, "templates" ), | ||
903 | 19 | ) | ||
904 | 20 | SERVED_PATHS = ['/srv/staging.snapshots.linaro.org/www'] | ||
905 | 0 | 21 | ||
906 | === added directory 'wsgi' | |||
907 | === added file 'wsgi/wsgi_releases.py' | |||
908 | --- wsgi/wsgi_releases.py 1970-01-01 00:00:00 +0000 | |||
909 | +++ wsgi/wsgi_releases.py 2013-05-24 07:30:35 +0000 | |||
910 | @@ -0,0 +1,19 @@ | |||
911 | 1 | """ | ||
912 | 2 | WSGI config for license_protected_downloads project. | ||
913 | 3 | |||
914 | 4 | This file configures WSGI for releases.linaro.org. | ||
915 | 5 | """ | ||
916 | 6 | import os | ||
917 | 7 | import sys | ||
918 | 8 | sys.path.append("/usr/lib/python2.7/dist-packages") | ||
919 | 9 | sys.path.append("/usr/lib/pymodules/python2.7") | ||
920 | 10 | sys.path.append("/usr/lib/python2.7") | ||
921 | 11 | |||
922 | 12 | sys.path.append("/srv/releases.linaro.org") | ||
923 | 13 | sys.path.append("/srv/releases.linaro.org/linaro-license-protection") | ||
924 | 14 | sys.path.append("/srv/releases.linaro.org/configs/django") | ||
925 | 15 | |||
926 | 16 | os.environ["DJANGO_SETTINGS_MODULE"] = "settings_releases" | ||
927 | 17 | |||
928 | 18 | import django.core.handlers.wsgi | ||
929 | 19 | application = django.core.handlers.wsgi.WSGIHandler() | ||
930 | 0 | 20 | ||
931 | === added file 'wsgi/wsgi_snapshots.py' | |||
932 | --- wsgi/wsgi_snapshots.py 1970-01-01 00:00:00 +0000 | |||
933 | +++ wsgi/wsgi_snapshots.py 2013-05-24 07:30:35 +0000 | |||
934 | @@ -0,0 +1,19 @@ | |||
935 | 1 | """ | ||
936 | 2 | WSGI config for license_protected_downloads project. | ||
937 | 3 | |||
938 | 4 | This file configures WSGI for snapshots.linaro.org. | ||
939 | 5 | """ | ||
940 | 6 | import os | ||
941 | 7 | import sys | ||
942 | 8 | sys.path.append("/usr/lib/python2.7/dist-packages") | ||
943 | 9 | sys.path.append("/usr/lib/pymodules/python2.7") | ||
944 | 10 | sys.path.append("/usr/lib/python2.7") | ||
945 | 11 | |||
946 | 12 | sys.path.append("/srv/snapshots.linaro.org") | ||
947 | 13 | sys.path.append("/srv/snapshots.linaro.org/linaro-license-protection") | ||
948 | 14 | sys.path.append("/srv/snapshots.linaro.org/configs/django") | ||
949 | 15 | |||
950 | 16 | os.environ["DJANGO_SETTINGS_MODULE"] = "settings_snapshots" | ||
951 | 17 | |||
952 | 18 | import django.core.handlers.wsgi | ||
953 | 19 | application = django.core.handlers.wsgi.WSGIHandler() | ||
954 | 0 | 20 | ||
955 | === added file 'wsgi/wsgi_staging_releases.py' | |||
956 | --- wsgi/wsgi_staging_releases.py 1970-01-01 00:00:00 +0000 | |||
957 | +++ wsgi/wsgi_staging_releases.py 2013-05-24 07:30:35 +0000 | |||
958 | @@ -0,0 +1,19 @@ | |||
959 | 1 | """ | ||
960 | 2 | WSGI config for license_protected_downloads project. | ||
961 | 3 | |||
962 | 4 | This file configures WSGI for staging.releases.linaro.org. | ||
963 | 5 | """ | ||
964 | 6 | import os | ||
965 | 7 | import sys | ||
966 | 8 | sys.path.append("/usr/lib/python2.7/dist-packages") | ||
967 | 9 | sys.path.append("/usr/lib/pymodules/python2.7") | ||
968 | 10 | sys.path.append("/usr/lib/python2.7") | ||
969 | 11 | |||
970 | 12 | sys.path.append("/srv/staging.releases.linaro.org") | ||
971 | 13 | sys.path.append("/srv/staging.releases.linaro.org/linaro-license-protection") | ||
972 | 14 | sys.path.append("/srv/staging.releases.linaro.org/configs/django") | ||
973 | 15 | |||
974 | 16 | os.environ["DJANGO_SETTINGS_MODULE"] = "settings_staging_releases" | ||
975 | 17 | |||
976 | 18 | import django.core.handlers.wsgi | ||
977 | 19 | application = django.core.handlers.wsgi.WSGIHandler() | ||
978 | 0 | 20 | ||
979 | === added file 'wsgi/wsgi_staging_snapshots.py' | |||
980 | --- wsgi/wsgi_staging_snapshots.py 1970-01-01 00:00:00 +0000 | |||
981 | +++ wsgi/wsgi_staging_snapshots.py 2013-05-24 07:30:35 +0000 | |||
982 | @@ -0,0 +1,19 @@ | |||
983 | 1 | """ | ||
984 | 2 | WSGI config for license_protected_downloads project. | ||
985 | 3 | |||
986 | 4 | This file configures WSGI for staging.snapshots.linaro.org. | ||
987 | 5 | """ | ||
988 | 6 | import os | ||
989 | 7 | import sys | ||
990 | 8 | sys.path.append("/usr/lib/python2.7/dist-packages") | ||
991 | 9 | sys.path.append("/usr/lib/pymodules/python2.7") | ||
992 | 10 | sys.path.append("/usr/lib/python2.7") | ||
993 | 11 | |||
994 | 12 | sys.path.append("/srv/staging.snapshots.linaro.org") | ||
995 | 13 | sys.path.append("/srv/staging.snapshots.linaro.org/linaro-license-protection") | ||
996 | 14 | sys.path.append("/srv/staging.snapshots.linaro.org/configs/django") | ||
997 | 15 | |||
998 | 16 | os.environ["DJANGO_SETTINGS_MODULE"] = "settings_staging_snapshots" | ||
999 | 17 | |||
1000 | 18 | import django.core.handlers.wsgi | ||
1001 | 19 | application = django.core.handlers.wsgi.WSGIHandler() |