update copr-fe playbook and configs to have it actually work

This commit is contained in:
Seth Vidal 2013-03-27 16:16:42 +00:00
parent a6482f83f2
commit dc06bfb82f
4 changed files with 50 additions and 0 deletions

1
files/copr/fe/README Normal file
View file

@ -0,0 +1 @@
in this dir is where we put all the configs for the copr frontend

View file

@ -0,0 +1,21 @@
NameVirtualHost *:80
LoadModule wsgi_module modules/mod_wsgi.so
WSGISocketPrefix /var/run/wsgi
<VirtualHost *:80>
ServerName copr-fe.cloud.fedoraproject.org
WSGIPassAuthorization On
WSGIDaemonProcess 127.0.0.1 user=copr-fe group=copr-fe threads=5
WSGIScriptAlias / /srv/copr-fe/copr/coprs_frontend/application
WSGIProcessGroup 127.0.0.1
ErrorLog logs/error_coprs
CustomLog logs/access_coprs common
<Directory /srv/copr-fe/copr>
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
</Directory>
</VirtualHost>

View file

@ -0,0 +1 @@
#commented out so it doesn't do that stupid index page

View file

@ -26,6 +26,33 @@
- name: mount up disk of copr fe
action: mount name=/srv/copr-fe src='LABEL=copr-fe' fstype=ext4 state=mounted
- name: mount up bind mount for postgres
action: mount src=/srv/copr-fe/pgsqldb name=/var/lib/pgsql fstype=auto opts=bind
- name: install copr-fe pkgs
action: yum state=installed name=$item
with_items:
- httpd
- mod_wsgi
- postgresql
- bash-completion
- postgresql-server
- git
- name: copy apache files to conf.d
action: copy src=$files/copr/fe/httpd/$item dest=/etc/httpd/conf.d/$item
with_items:
- coprs.conf
- welcome.conf
- name: start services
action: service state=running enabled=yes name=$item
with_items:
- httpd
- postgresql
# open up ports (22, 80, 443)
- name: poke holes in the firewall
action: command lokkit $item