Merge lp:~milo/linaro-license-protection/bug1183689 into lp:~linaro-automation/linaro-license-protection/trunk

Proposed by Milo Casagrande
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
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.

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.

To post a comment you must log in.

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_flashfirmware.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

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added file 'README'
--- README 1970-01-01 00:00:00 +0000
+++ README 2013-05-24 07:30:35 +0000
@@ -0,0 +1,216 @@
1Linaro License Protection configuration
2=======================================
3
4This branch contains current production configuration for
5
6 * releases.linaro.org (hosted on mombin.canonical.com)
7 * snapshots.linaro.org (mombin)
8 * staging.releases.linaro.org (kahaku.canonical.com)
9 * staging.snapshots.linaro.org (kahaku.canonical.com)
10
11
12Dependencies
13------------
14
15libapache2-mod-xsendfile >= 0.10
16libapache2-mod-python
17python-django >= 1.3.1
18python-django-openid-auth
19python-apache-openid
20
21python-apache-openid is needed until we migrate existing apache
22openid-protected directories to the new setup.
23
24
25Pushing framework on snapshots.linaro.org
26-----------------------------------------
27
28Pushing/uploading side is currently implemented as a multi-system setup:
29
30 * configuration on jenkins
31 * configuration of users on server
32
33Configuration of jenkins
34........................
35
36 * We are using Publish-over-SSH plugin for jenkins
37
38 * We perform two build (not publish, to allow for LAVA to have known URLs)
39 steps:
40
41 * publish artifacts over SSH (ends up on a private location on the server)
42
43 * call out a trigger script over SSH (to move files securely to a public
44 location)
45
46 * We use strictly "push from master" in advanced settings of publish-over-ssh
47 plugin, and keep private keys for both actions above on the master:
48
49 /home/ubuntu/snapshots-sync2/linaro-android-build-publish —
50 linaro-android-build-publish
51 /home/ubuntu/snapshots-sync2/linaro-android-build-publish-trigger —
52 linaro-android-build-publish-trigger
53
54Configuration of users on the receiving server (snapshots.l.o)
55..............................................................
56
57For the two actions above, we have two separate users for all hosts
58accessing the system (two for android-build.linaro.org and another two
59for ci.linaro.org at this time).
60
61One of the users is a sftp/push user, and another is the trigger user that
62shuffles the files around.
63
64Current users and their configurations:
65
66 * linaro-android-build-publish
67 /etc/ssh/user-authorized-keys/linaro-android-build-publish
68
69 command="/usr/lib/sftp-server",no-pty,no-port-forwarding,\
70 no-X11-forwarding,no-agent-forwarding,from="50.17.250.69" \
71 <PUBLIC-SSH-KEY-DATA>
72
73 (chrooted to /srv/snapshots.linaro.org/uploads/)
74
75 * linaro-android-build-publish-trigger:
76
77 /etc/ssh/user-authorized-keys/linaro-android-build-publish-trigger
78
79 command="/home/linaro-android-build-publish-trigger/scripts\
80 /trigger-linaro-android-build-publish.sh \
81 ${SSH_ORIGINAL_COMMAND#* }",\
82 no-pty,no-port-forwarding,no-X11-forwarding,no-agent-forwarding,
83 from="50.17.250.69" <PUBLIC-SSH-KEY-DATA>
84
85 The script being executed passes parameters to publish_to_snapshots
86 which moves files from /uploads/ into appropriate public directory:
87
88 #!/bin/sh
89 if [ "$(id -un)" != "linaro-android-build-publish-trigger" ]; then
90 echo "This script is designed to be run as linaro-android-build-publish-trigger user"
91 exit 1
92 fi
93 sudo -u linaro-android-build-publish /home/linaro-android-build-publish/linaro-license-protection/scripts/publish_to_snapshots.py "$@"
94
95 * linaro-ci-publish
96
97 Exactly the same as linaro-android-build-publish, except for the IP
98 (allowing ci.linaro.org from 50.17.200.206) and SSH key data.
99
100 * linaro-ci-publish-trigger
101
102 Like linaro-android-build-publish-trigger, with different IP
103 and SSH key data. Script lives in
104
105 /home/linaro-ci-publish-trigger/scripts/trigger-linaro-ci-publish.sh
106
107 and is of similar structure to the one for the user
108 linaro-android-build-publish-trigger.
109
110android-build.linaro.org
111........................
112
113Runs Jenkins and uses SFTP plugin to access the above two users. Private
114keys live in
115
116 /home/ubuntu/snapshots-sync2/linaro-android-build-publish —
117 linaro-android-build-publish
118 /home/ubuntu/snapshots-sync2/linaro-android-build-publish-trigger —
119 linaro-android-build-publish-trigger
120
121To ensure serialization of steps, and allow LAVA submission, these happen as
122build steps, and not as publishing steps.
123
124Deployment steps
125----------------
126
127This documents our current deployment while at the same time representing
128an example production deployment.
129
1301. Install the dependencies
131 (see the "Dependencies" section)
132
1332. Get the code
134
135 mkdir -p /srv/shared-branches
136 cd /srv/shared-branches
137 bzr branch lp:linaro-license-protection
138
139 (we are actually using http URLs since lp: defaults to bzr+ssh which
140 doesn't work on system accounts)
141
1423. Get the configuration
143
144 Configuration files for deploying to snapshots.linaro.org,
145 releases.linaro.org, staging.snapshots.linaro.org
146 and staging.releases.linaro.org all live in
147
148 lp:linaro-license-protection/configs
149
150 We need to branch that into /srv/shared-branches as well:
151
152 cd /srv/shared-branches
153 bzr branch lp:linaro-license-protection/configs linaro-license-protection-configs
154
1554. Checkout branches for the services you want to use:
156
157 (cd /srv/staging.snapshots.linaro.org &&
158 bzr checkout /srv/shared-branches/linaro-license-protection-configs configs &&
159 bzr checkout /srv/shared-branches/linaro-license-protection)
160
161 Replace "/srv/staging.snapshots.linaro.org" with one of
162 /srv/staging.releases.linaro.org
163 /srv/snapshots.linaro.org
164 /srv/releases.linaro.org
165
166 depending on the service you are deploying.
167
168 If you use these paths, none of the config files will need updating.
169
1705. Configure apache2
171
172 Make sure mod-xsendfile and mod-python are enabled.
173 Copy appropriate
174 /srv/staging.snapshots.linaro.org/configs/apache/staging.snapshots.linaro.org
175 files to /etc/apache2/sites-available
176
177 Copy apache/security/ directory to /etc/apache2/security (it contains OpenID group
178 mappings, etc).
179
180 Add appropriate NameVirtualHost directive to
181
182 /etc/apache2/sites-enabled/000-default
183
184 Run "a2ensite staging.snapshots.linaro.org".
185
186 You also need to set up SSL certificate for *snapshots.linaro.org.
187
1886. Create databases and set up static files
189
190 Make sure appropriate configs/django directory is in the PYTHONPATH
191 and set DJANGO_SETTINGS_MODULE and then run django-admin:
192
193 export PYTHONPATH=/srv/staging.snapshots.linaro.org:/srv/staging.snapshots.linaro.org/linaro-license-protection:/srv/staging.snapshots.linaro.org/configs/django
194 export DJANGO_SETTINGS_MODULE=settings_staging_snapshots
195 mkdir -p /srv/staging.snapshots.linaro.org/db
196 django-admin syncdb --noinput
197 django-admin collectstatic --noinput
198
1997. Set up a cron job to keep code updating automatically
200
201 You may want to automatically keep code up to date (mostly for staging)
202 instances.
203
204 There is
205
206 scripts/update-deployment.py
207
208 from lp:linaro-license-protection which can be run from a cronjob to keep
209 the above deployment always up to date.
210
2118. Ensure license_protected_downloads/config.py contains relevant white-listed
212 IP addresses:
213
214 For releases.linaro.org:
215 * android-build.linaro.org (50.17.250.69)
216 * validation.linaro.org (213.123.120.124)
0217
=== renamed file 'README' => 'README.moved'
=== added directory 'apache'
=== added file 'apache/releases.linaro.org'
--- apache/releases.linaro.org 1970-01-01 00:00:00 +0000
+++ apache/releases.linaro.org 2013-05-24 07:30:35 +0000
@@ -0,0 +1,39 @@
1<VirtualHost 91.189.95.16:80>
2 Alias /static/ /srv/releases.linaro.org/linaro-license-protection/static/
3 DocumentRoot /srv/releases.linaro.org/www
4 ServerName releases.linaro.org
5 ServerAdmin webmaster@linaro.org
6 CustomLog /var/log/apache2/releases.linaro.org-access.log combined
7 ErrorLog /var/log/apache2/releases.linaro.org-error.log
8
9 <Directory /srv/releases.linaro.org/linaro-license-protection/static>
10 Order deny,allow
11 Allow from all
12 </Directory>
13
14 <Directory /srv/releases.linaro.org/www>
15 Order deny,allow
16 Allow from all
17 </Directory>
18
19 XSendFile on
20 XSendFilePath /srv/releases.linaro.org/www
21
22 WSGIScriptAlias / /srv/releases.linaro.org/configs/wsgi/wsgi_releases.py
23 WSGIDaemonProcess linaro-license-protection-releases
24
25 <Directory /srv/releases.linaro.org/configs/wsgi>
26 <Files wsgi_releases.py>
27 Order deny,allow
28 Allow from all
29 </Files>
30 </Directory>
31
32 <Directory />
33 IndexOptions NameWidth=* +SuppressDescription
34 Options +Indexes +FollowSymLinks
35 IndexIgnore favicon.ico HEADER.html
36 AllowOverride FileInfo Indexes
37 </Directory>
38
39</VirtualHost>
040
=== added directory 'apache/security'
=== added file 'apache/security/all-private-hwpack-teams.txt'
--- apache/security/all-private-hwpack-teams.txt 1970-01-01 00:00:00 +0000
+++ apache/security/all-private-hwpack-teams.txt 2013-05-24 07:30:35 +0000
@@ -0,0 +1,5 @@
1linaro-landing-team-freescale
2linaro-landing-team-samsung
3linaro-landing-team-ste
4linaro-landing-team-ti
5linaro-landing-team-arm
06
=== added file 'apache/security/allowed-ops.txt'
--- apache/security/allowed-ops.txt 1970-01-01 00:00:00 +0000
+++ apache/security/allowed-ops.txt 2013-05-24 07:30:35 +0000
@@ -0,0 +1,1 @@
1Ubuntu=https://login.ubuntu.com
02
=== added file 'apache/security/arm-private-hwpack-teams.txt'
--- apache/security/arm-private-hwpack-teams.txt 1970-01-01 00:00:00 +0000
+++ apache/security/arm-private-hwpack-teams.txt 2013-05-24 07:30:35 +0000
@@ -0,0 +1,1 @@
1linaro-landing-team-arm
02
=== added file 'apache/security/freescale-private-hwpack-teams.txt'
--- apache/security/freescale-private-hwpack-teams.txt 1970-01-01 00:00:00 +0000
+++ apache/security/freescale-private-hwpack-teams.txt 2013-05-24 07:30:35 +0000
@@ -0,0 +1,1 @@
1linaro-landing-team-freescale
02
=== added file 'apache/security/linaro-android-teams.txt'
--- apache/security/linaro-android-teams.txt 1970-01-01 00:00:00 +0000
+++ apache/security/linaro-android-teams.txt 2013-05-24 07:30:35 +0000
@@ -0,0 +1,2 @@
1linaro
2linaro-android-restricted
03
=== added file 'apache/security/linaro-teams.txt'
--- apache/security/linaro-teams.txt 1970-01-01 00:00:00 +0000
+++ apache/security/linaro-teams.txt 2013-05-24 07:30:35 +0000
@@ -0,0 +1,1 @@
1linaro
02
=== added file 'apache/security/mservices.linaro.org-teams.txt'
--- apache/security/mservices.linaro.org-teams.txt 1970-01-01 00:00:00 +0000
+++ apache/security/mservices.linaro.org-teams.txt 2013-05-24 07:30:35 +0000
@@ -0,0 +1,2 @@
1linaro-member-services-leadership
2canonical-sysadmins
03
=== added file 'apache/security/samsung-private-hwpack-teams.txt'
--- apache/security/samsung-private-hwpack-teams.txt 1970-01-01 00:00:00 +0000
+++ apache/security/samsung-private-hwpack-teams.txt 2013-05-24 07:30:35 +0000
@@ -0,0 +1,1 @@
1linaro-landing-team-samsung
02
=== added file 'apache/security/ste-private-hwpack-teams.txt'
--- apache/security/ste-private-hwpack-teams.txt 1970-01-01 00:00:00 +0000
+++ apache/security/ste-private-hwpack-teams.txt 2013-05-24 07:30:35 +0000
@@ -0,0 +1,1 @@
1linaro-landing-team-ste
02
=== added file 'apache/security/ti-private-hwpack-teams.txt'
--- apache/security/ti-private-hwpack-teams.txt 1970-01-01 00:00:00 +0000
+++ apache/security/ti-private-hwpack-teams.txt 2013-05-24 07:30:35 +0000
@@ -0,0 +1,1 @@
1linaro-landing-team-ti
02
=== added file 'apache/snapshots.linaro.org'
--- apache/snapshots.linaro.org 1970-01-01 00:00:00 +0000
+++ apache/snapshots.linaro.org 2013-05-24 07:30:35 +0000
@@ -0,0 +1,165 @@
1<VirtualHost 91.189.95.16:80 91.189.95.247:80>
2
3 Alias /static/ /srv/snapshots.linaro.org/linaro-license-protection/static/
4 DocumentRoot /srv/snapshots.linaro.org/www
5 ServerName snapshots.linaro.org
6 ServerAdmin webmaster@linaro.org
7 CustomLog /var/log/apache2/snapshots.linaro.org-access.log combined
8 ErrorLog /var/log/apache2/snapshots.linaro.org-error.log
9
10 # SSL + OpenID for these:
11 Redirect /hwpacks https://snapshots.linaro.org/hwpacks
12 Redirect /android/~linaro-android-private https://snapshots.linaro.org/android/~linaro-android-private
13 Redirect /android/~linaro-android-restricted https://snapshots.linaro.org/android/~linaro-android-restricted
14 Redirect /precise/restricted https://snapshots.linaro.org/precise/restricted
15
16 <Directory /srv/snapshots.linaro.org/linaro-license-protection/static>
17 Order deny,allow
18 Allow from all
19 </Directory>
20
21 <Directory /srv/snapshots.linaro.org/www>
22 Order deny,allow
23 Allow from all
24 </Directory>
25
26 XSendFile on
27 XSendFilePath /srv/snapshots.linaro.org/www
28
29 WSGIScriptAlias / /srv/snapshots.linaro.org/configs/wsgi/wsgi_snapshots.py
30 WSGIDaemonProcess linaro-license-protection-snapshots
31
32 <Directory /srv/snapshots.linaro.org/configs/wsgi>
33 <Files wsgi_snapshots.py>
34 Order deny,allow
35 Allow from all
36 </Files>
37 </Directory>
38
39 <Directory />
40 IndexOptions NameWidth=* +SuppressDescription
41 Options +Indexes +FollowSymLinks
42 IndexIgnore favicon.ico HEADER.html
43 AllowOverride FileInfo Indexes
44 </Directory>
45
46</VirtualHost>
47
48<VirtualHost 91.189.95.247:443>
49
50 Alias /static/ /srv/snapshots.linaro.org/linaro-license-protection/static/
51 DocumentRoot /srv/snapshots.linaro.org/www
52 ServerName snapshots.linaro.org
53 ServerAdmin webmaster@linaro.org
54 CustomLog /var/log/apache2/snapshots.linaro.org-access.log combined
55 ErrorLog /var/log/apache2/snapshots.linaro.org-error.log
56
57 SSLEngine On
58 SSLCertificateFile /etc/apache2/ssl/snapshots.linaro.org.crt
59 SSLCertificateKeyFile /etc/apache2/ssl/snapshots.linaro.org.key
60 SSLCertificateChainFile /etc/apache2/ssl/gd_bundle.crt
61
62 <Directory /srv/snapshots.linaro.org/linaro-license-protection/static>
63 Order deny,allow
64 Allow from all
65 </Directory>
66
67 <Directory /srv/snapshots.linaro.org/www>
68 Order deny,allow
69 Allow from all
70 </Directory>
71
72 XSendFile on
73 XSendFilePath /srv/snapshots.linaro.org/www
74
75 WSGIScriptAlias / /srv/snapshots.linaro.org/configs/wsgi/wsgi_snapshots.py
76 WSGIDaemonProcess linaro-license-protection-snapshots-ssl
77
78 <Directory /srv/snapshots.linaro.org/configs/wsgi>
79 <Files wsgi_snapshots.py>
80 Order deny,allow
81 Allow from all
82 </Files>
83 </Directory>
84
85 <Directory />
86 IndexOptions NameWidth=* +SuppressDescription
87 Options +Indexes +FollowSymLinks
88 IndexIgnore favicon.ico HEADER.html
89 AllowOverride FileInfo Indexes
90 </Directory>
91
92 <Location "/hwpacks">
93 PythonAccessHandler apache_openid::protect
94 PythonOption handler openidteams
95 PythonOption authorized-teams-list-url "file:///etc/apache2/security/all-private-hwpack-teams.txt"
96 PythonOption action-path "/openid/"
97 </Location>
98
99 <Location "/openid/">
100 Allow from all
101 SetHandler mod_python
102 PythonAccessHandler apache_openid::protect
103 PythonOption handler openidteams
104 PythonOption store-type file
105 PythonOption store-directory /var/cache/apache2/openid/
106 PythonOption allowed-op-list-url "file:///etc/apache2/security/allowed-ops.txt"
107 PythonOption authorized-teams-list-url "file:///etc/apache2/security/all-private-hwpack-teams.txt"
108 PythonOption action-path "/openid/"
109 </Location>
110
111 <Location "/android/~linaro-android-restricted">
112 PythonAccessHandler apache_openid::protect
113 PythonOption handler openidteams
114 PythonOption authorized-teams-list-url "file:///etc/apache2/security/linaro-teams.txt"
115 PythonOption action-path "/openid/"
116 </Location>
117
118 <Location "/precise/restricted">
119 PythonAccessHandler apache_openid::protect
120 PythonOption handler openidteams
121 PythonOption authorized-teams-list-url "file:///etc/apache2/security/linaro-teams.txt"
122 PythonOption action-path "/openid/"
123 </Location>
124
125 Alias /hwpacks/freescale /srv/landing-teams/hwpacks/freescale
126 <Location "/hwpacks/freescale">
127 PythonAccessHandler apache_openid::protect
128 PythonOption handler openidteams
129 PythonOption authorized-teams-list-url "file:///etc/apache2/security/freescale-private-hwpack-teams.txt"
130 PythonOption action-path "/openid/"
131 </Location>
132
133 Alias /hwpacks/samsung /srv/landing-teams/hwpacks/samsung
134 <Location "/hwpacks/samsung">
135 PythonAccessHandler apache_openid::protect
136 PythonOption handler openidteams
137 PythonOption authorized-teams-list-url "file:///etc/apache2/security/samsung-private-hwpack-teams.txt"
138 PythonOption action-path "/openid/"
139 </Location>
140
141 Alias /hwpacks/ste /srv/landing-teams/hwpacks/ste
142 <Location "/hwpacks/ste">
143 PythonAccessHandler apache_openid::protect
144 PythonOption handler openidteams
145 PythonOption authorized-teams-list-url "file:///etc/apache2/security/ste-private-hwpack-teams.txt"
146 PythonOption action-path "/openid/"
147 </Location>
148
149 Alias /hwpacks/ti /srv/landing-teams/hwpacks/ti
150 <Location "/hwpacks/ti">
151 PythonAccessHandler apache_openid::protect
152 PythonOption handler openidteams
153 PythonOption authorized-teams-list-url "file:///etc/apache2/security/ti-private-hwpack-teams.txt"
154 PythonOption action-path "/openid/"
155 </Location>
156
157 Alias /hwpacks/arm /srv/landing-teams/hwpacks/arm
158 <Location "/hwpacks/arm">
159 PythonAccessHandler apache_openid::protect
160 PythonOption handler openidteams
161 PythonOption authorized-teams-list-url "file:///etc/apache2/security/arm-private-hwpack-teams.txt"
162 PythonOption action-path "/openid/"
163 </Location>
164
165</VirtualHost>
0166
=== added file 'apache/staging.releases.linaro.org'
--- apache/staging.releases.linaro.org 1970-01-01 00:00:00 +0000
+++ apache/staging.releases.linaro.org 2013-05-24 07:30:35 +0000
@@ -0,0 +1,39 @@
1<VirtualHost 91.189.95.80:80>
2 Alias /static/ /srv/staging.releases.linaro.org/linaro-license-protection/static/
3 DocumentRoot /srv/staging.releases.linaro.org/www
4 ServerName staging.releases.linaro.org
5 ServerAdmin webmaster@linaro.org
6 CustomLog /var/log/apache2/staging.releases.linaro.org-access.log combined
7 ErrorLog /var/log/apache2/staging.releases.linaro.org-error.log
8
9 <Directory /srv/staging.releases.linaro.org/linaro-license-protection/static>
10 Order deny,allow
11 Allow from all
12 </Directory>
13
14 <Directory /srv/staging.releases.linaro.org/www>
15 Order deny,allow
16 Allow from all
17 </Directory>
18
19 XSendFile on
20 XSendFilePath /srv/staging.releases.linaro.org/www
21
22 WSGIScriptAlias / /srv/staging.releases.linaro.org/configs/wsgi/wsgi_staging_releases.py
23 WSGIDaemonProcess linaro-license-protection-staging-releases
24
25 <Directory /srv/staging.releases.linaro.org/configs/wsgi>
26 <Files wsgi_staging_releases.py>
27 Order deny,allow
28 Allow from all
29 </Files>
30 </Directory>
31
32 <Directory />
33 IndexOptions NameWidth=* +SuppressDescription
34 Options +Indexes +FollowSymLinks
35 IndexIgnore favicon.ico HEADER.html
36 AllowOverride FileInfo Indexes
37 </Directory>
38
39</VirtualHost>
040
=== added file 'apache/staging.snapshots.linaro.org'
--- apache/staging.snapshots.linaro.org 1970-01-01 00:00:00 +0000
+++ apache/staging.snapshots.linaro.org 2013-05-24 07:30:35 +0000
@@ -0,0 +1,164 @@
1<VirtualHost 91.189.95.80:80>
2
3 Alias /static/ /srv/staging.snapshots.linaro.org/linaro-license-protection/static/
4 DocumentRoot /srv/staging.snapshots.linaro.org/www
5 ServerName staging.snapshots.linaro.org
6 ServerAdmin webmaster@linaro.org
7 CustomLog /var/log/apache2/staging.snapshots.linaro.org-access.log combined
8 ErrorLog /var/log/apache2/staging.snapshots.linaro.org-error.log
9
10 Redirect /hwpacks https://staging.snapshots.linaro.org/hwpacks
11 Redirect /precise/restricted https://staging.snapshots.linaro.org/precise/restricted
12 Redirect /android/~linaro-android-private https://staging.snapshots.linaro.org/android/~linaro-android-private
13 Redirect /android/~linaro-android-restricted https://staging.snapshots.linaro.org/android/~linaro-android-restricted
14
15 <Directory /srv/staging.snapshots.linaro.org/linaro-license-protection/static>
16 Order deny,allow
17 Allow from all
18 </Directory>
19
20 <Directory /srv/staging.snapshots.linaro.org/www>
21 Order deny,allow
22 Allow from all
23 </Directory>
24
25 XSendFile on
26 XSendFilePath /srv/staging.snapshots.linaro.org/www
27
28 WSGIScriptAlias / /srv/staging.snapshots.linaro.org/configs/wsgi/wsgi_staging_snapshots.py
29 WSGIDaemonProcess linaro-license-protection-staging-snapshots
30
31 <Directory /srv/staging.snapshots.linaro.org/configs/wsgi>
32 <Files wsgi_staging_snapshots.py>
33 Order deny,allow
34 Allow from all
35 </Files>
36 </Directory>
37
38 <Directory />
39 IndexOptions NameWidth=* +SuppressDescription
40 Options +Indexes +FollowSymLinks
41 IndexIgnore favicon.ico HEADER.html
42 AllowOverride FileInfo Indexes
43 </Directory>
44
45</VirtualHost>
46
47<VirtualHost 91.189.95.80:443>
48
49 Alias /static/ /srv/staging.snapshots.linaro.org/linaro-license-protection/static/
50 DocumentRoot /srv/staging.snapshots.linaro.org/www
51 ServerName staging.snapshots.linaro.org
52 ServerAdmin webmaster@linaro.org
53 CustomLog /var/log/apache2/staging.snapshots.linaro.org-access.log combined
54 ErrorLog /var/log/apache2/staging.snapshots.linaro.org-error.log
55
56 SSLEngine On
57 SSLCertificateFile /etc/apache2/ssl/staging.snapshots.linaro.org.pem
58
59 <Directory /srv/staging.snapshots.linaro.org/linaro-license-protection/static>
60 Order deny,allow
61 Allow from all
62 </Directory>
63
64 <Directory /srv/staging.snapshots.linaro.org/www>
65 Order deny,allow
66 Allow from all
67 </Directory>
68
69 XSendFile on
70 XSendFilePath /srv/staging.snapshots.linaro.org/www
71
72 WSGIScriptAlias / /srv/staging.snapshots.linaro.org/configs/wsgi/wsgi_staging_snapshots.py
73 WSGIDaemonProcess linaro-license-protection-staging-snapshots-ssl
74
75 <Directory /srv/staging.snapshots.linaro.org/configs/wsgi>
76 <Files wsgi_staging_snapshots.py>
77 Order deny,allow
78 Allow from all
79 </Files>
80 </Directory>
81
82 <Directory />
83 IndexOptions NameWidth=* +SuppressDescription
84 Options +Indexes +FollowSymLinks
85 IndexIgnore favicon.ico HEADER.html
86 AllowOverride FileInfo Indexes
87 </Directory>
88
89 <Location "/hwpacks">
90 PythonAccessHandler apache_openid::protect
91 PythonOption handler openidteams
92 PythonOption authorized-teams-list-url "file:///etc/apache2/security/all-private-hwpack-teams.txt"
93 PythonOption action-path "/openid/"
94 </Location>
95
96 <Location "/openid/">
97 Allow from all
98 SetHandler mod_python
99 PythonAccessHandler apache_openid::protect
100 PythonOption handler openidteams
101 PythonOption store-type file
102 PythonOption store-directory /var/cache/apache2/openid/
103 PythonOption allowed-op-list-url "file:///etc/apache2/security/allowed-ops.txt"
104 PythonOption authorized-teams-list-url "file:///etc/apache2/security/all-private-hwpack-teams.txt"
105 PythonOption authorized-teams-list-url "file:///etc/apache2/security/linaro-teams.txt"
106 PythonOption action-path "/openid/"
107 </Location>
108
109 <Location "/precise/restricted">
110 PythonAccessHandler apache_openid::protect
111 PythonOption handler openidteams
112 PythonOption authorized-teams-list-url "file:///etc/apache2/security/linaro-teams.txt"
113 PythonOption action-path "/openid/"
114 </Location>
115
116 Alias /hwpacks/freescale /srv/landing-teams/hwpacks/freescale
117 <Location "/hwpacks/freescale">
118 PythonAccessHandler apache_openid::protect
119 PythonOption handler openidteams
120 PythonOption authorized-teams-list-url "file:///etc/apache2/security/freescale-private-hwpack-teams.txt"
121 PythonOption action-path "/openid/"
122 </Location>
123
124 Alias /hwpacks/samsung /srv/landing-teams/hwpacks/samsung
125 <Location "/hwpacks/samsung">
126 PythonAccessHandler apache_openid::protect
127 PythonOption handler openidteams
128 PythonOption authorized-teams-list-url "file:///etc/apache2/security/samsung-private-hwpack-teams.txt"
129 PythonOption action-path "/openid/"
130 </Location>
131
132 Alias /hwpacks/ste /srv/landing-teams/hwpacks/ste
133 <Location "/hwpacks/ste">
134 PythonAccessHandler apache_openid::protect
135 PythonOption handler openidteams
136 PythonOption authorized-teams-list-url "file:///etc/apache2/security/ste-private-hwpack-teams.txt"
137 PythonOption action-path "/openid/"
138 </Location>
139
140 Alias /hwpacks/ti /srv/landing-teams/hwpacks/ti
141 <Location "/hwpacks/ti">
142 PythonAccessHandler apache_openid::protect
143 PythonOption handler openidteams
144 PythonOption authorized-teams-list-url "file:///etc/apache2/security/ti-private-hwpack-teams.txt"
145 PythonOption action-path "/openid/"
146 </Location>
147
148 Alias /hwpacks/arm /srv/landing-teams/hwpacks/arm
149 <Location "/hwpacks/arm">
150 PythonAccessHandler apache_openid::protect
151 PythonOption handler openidteams
152 PythonOption authorized-teams-list-url "file:///etc/apache2/security/arm-private-hwpack-teams.txt"
153 PythonOption action-path "/openid/"
154 </Location>
155
156 <Location "/android/~linaro-android-restricted">
157 PythonAccessHandler apache_openid::protect
158 PythonOption handler openidteams
159 PythonOption authorized-teams-list-url "file:///etc/apache2/security/linaro-teams.txt"
160 PythonOption action-path "/openid/"
161 </Location>
162
163
164</VirtualHost>
0165
=== added directory 'django'
=== added file 'django/settings_releases.py'
--- django/settings_releases.py 1970-01-01 00:00:00 +0000
+++ django/settings_releases.py 2013-05-24 07:30:35 +0000
@@ -0,0 +1,54 @@
1# Settings for releases.linaro.org.
2
3from settings import *
4
5DEBUG = False
6
7ROOT_URLCONF = 'urls'
8
9DATABASES = {
10 'default': {
11 'ENGINE': 'django.db.backends.sqlite3',
12 'NAME': '/srv/releases.linaro.org/db/licenses.db',
13 'USER': '',
14 'PASSWORD': '',
15 'HOST': '',
16 'PORT': '',
17 }
18}
19
20TEMPLATE_DIRS = (
21 os.path.join(PROJECT_ROOT, "templates_releases" ),
22 os.path.join(PROJECT_ROOT, "templates" ),
23 )
24SERVED_PATHS = ['/srv/releases.linaro.org/www']
25
26# Render TEXTILE files settings.
27LINUX_FILES = ('README.textile',
28 'INSTALL.textile',
29 'HACKING.textile',
30 'FIRMWARE.textile',
31 'RTSM.textile')
32
33ANDROID_FILES = ('HOWTO_releasenotes.txt',
34 'HOWTO_install.txt',
35 'HOWTO_getsourceandbuild.txt',
36 'HOWTO_flashfirmware.txt',
37 'HOWTO_rtsm.txt')
38
39FILES_MAP = {'HOWTO_releasenotes.txt': 'Release Notes',
40 'HOWTO_install.txt': 'Binary Image Installation',
41 'HOWTO_getsourceandbuild.txt': 'Building From Source',
42 'HOWTO_flashfirmware.txt': 'Firmware Update',
43 'HOWTO_rtsm.txt': 'RTSM',
44 'README.textile': 'Release Notes',
45 'INSTALL.textile': 'Binary Image Installation',
46 'HACKING.textile': 'Building From Source',
47 'FIRMWARE.textile': 'Firmware Update',
48 'RTSM.textile': 'RTSM'}
49
50TAB_PRIORITY = ['Release Notes',
51 'Binary Image Installation',
52 'Building From Source',
53 'Firmware Update',
54 'RTSM']
055
=== added file 'django/settings_snapshots.py'
--- django/settings_snapshots.py 1970-01-01 00:00:00 +0000
+++ django/settings_snapshots.py 2013-05-24 07:30:35 +0000
@@ -0,0 +1,54 @@
1# Settings for snapshots.linaro.org.
2
3from settings import *
4
5DEBUG = False
6
7ROOT_URLCONF = 'urls'
8
9DATABASES = {
10 'default': {
11 'ENGINE': 'django.db.backends.sqlite3',
12 'NAME': '/srv/snapshots.linaro.org/db/licenses.db',
13 'USER': '',
14 'PASSWORD': '',
15 'HOST': '',
16 'PORT': '',
17 }
18}
19
20TEMPLATE_DIRS = (
21 os.path.join(PROJECT_ROOT, "templates_snapshots" ),
22 os.path.join(PROJECT_ROOT, "templates" ),
23 )
24SERVED_PATHS = ['/srv/snapshots.linaro.org/www']
25
26# Render TEXTILE files settings.
27LINUX_FILES = ('README',
28 'INSTALL',
29 'HACKING',
30 'FIRMWARE',
31 'RTSM')
32
33ANDROID_FILES = ('HOWTO_releasenotes.txt',
34 'HOWTO_install.txt',
35 'HOWTO_getsourceandbuild.txt',
36 'HOWTO_flashfirmware.txt',
37 'HOWTO_rtsm.txt')
38
39FILES_MAP = {'HOWTO_releasenotes.txt': 'Release Notes',
40 'HOWTO_install.txt': 'Binary Image Installation',
41 'HOWTO_getsourceandbuild.txt': 'Building From Source',
42 'HOWTO_flashfirmware.txt': 'Firmware Update',
43 'HOWTO_rtsm.txt': 'RTSM',
44 'README': 'Release Notes',
45 'INSTALL': 'Binary Image Installation',
46 'HACKING': 'Building From Source',
47 'FIRMWARE': 'Firmware Update',
48 'RTSM': 'RTSM'}
49
50TAB_PRIORITY = ['Release Notes',
51 'Binary Image Installation',
52 'Building From Source',
53 'Firmware Update',
54 'RTSM']
055
=== added file 'django/settings_staging_releases.py'
--- django/settings_staging_releases.py 1970-01-01 00:00:00 +0000
+++ django/settings_staging_releases.py 2013-05-24 07:30:35 +0000
@@ -0,0 +1,39 @@
1# Settings for staging.releases.linaro.org.
2
3from settings import *
4
5DATABASES = {
6 'default': {
7 'ENGINE': 'django.db.backends.sqlite3',
8 'NAME': '/srv/staging.releases.linaro.org/db/licenses.db',
9 'USER': '',
10 'PASSWORD': '',
11 'HOST': '',
12 'PORT': '',
13 }
14}
15
16TEMPLATE_DIRS = (
17 os.path.join(PROJECT_ROOT, "templates_releases" ),
18 os.path.join(PROJECT_ROOT, "templates" ),
19 )
20SERVED_PATHS = ['/srv/staging.releases.linaro.org/www']
21
22# Render TEXTILE files settings.
23LINUX_FILES = ('README.textile',
24 'INSTALL.textile',
25 'HACKING.textile',
26 'FIRMWARE.textile',
27 'RTSM.textile')
28
29FILES_MAP = {'HOWTO_releasenotes.txt': 'Release Notes',
30 'HOWTO_install.txt': 'Binary Image Installation',
31 'HOWTO_getsourceandbuild.txt': 'Building From Source',
32 'HOWTO_flashfirmware.txt': 'Firmware Update',
33 'HOWTO_rtsm.txt': 'RTSM',
34 'README.textile': 'Release Notes',
35 'INSTALL.textile': 'Binary Image Installation',
36 'HACKING.textile': 'Building From Source',
37 'FIRMWARE.textile': 'Firmware Update',
38 'RTSM.textile': 'RTSM'}
39
040
=== added file 'django/settings_staging_snapshots.py'
--- django/settings_staging_snapshots.py 1970-01-01 00:00:00 +0000
+++ django/settings_staging_snapshots.py 2013-05-24 07:30:35 +0000
@@ -0,0 +1,20 @@
1# Settings for staging.snapshots.linaro.org.
2
3from settings import *
4
5DATABASES = {
6 'default': {
7 'ENGINE': 'django.db.backends.sqlite3',
8 'NAME': '/srv/staging.snapshots.linaro.org/db/licenses.db',
9 'USER': '',
10 'PASSWORD': '',
11 'HOST': '',
12 'PORT': '',
13 }
14}
15
16TEMPLATE_DIRS = (
17 os.path.join(PROJECT_ROOT, "templates_snapshots" ),
18 os.path.join(PROJECT_ROOT, "templates" ),
19 )
20SERVED_PATHS = ['/srv/staging.snapshots.linaro.org/www']
021
=== added directory 'wsgi'
=== added file 'wsgi/wsgi_releases.py'
--- wsgi/wsgi_releases.py 1970-01-01 00:00:00 +0000
+++ wsgi/wsgi_releases.py 2013-05-24 07:30:35 +0000
@@ -0,0 +1,19 @@
1"""
2WSGI config for license_protected_downloads project.
3
4This file configures WSGI for releases.linaro.org.
5"""
6import os
7import sys
8sys.path.append("/usr/lib/python2.7/dist-packages")
9sys.path.append("/usr/lib/pymodules/python2.7")
10sys.path.append("/usr/lib/python2.7")
11
12sys.path.append("/srv/releases.linaro.org")
13sys.path.append("/srv/releases.linaro.org/linaro-license-protection")
14sys.path.append("/srv/releases.linaro.org/configs/django")
15
16os.environ["DJANGO_SETTINGS_MODULE"] = "settings_releases"
17
18import django.core.handlers.wsgi
19application = django.core.handlers.wsgi.WSGIHandler()
020
=== added file 'wsgi/wsgi_snapshots.py'
--- wsgi/wsgi_snapshots.py 1970-01-01 00:00:00 +0000
+++ wsgi/wsgi_snapshots.py 2013-05-24 07:30:35 +0000
@@ -0,0 +1,19 @@
1"""
2WSGI config for license_protected_downloads project.
3
4This file configures WSGI for snapshots.linaro.org.
5"""
6import os
7import sys
8sys.path.append("/usr/lib/python2.7/dist-packages")
9sys.path.append("/usr/lib/pymodules/python2.7")
10sys.path.append("/usr/lib/python2.7")
11
12sys.path.append("/srv/snapshots.linaro.org")
13sys.path.append("/srv/snapshots.linaro.org/linaro-license-protection")
14sys.path.append("/srv/snapshots.linaro.org/configs/django")
15
16os.environ["DJANGO_SETTINGS_MODULE"] = "settings_snapshots"
17
18import django.core.handlers.wsgi
19application = django.core.handlers.wsgi.WSGIHandler()
020
=== added file 'wsgi/wsgi_staging_releases.py'
--- wsgi/wsgi_staging_releases.py 1970-01-01 00:00:00 +0000
+++ wsgi/wsgi_staging_releases.py 2013-05-24 07:30:35 +0000
@@ -0,0 +1,19 @@
1"""
2WSGI config for license_protected_downloads project.
3
4This file configures WSGI for staging.releases.linaro.org.
5"""
6import os
7import sys
8sys.path.append("/usr/lib/python2.7/dist-packages")
9sys.path.append("/usr/lib/pymodules/python2.7")
10sys.path.append("/usr/lib/python2.7")
11
12sys.path.append("/srv/staging.releases.linaro.org")
13sys.path.append("/srv/staging.releases.linaro.org/linaro-license-protection")
14sys.path.append("/srv/staging.releases.linaro.org/configs/django")
15
16os.environ["DJANGO_SETTINGS_MODULE"] = "settings_staging_releases"
17
18import django.core.handlers.wsgi
19application = django.core.handlers.wsgi.WSGIHandler()
020
=== added file 'wsgi/wsgi_staging_snapshots.py'
--- wsgi/wsgi_staging_snapshots.py 1970-01-01 00:00:00 +0000
+++ wsgi/wsgi_staging_snapshots.py 2013-05-24 07:30:35 +0000
@@ -0,0 +1,19 @@
1"""
2WSGI config for license_protected_downloads project.
3
4This file configures WSGI for staging.snapshots.linaro.org.
5"""
6import os
7import sys
8sys.path.append("/usr/lib/python2.7/dist-packages")
9sys.path.append("/usr/lib/pymodules/python2.7")
10sys.path.append("/usr/lib/python2.7")
11
12sys.path.append("/srv/staging.snapshots.linaro.org")
13sys.path.append("/srv/staging.snapshots.linaro.org/linaro-license-protection")
14sys.path.append("/srv/staging.snapshots.linaro.org/configs/django")
15
16os.environ["DJANGO_SETTINGS_MODULE"] = "settings_staging_snapshots"
17
18import django.core.handlers.wsgi
19application = django.core.handlers.wsgi.WSGIHandler()

Subscribers

People subscribed via source and target branches