Merge branch 'master' of /git/ansible
This commit is contained in:
commit
c16877a30c
11 changed files with 55 additions and 5 deletions
|
@ -20,6 +20,9 @@ fas_client_groups: sysadmin-noc
|
|||
|
||||
freezes: false
|
||||
|
||||
# Don't use testing repos in production
|
||||
testing: False
|
||||
|
||||
# These are consumed by a task in roles/fedmsg/base/main.yml
|
||||
fedmsg_certs:
|
||||
- service: shell
|
||||
|
|
|
@ -20,6 +20,9 @@ custom_rules: [
|
|||
|
||||
fas_client_groups: sysadmin-noc,sysadmin-web
|
||||
|
||||
# Don't use testing repos in production
|
||||
testing: False
|
||||
|
||||
freezes: false
|
||||
vpn: true
|
||||
# These are consumed by a task in roles/fedmsg/base/main.yml
|
||||
|
|
|
@ -458,6 +458,7 @@
|
|||
server_aliases:
|
||||
- paste.stg.fedoraproject.org
|
||||
- modernpaste.stg.fedoraproject.org
|
||||
sslonly: true
|
||||
cert_name: "{{wildcard_cert_name}}"
|
||||
#
|
||||
# Make a website here so we can redirect it to paste.fedoraproject.org
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
- name: push packages out
|
||||
hosts: anitya-frontend01:anitya-backend01
|
||||
hosts: anitya-frontend:anitya-backend
|
||||
user: root
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
|
@ -19,7 +19,7 @@
|
|||
when: testing
|
||||
|
||||
- name: verify the frontend
|
||||
hosts: anitya-frontend01
|
||||
hosts: anitya-frontend
|
||||
user: root
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
|
@ -40,9 +40,10 @@
|
|||
nagios: action=unsilence service=host host={{ inventory_hostname_short }}{{ env_suffix }}
|
||||
delegate_to: noc01.phx2.fedoraproject.org
|
||||
ignore_errors: true
|
||||
- service: name="httpd" state=restarted
|
||||
|
||||
- name: verify the backend and then upgrade the db
|
||||
hosts: anitya-backend01
|
||||
hosts: anitya-backend
|
||||
user: root
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
|
@ -60,10 +61,10 @@
|
|||
- anitya/fedmsg
|
||||
tasks:
|
||||
- name: Upgrade the database
|
||||
command: /usr/bin/alembic -c /usr/share/anitya/alembic.ini upgrade head
|
||||
command: /usr/bin/alembic -c /etc/anitya/alembic.ini upgrade head
|
||||
args:
|
||||
chdir: /usr/share/anitya/
|
||||
when: inventory_hostname.startswith('anitya-backend01')
|
||||
when: inventory_hostname.startswith('anitya-backend')
|
||||
post_tasks:
|
||||
- name: tell nagios to unshush w.r.t. the backend
|
||||
nagios: action=unsilence service=host host={{ inventory_hostname_short }}{{ env_suffix }}
|
||||
|
|
BIN
roles/apps-fp-o/files/img/icons/modularity.png
Normal file
BIN
roles/apps-fp-o/files/img/icons/modularity.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.9 KiB |
|
@ -109,6 +109,7 @@
|
|||
- endpoints-fedocal.py
|
||||
- endpoints-fedbadges.py
|
||||
- endpoints-fmn-backend.py
|
||||
- endpoints-mbs-backend.py
|
||||
- endpoints-hotness.py
|
||||
- endpoints-mailman.py
|
||||
- endpoints-summershum.py
|
||||
|
|
14
roles/fedmsg/base/templates/endpoints-mbs-backend.py.j2
Normal file
14
roles/fedmsg/base/templates/endpoints-mbs-backend.py.j2
Normal file
|
@ -0,0 +1,14 @@
|
|||
{% if env == 'staging' %}
|
||||
suffix = 'stg.phx2.fedoraproject.org'
|
||||
{% else %}
|
||||
suffix = 'phx2.fedoraproject.org'
|
||||
{% endif %}
|
||||
|
||||
config = dict(
|
||||
endpoints={
|
||||
"mbs.mbs-backend01": [
|
||||
"tcp://mbs-backend01.%s:30%0.2i" % (suffix, i)
|
||||
for i in range(8)
|
||||
],
|
||||
},
|
||||
)
|
7
roles/mbs/common/files/fedora.json.production
Normal file
7
roles/mbs/common/files/fedora.json.production
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"fedora": {
|
||||
"host": "https://pdc.fedoraproject.org/rest_api/v1/",
|
||||
"develop": true,
|
||||
"insecure": false
|
||||
}
|
||||
}
|
7
roles/mbs/common/files/fedora.json.staging
Normal file
7
roles/mbs/common/files/fedora.json.staging
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"fedora": {
|
||||
"host": "https://pdc.stg.fedoraproject.org/rest_api/v1/",
|
||||
"develop": true,
|
||||
"insecure": false
|
||||
}
|
||||
}
|
|
@ -56,3 +56,14 @@
|
|||
tags:
|
||||
- mbs
|
||||
- mbs/common
|
||||
|
||||
- name: copy pdc client config file
|
||||
copy: >
|
||||
src=fedora.json.{{env}} dest=/etc/pdc.d/fedora.json
|
||||
owner=root group=root mode=0644
|
||||
notify:
|
||||
- restart apache
|
||||
- restart fedmsg-hub
|
||||
tags:
|
||||
- mbs
|
||||
- mbs/common
|
||||
|
|
|
@ -3,6 +3,8 @@ WSGIScriptAlias /stickynotes2modernpaste /usr/share/stickynotes2modernpaste/stic
|
|||
WSGISocketPrefix run/wsgi
|
||||
|
||||
RewriteEngine on
|
||||
RewriteRule login / [L,R]
|
||||
|
||||
RewriteCond %{HTTP_USER_AGENT} ^fpaste\/0\.3.*$ [OR]
|
||||
RewriteCond %{HTTP_USER_AGENT} ^Python\-urllib.*$
|
||||
RewriteCond %{REQUEST_METHOD} POST
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue