Deploy https pushing to prod

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2018-05-31 00:17:39 +02:00
parent cc715b31b9
commit c666f61ee4
2 changed files with 1 additions and 33 deletions

View file

@ -19,31 +19,8 @@ WSGIDaemonProcess pagureproc user=pagure group=packager maximum-requests=1000 di
Alias /static /usr/lib/python2.7/site-packages/pagure/static/
Alias /grokmirror /srv/git/grokmirror
{% if env != "staging" %}
SetEnv GIT_PROJECT_ROOT /srv/git/repositories
AliasMatch ^/(.*/objects/[0-9a-f]{2}/[0-9a-f]{38})$ /srv/git/repositories/$1
AliasMatch ^/(.*/objects/pack/pack-[0-9a-f]{40}.(pack|idx))$ /srv/git/repositories/$1
ScriptAliasMatch \
"(?x)^/(.*/(HEAD | \
info/refs | \
objects/info/[^/]+ | \
git-(upload|receive)-pack))$" \
/usr/libexec/git-core/git-http-backend/$1
{% endif %}
<Location />
WSGIProcessGroup pagureproc
{% if env != "staging" %}
<IfModule mod_authz_core.c>
# Apache 2.4
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order deny,allow
Allow from all
</IfModule>
{% endif %}
</Location>
#</VirtualHost>

View file

@ -14,22 +14,16 @@
- mod_auth_gssapi
- python-fedmsg-genacls
- /usr/sbin/semanage
- mod_auth_openidc
tags:
- distgit
- name: install stg packages
package: name=mod_auth_openidc state=present
tags:
- distgit
when: env == "staging"
- name: install the mod_auth_openidc configuration
template: src=auth_openidc.conf dest=/etc/httpd/conf.d/auth_openidc.conf
notify:
- reload httpd
tags:
- distgit
when: env == "staging"
- name: install the http push configuration
copy: src=htpppush.conf dest=/etc/httpd/conf.d/htppush.conf
@ -37,13 +31,11 @@
- reload httpd
tags:
- distgit
when: env == "staging"
- name: Create suexec wrapper directory
file: path=/var/www/bin state=directory owner=pagure group=packager
tags:
- distgit
when: env == "staging"
- name: Install suexec wrapper
copy:
@ -53,7 +45,6 @@
group=packager
tags:
- distgit
when: env == "staging"
- name: Put in git service config
copy: src=git@.service dest=/etc/systemd/system/git@.service