diff --git a/files/copr/fe/README b/files/copr/fe/README new file mode 100644 index 0000000000..c59148083e --- /dev/null +++ b/files/copr/fe/README @@ -0,0 +1 @@ +in this dir is where we put all the configs for the copr frontend diff --git a/files/copr/fe/httpd/coprs.conf b/files/copr/fe/httpd/coprs.conf new file mode 100644 index 0000000000..712dcc2079 --- /dev/null +++ b/files/copr/fe/httpd/coprs.conf @@ -0,0 +1,21 @@ +NameVirtualHost *:80 +LoadModule wsgi_module modules/mod_wsgi.so +WSGISocketPrefix /var/run/wsgi + + + 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 + + + WSGIApplicationGroup %{GLOBAL} + Order deny,allow + Allow from all + + diff --git a/files/copr/fe/httpd/welcome.conf b/files/copr/fe/httpd/welcome.conf new file mode 100644 index 0000000000..3b15c42b9f --- /dev/null +++ b/files/copr/fe/httpd/welcome.conf @@ -0,0 +1 @@ +#commented out so it doesn't do that stupid index page diff --git a/playbooks/hosts/copr-fe.cloud.fedoraproject.org.yml b/playbooks/hosts/copr-fe.cloud.fedoraproject.org.yml index 521909fc56..7845a5aef6 100644 --- a/playbooks/hosts/copr-fe.cloud.fedoraproject.org.yml +++ b/playbooks/hosts/copr-fe.cloud.fedoraproject.org.yml @@ -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