Look, ask has moved away. I'm sure it will write us back someday...
This commit is contained in:
parent
8d382c95ac
commit
cb22afd4fe
1061 changed files with 0 additions and 128296 deletions
|
@ -1,54 +0,0 @@
|
|||
---
|
||||
# Define resources for this group of hosts here.
|
||||
lvm_size: 20000
|
||||
mem_size: 2048
|
||||
num_cpus: 2
|
||||
|
||||
tcp_ports: [ 80, 443,
|
||||
# This port is required by gluster
|
||||
6996,
|
||||
# These 12 ports are used by fedmsg. One for each wsgi thread.
|
||||
3000, 3001, 3002, 3003, 3004, 3005, 3006, 3007, 3008, 3009, 30010, 3011, 3012]
|
||||
|
||||
# Neeed for rsync from log01 for logs.
|
||||
custom_rules: [ '-A INPUT -p tcp -m tcp -s 10.5.126.13 --dport 873 -j ACCEPT', '-A INPUT -p tcp -m tcp -s 192.168.1.59 --dport 873 -j ACCEPT' ]
|
||||
|
||||
fas_client_groups: sysadmin-noc,sysadmin-ask,fi-apprentice,sysadmin-veteran
|
||||
|
||||
freezes: false
|
||||
|
||||
# These are consumed by a task in roles/fedmsg/base/main.yml
|
||||
fedmsg_certs:
|
||||
- service: shell
|
||||
owner: root
|
||||
group: sysadmin
|
||||
can_send:
|
||||
- logger.log
|
||||
- service: askbot
|
||||
owner: root
|
||||
group: apache
|
||||
can_send:
|
||||
- askbot.post.delete
|
||||
- askbot.post.edit
|
||||
- askbot.post.flag_offensive.add
|
||||
- askbot.post.flag_offensive.delete
|
||||
- askbot.tag.update
|
||||
|
||||
virt_install_command: "{{ virt_install_command_rhel6 }}"
|
||||
|
||||
# For the MOTD
|
||||
csi_security_category: Low
|
||||
csi_primary_contact: Fedora admins - admin@fedoraproject.org
|
||||
csi_purpose: Run the django webapp for ask.fedoraproject.org
|
||||
csi_relationship: |
|
||||
This depends on:
|
||||
|
||||
- The database server on db01.
|
||||
- memcached (specifically memcached02), but only in production. In staging,
|
||||
a local-memory backend is used instead.
|
||||
|
||||
Gotchas:
|
||||
|
||||
- The packages for celery are installed, but we do not actually run or
|
||||
depend on the celery daemon.
|
||||
- There are *lots* of hotfixes in effect on this machine.
|
|
@ -1,54 +0,0 @@
|
|||
---
|
||||
# Define resources for this group of hosts here.
|
||||
lvm_size: 20000
|
||||
mem_size: 2048
|
||||
num_cpus: 2
|
||||
|
||||
tcp_ports: [ 80, 443,
|
||||
# This port is required by gluster
|
||||
6996,
|
||||
# These 8 ports are used by fedmsg. One for each wsgi thread.
|
||||
3000, 3001, 3002, 3003, 3004, 3005, 3006, 3007]
|
||||
|
||||
# Neeed for rsync from log01 for logs.
|
||||
custom_rules: [ '-A INPUT -p tcp -m tcp -s 10.5.126.13 --dport 873 -j ACCEPT', '-A INPUT -p tcp -m tcp -s 192.168.1.59 --dport 873 -j ACCEPT' ]
|
||||
|
||||
fas_client_groups: sysadmin-noc,sysadmin-ask,fi-apprentice,sysadmin-veteran
|
||||
|
||||
freezes: false
|
||||
|
||||
# These are consumed by a task in roles/fedmsg/base/main.yml
|
||||
fedmsg_certs:
|
||||
- service: shell
|
||||
owner: root
|
||||
group: sysadmin
|
||||
can_send:
|
||||
- logger.log
|
||||
- service: askbot
|
||||
owner: root
|
||||
group: apache
|
||||
can_send:
|
||||
- askbot.post.delete
|
||||
- askbot.post.edit
|
||||
- askbot.post.flag_offensive.add
|
||||
- askbot.post.flag_offensive.delete
|
||||
- askbot.tag.update
|
||||
|
||||
virt_install_command: "{{ virt_install_command_rhel6 }}"
|
||||
|
||||
# For the MOTD
|
||||
csi_security_category: Low
|
||||
csi_primary_contact: Fedora admins - admin@fedoraproject.org
|
||||
csi_purpose: Run the django webapp for ask.fedoraproject.org
|
||||
csi_relationship: |
|
||||
This depends on:
|
||||
|
||||
- The database server on db01.
|
||||
- memcached (specifically memcached02), but only in production. In staging,
|
||||
a local-memory backend is used instead.
|
||||
|
||||
Gotchas:
|
||||
|
||||
- The packages for celery are installed, but we do not actually run or
|
||||
depend on the celery daemon.
|
||||
- There are *lots* of hotfixes in effect on this machine.
|
|
@ -1,10 +0,0 @@
|
|||
---
|
||||
nm: 255.255.255.0
|
||||
gw: 10.5.126.254
|
||||
dns: 10.5.126.21
|
||||
ks_url: http://10.5.126.23/repo/rhel/ks/kvm-rhel-6
|
||||
ks_repo: http://10.5.126.23/repo/rhel/RHEL6-x86_64/
|
||||
volgroup: /dev/vg_guests
|
||||
eth0_ip: 10.5.126.79
|
||||
vmhost: virthost19.phx2.fedoraproject.org
|
||||
datacenter: phx2
|
|
@ -1,10 +0,0 @@
|
|||
---
|
||||
nm: 255.255.255.0
|
||||
gw: 10.5.128.254
|
||||
dns: 10.5.126.21
|
||||
ks_url: http://10.5.126.23/repo/rhel/ks/kvm-rhel-6
|
||||
ks_repo: http://10.5.126.23/repo/rhel/RHEL6-x86_64/
|
||||
volgroup: /dev/vg_guests
|
||||
eth0_ip: 10.5.128.60
|
||||
vmhost: virthost12.phx2.fedoraproject.org
|
||||
datacenter: phx2
|
|
@ -1,10 +0,0 @@
|
|||
---
|
||||
nm: 255.255.255.0
|
||||
gw: 10.5.126.254
|
||||
dns: 10.5.126.21
|
||||
ks_url: http://10.5.126.23/repo/rhel/ks/kvm-rhel-6
|
||||
ks_repo: http://10.5.126.23/repo/rhel/RHEL6-x86_64/
|
||||
volgroup: /dev/vg_guests00
|
||||
eth0_ip: 10.5.126.57
|
||||
vmhost: virthost14.phx2.fedoraproject.org
|
||||
datacenter: phx2
|
|
@ -65,13 +65,6 @@ freshmaker-backend-stg
|
|||
freshmaker-frontend
|
||||
freshmaker-backend
|
||||
|
||||
[ask]
|
||||
ask01.phx2.fedoraproject.org
|
||||
ask02.phx2.fedoraproject.org
|
||||
|
||||
[ask-stg]
|
||||
ask01.stg.phx2.fedoraproject.org
|
||||
|
||||
[backup]
|
||||
backup01.phx2.fedoraproject.org
|
||||
|
||||
|
@ -711,7 +704,6 @@ hubs01.stg.phx2.fedoraproject.org
|
|||
# All staging hosts should be in this group too.
|
||||
#
|
||||
[staging]
|
||||
ask01.stg.phx2.fedoraproject.org
|
||||
autocloud-web01.stg.phx2.fedoraproject.org
|
||||
autocloud-web02.stg.phx2.fedoraproject.org
|
||||
autocloud-backend01.stg.phx2.fedoraproject.org
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
|
||||
- import_playbook: /srv/web/infra/ansible/playbooks/groups/anitya.yml
|
||||
- import_playbook: /srv/web/infra/ansible/playbooks/groups/arm-qa.yml
|
||||
- import_playbook: /srv/web/infra/ansible/playbooks/groups/ask.yml
|
||||
- import_playbook: /srv/web/infra/ansible/playbooks/groups/autocloud-backend.yml
|
||||
- import_playbook: /srv/web/infra/ansible/playbooks/groups/autocloud-web.yml
|
||||
- import_playbook: /srv/web/infra/ansible/playbooks/groups/backup-server.yml
|
||||
|
|
|
@ -1,93 +0,0 @@
|
|||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=ask-stg:ask"
|
||||
|
||||
- name: make the box be real
|
||||
hosts: ask-stg:ask
|
||||
user: root
|
||||
gather_facts: True
|
||||
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
- "/srv/private/ansible/vars.yml"
|
||||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||
|
||||
roles:
|
||||
- base
|
||||
- rkhunter
|
||||
- nagios_client
|
||||
- hosts
|
||||
- fas_client
|
||||
- collectd/base
|
||||
- mod_wsgi
|
||||
- ask
|
||||
- fedmsg/base
|
||||
- rsyncd
|
||||
- sudo
|
||||
- { role: openvpn/client,
|
||||
when: env != "staging" }
|
||||
|
||||
tasks:
|
||||
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
|
||||
- import_tasks: "{{ tasks_path }}/2fa_client.yml"
|
||||
- import_tasks: "{{ tasks_path }}/motd.yml"
|
||||
|
||||
handlers:
|
||||
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
||||
|
||||
- name: set up gluster on stg
|
||||
hosts: ask-stg
|
||||
user: root
|
||||
gather_facts: True
|
||||
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
- "/srv/private/ansible/vars.yml"
|
||||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||
|
||||
roles:
|
||||
- role: gluster/server
|
||||
glusterservername: gluster
|
||||
username: "{{ ask_gluster_username }}"
|
||||
password: "{{ ask_gluster_password }}"
|
||||
owner: root
|
||||
group: root
|
||||
datadir: /srv/glusterfs/ask-stg
|
||||
|
||||
- role: gluster/client
|
||||
glusterservername: gluster
|
||||
servers:
|
||||
- ask01.stg.phx2.fedoraproject.org
|
||||
username: "{{ ask_gluster_username }}"
|
||||
password: "{{ ask_gluster_password }}"
|
||||
owner: apache
|
||||
group: root
|
||||
mountdir: /srv/askbot-uploaded
|
||||
|
||||
- name: set up gluster on prod
|
||||
hosts: ask
|
||||
user: root
|
||||
gather_facts: True
|
||||
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
- "/srv/private/ansible/vars.yml"
|
||||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||
|
||||
roles:
|
||||
- role: gluster/server
|
||||
glusterservername: gluster
|
||||
username: "{{ ask_gluster_username }}"
|
||||
password: "{{ ask_gluster_password }}"
|
||||
owner: root
|
||||
group: root
|
||||
datadir: /srv/glusterfs/ask
|
||||
|
||||
- role: gluster/client
|
||||
glusterservername: gluster
|
||||
servers:
|
||||
- ask01.phx2.fedoraproject.org
|
||||
- ask02.phx2.fedoraproject.org
|
||||
username: "{{ ask_gluster_username }}"
|
||||
password: "{{ ask_gluster_password }}"
|
||||
owner: apache
|
||||
group: root
|
||||
mountdir: /srv/askbot-uploaded
|
Binary file not shown.
Before Width: | Height: | Size: 1.1 KiB |
|
@ -1,43 +0,0 @@
|
|||
LoadModule deflate_module modules/mod_deflate.so
|
||||
|
||||
# If we don't do this ourselves, the askbot wsgi app will do it incorrectly
|
||||
# it seems that it doesn't evaluate the X-Forwarded-For header appropriately.
|
||||
#RedirectMatch ^/$ https://ask.stg.fedoraproject.org/questions/
|
||||
|
||||
#The below needs to be apache writable
|
||||
Alias /m/ /var/www/html/askbot/static/
|
||||
Alias /admin/media/ /usr/lib/python2.6/site-packages/django/contrib/admin/media/
|
||||
|
||||
<Directory /usr/lib/python2.6/site-packages/askbot/skins>
|
||||
Order deny,allow
|
||||
Allow from all
|
||||
</Directory>
|
||||
|
||||
WSGIDaemonProcess askbot user=apache group=apache maximum-requests=1000 display-name=askbot processes=12 threads=1 shutdown-timeout=10 python-path=/etc/askbot/sites/ask
|
||||
WSGISocketPrefix run/wsgi
|
||||
WSGIRestrictStdout On
|
||||
WSGIRestrictSignal Off
|
||||
WSGIPythonOptimize 1
|
||||
|
||||
WSGIScriptAlias / /usr/sbin/askbot.wsgi
|
||||
|
||||
|
||||
ExpiresActive On
|
||||
ExpiresByType text/css "access plus 1 week"
|
||||
ExpiresByType text/javascript "access plus 1 week"
|
||||
ExpiresByType image/png "access plus 1 week"
|
||||
ExpiresByType image/gif "access plus 1 week"
|
||||
|
||||
<Location />
|
||||
SetOutputFilter DEFLATE
|
||||
WSGIProcessGroup askbot
|
||||
Order deny,allow
|
||||
Allow from all
|
||||
</Location>
|
||||
|
||||
Alias /upfiles/ /srv/askbot-uploaded/
|
||||
|
||||
<Directory /srv/askbot-uploaded>
|
||||
Order deny,allow
|
||||
Allow from all
|
||||
</Directory>
|
|
@ -1,16 +0,0 @@
|
|||
#!/usr/bin/python
|
||||
import os
|
||||
import sys
|
||||
sys.stdout = sys.stderr
|
||||
|
||||
os.environ['DJANGO_SETTINGS_MODULE'] = 'config.settings'
|
||||
|
||||
# Here we have to trick askbot into thinking its using ssl so it
|
||||
# produces the correct URLs for openid/auth stuff (mostly for stg).
|
||||
os.environ['HTTPS'] = "on"
|
||||
def is_secure(self):
|
||||
return True
|
||||
import django.core.handlers.wsgi
|
||||
django.core.handlers.wsgi.WSGIRequest.is_secure = is_secure
|
||||
|
||||
application = django.core.handlers.wsgi.WSGIHandler()
|
Binary file not shown.
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
Binary file not shown.
Before Width: | Height: | Size: 4.3 KiB |
Binary file not shown.
Before Width: | Height: | Size: 4.3 KiB |
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,27 +0,0 @@
|
|||
require 'compass/import-once/activate'
|
||||
require 'susy'
|
||||
require 'breakpoint'
|
||||
# Require any additional compass plugins here.
|
||||
|
||||
# Set this to the root of your project when deployed:
|
||||
http_path = "/"
|
||||
css_dir = "stylesheets"
|
||||
sass_dir = "sass"
|
||||
images_dir = "images"
|
||||
javascripts_dir = "javascripts"
|
||||
|
||||
# You can select your preferred output style here (can be overridden via the command line):
|
||||
# output_style = :expanded or :nested or :compact or :compressed
|
||||
|
||||
# To enable relative paths to assets via compass helper functions. Uncomment:
|
||||
# relative_assets = true
|
||||
|
||||
# To disable debugging comments that display the original location of your selectors. Uncomment:
|
||||
# line_comments = false
|
||||
|
||||
|
||||
# If you prefer the indented syntax, you might want to regenerate this
|
||||
# project again passing --syntax sass, or you can uncomment this:
|
||||
# preferred_syntax = :sass
|
||||
# and then run:
|
||||
# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass
|
Binary file not shown.
Before Width: | Height: | Size: 247 KiB |
|
@ -1,5 +0,0 @@
|
|||
/* Welcome to Compass. Use this file to write IE specific override styles.
|
||||
* Import this file using the following HTML or equivalent:
|
||||
* <!--[if IE]>
|
||||
* <link href="/stylesheets/ie.css" media="screen, projection" rel="stylesheet" type="text/css" />
|
||||
* <![endif]--> */
|
|
@ -1,3 +0,0 @@
|
|||
/* Welcome to Compass. Use this file to define print styles.
|
||||
* Import this file using the following HTML or equivalent:
|
||||
* <link href="/stylesheets/print.css" media="print" rel="stylesheet" type="text/css" /> */
|
|
@ -1,6 +0,0 @@
|
|||
/* Welcome to Compass.
|
||||
* In this file you should write your main styles. (or centralize your imports)
|
||||
* Import this file using the following HTML or equivalent:
|
||||
* <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css" /> */
|
||||
|
||||
@import "compass/reset";
|
File diff suppressed because it is too large
Load diff
|
@ -1,5 +0,0 @@
|
|||
/* Welcome to Compass. Use this file to write IE specific override styles.
|
||||
* Import this file using the following HTML or equivalent:
|
||||
* <!--[if IE]>
|
||||
* <link href="/stylesheets/ie.css" media="screen, projection" rel="stylesheet" type="text/css" />
|
||||
* <![endif]--> */
|
|
@ -1,3 +0,0 @@
|
|||
/* Welcome to Compass. Use this file to define print styles.
|
||||
* Import this file using the following HTML or equivalent:
|
||||
* <link href="/stylesheets/print.css" media="print" rel="stylesheet" type="text/css" /> */
|
|
@ -1,68 +0,0 @@
|
|||
/* Welcome to Compass.
|
||||
* In this file you should write your main styles. (or centralize your imports)
|
||||
* Import this file using the following HTML or equivalent:
|
||||
* <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css" /> */
|
||||
/* line 5, ../../../../../../../../../../../../../Ruby22/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */
|
||||
html, body, div, span, applet, object, iframe,
|
||||
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
||||
a, abbr, acronym, address, big, cite, code,
|
||||
del, dfn, em, img, ins, kbd, q, s, samp,
|
||||
small, strike, strong, sub, sup, tt, var,
|
||||
b, u, i, center,
|
||||
dl, dt, dd, ol, ul, li,
|
||||
fieldset, form, label, legend,
|
||||
table, caption, tbody, tfoot, thead, tr, th, td,
|
||||
article, aside, canvas, details, embed,
|
||||
figure, figcaption, footer, header, hgroup,
|
||||
menu, nav, output, ruby, section, summary,
|
||||
time, mark, audio, video {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
font: inherit;
|
||||
font-size: 100%;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
/* line 22, ../../../../../../../../../../../../../Ruby22/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */
|
||||
html {
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
/* line 24, ../../../../../../../../../../../../../Ruby22/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */
|
||||
ol, ul {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
/* line 26, ../../../../../../../../../../../../../Ruby22/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
/* line 28, ../../../../../../../../../../../../../Ruby22/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */
|
||||
caption, th, td {
|
||||
text-align: left;
|
||||
font-weight: normal;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
/* line 30, ../../../../../../../../../../../../../Ruby22/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */
|
||||
q, blockquote {
|
||||
quotes: none;
|
||||
}
|
||||
/* line 103, ../../../../../../../../../../../../../Ruby22/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */
|
||||
q:before, q:after, blockquote:before, blockquote:after {
|
||||
content: "";
|
||||
content: none;
|
||||
}
|
||||
|
||||
/* line 32, ../../../../../../../../../../../../../Ruby22/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */
|
||||
a img {
|
||||
border: none;
|
||||
}
|
||||
|
||||
/* line 116, ../../../../../../../../../../../../../Ruby22/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */
|
||||
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary {
|
||||
display: block;
|
||||
}
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue