Deploy https pushing to prod
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
cc715b31b9
commit
c666f61ee4
2 changed files with 1 additions and 33 deletions
|
@ -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 /static /usr/lib/python2.7/site-packages/pagure/static/
|
||||||
Alias /grokmirror /srv/git/grokmirror
|
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 />
|
<Location />
|
||||||
WSGIProcessGroup pagureproc
|
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>
|
</Location>
|
||||||
|
|
||||||
#</VirtualHost>
|
#</VirtualHost>
|
||||||
|
|
|
@ -14,22 +14,16 @@
|
||||||
- mod_auth_gssapi
|
- mod_auth_gssapi
|
||||||
- python-fedmsg-genacls
|
- python-fedmsg-genacls
|
||||||
- /usr/sbin/semanage
|
- /usr/sbin/semanage
|
||||||
|
- mod_auth_openidc
|
||||||
tags:
|
tags:
|
||||||
- distgit
|
- distgit
|
||||||
|
|
||||||
- name: install stg packages
|
|
||||||
package: name=mod_auth_openidc state=present
|
|
||||||
tags:
|
|
||||||
- distgit
|
|
||||||
when: env == "staging"
|
|
||||||
|
|
||||||
- name: install the mod_auth_openidc configuration
|
- name: install the mod_auth_openidc configuration
|
||||||
template: src=auth_openidc.conf dest=/etc/httpd/conf.d/auth_openidc.conf
|
template: src=auth_openidc.conf dest=/etc/httpd/conf.d/auth_openidc.conf
|
||||||
notify:
|
notify:
|
||||||
- reload httpd
|
- reload httpd
|
||||||
tags:
|
tags:
|
||||||
- distgit
|
- distgit
|
||||||
when: env == "staging"
|
|
||||||
|
|
||||||
- name: install the http push configuration
|
- name: install the http push configuration
|
||||||
copy: src=htpppush.conf dest=/etc/httpd/conf.d/htppush.conf
|
copy: src=htpppush.conf dest=/etc/httpd/conf.d/htppush.conf
|
||||||
|
@ -37,13 +31,11 @@
|
||||||
- reload httpd
|
- reload httpd
|
||||||
tags:
|
tags:
|
||||||
- distgit
|
- distgit
|
||||||
when: env == "staging"
|
|
||||||
|
|
||||||
- name: Create suexec wrapper directory
|
- name: Create suexec wrapper directory
|
||||||
file: path=/var/www/bin state=directory owner=pagure group=packager
|
file: path=/var/www/bin state=directory owner=pagure group=packager
|
||||||
tags:
|
tags:
|
||||||
- distgit
|
- distgit
|
||||||
when: env == "staging"
|
|
||||||
|
|
||||||
- name: Install suexec wrapper
|
- name: Install suexec wrapper
|
||||||
copy:
|
copy:
|
||||||
|
@ -53,7 +45,6 @@
|
||||||
group=packager
|
group=packager
|
||||||
tags:
|
tags:
|
||||||
- distgit
|
- distgit
|
||||||
when: env == "staging"
|
|
||||||
|
|
||||||
- name: Put in git service config
|
- name: Put in git service config
|
||||||
copy: src=git@.service dest=/etc/systemd/system/git@.service
|
copy: src=git@.service dest=/etc/systemd/system/git@.service
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue