diff --git a/files/copr/fe/httpd/coprs.conf b/files/copr/fe/httpd/coprs.conf index 712dcc2079..8ba86c60eb 100644 --- a/files/copr/fe/httpd/coprs.conf +++ b/files/copr/fe/httpd/coprs.conf @@ -7,15 +7,14 @@ WSGISocketPrefix /var/run/wsgi WSGIPassAuthorization On WSGIDaemonProcess 127.0.0.1 user=copr-fe group=copr-fe threads=5 - WSGIScriptAlias / /srv/copr-fe/copr/coprs_frontend/application + WSGIScriptAlias / /usr/share/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 + Require all granted diff --git a/files/copr/fe/pg/pg_hba.conf b/files/copr/fe/pg/pg_hba.conf new file mode 100644 index 0000000000..3cf2f2cb65 --- /dev/null +++ b/files/copr/fe/pg/pg_hba.conf @@ -0,0 +1,13 @@ +local coprdb copr-fe md5 +host coprdb copr-fe 127.0.0.1/8 md5 +host coprdb copr-fe ::1/128 md5 +local coprdb postgres ident + +# TYPE DATABASE USER ADDRESS METHOD + +# "local" is for Unix domain socket connections only +local all all peer +# IPv4 local connections: +host all all 127.0.0.1/32 ident +# IPv6 local connections: +host all all ::1/128 ident diff --git a/files/copr/fe/yum/copr.repo b/files/copr/fe/yum/copr.repo new file mode 100644 index 0000000000..e07ef98e36 --- /dev/null +++ b/files/copr/fe/yum/copr.repo @@ -0,0 +1,7 @@ +[Copr] +name=Copr +failovermethod=priority +baseurl=http://copr-be.cloud.fedoraproject.org/results/msuchy/copr/fedora-19-x86_64/ +enabled=1 +gpgcheck=0 + diff --git a/inventory/host_vars/copr-fe-dev.cloud.fedoraproject.org b/inventory/host_vars/copr-fe-dev.cloud.fedoraproject.org index 2ba5895c65..f3dc422799 100644 --- a/inventory/host_vars/copr-fe-dev.cloud.fedoraproject.org +++ b/inventory/host_vars/copr-fe-dev.cloud.fedoraproject.org @@ -1,6 +1,6 @@ --- instance_type: m1.medium -image: ${el6_qcow_id} +image: ${f19_qcow_id} keypair: fedora-admin security_group: webserver zone: nova diff --git a/playbooks/hosts/copr-fe-dev.cloud.fedoraproject.org.yml b/playbooks/hosts/copr-fe-dev.cloud.fedoraproject.org.yml index 7b0758218b..c510c22071 100644 --- a/playbooks/hosts/copr-fe-dev.cloud.fedoraproject.org.yml +++ b/playbooks/hosts/copr-fe-dev.cloud.fedoraproject.org.yml @@ -25,27 +25,26 @@ - include: $tasks/cloud_setup_basic.yml - include: $tasks/iptables.yml - - name: /srv/copr-fe dir - action: file state=directory path=/srv/copr-fe + - name: copy copr.repo + action: copy src=$files/copr/fe/yum/copr.repo dest=/etc/yum.repos.d/copr.repo - name: install copr-fe pkgs - action: yum state=installed name=$item - with_items: - - httpd - - mod_wsgi - - postgresql - - bash-completion + action: yum state=installed pkg=$item + - copr-frontend + - copr-selinux - postgresql-server - - git - - - name: add copr-fe user - action: user name=copr-fe state=present system=yes home=/home/copr-fe + - bash-completion + tags: + - packages - 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: copy pg_hba.conf + action: copy src=$files/copr/fe/pg/pg_hba.conf dest=/var/lib/pgsql/data/pg_hba.conf owner=postgres group=postgres mode=0600 - name: enable services action: service state=running enabled=yes name=$item