update copr-fe-dev playbook

... to match last copr.rpm and copr-setup.txt
Also move to F19 as current Copr does not run on EL6
This commit is contained in:
Miroslav Suchý 2013-09-26 12:53:15 +00:00
parent 965e506f47
commit fdf1217f48
5 changed files with 35 additions and 17 deletions

View file

@ -7,15 +7,14 @@ WSGISocketPrefix /var/run/wsgi
WSGIPassAuthorization On WSGIPassAuthorization On
WSGIDaemonProcess 127.0.0.1 user=copr-fe group=copr-fe threads=5 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 WSGIProcessGroup 127.0.0.1
ErrorLog logs/error_coprs ErrorLog logs/error_coprs
CustomLog logs/access_coprs common CustomLog logs/access_coprs common
<Directory /srv/copr-fe/copr> <Directory /usr/share/copr>
WSGIApplicationGroup %{GLOBAL} WSGIApplicationGroup %{GLOBAL}
Order deny,allow Require all granted
Allow from all
</Directory> </Directory>
</VirtualHost> </VirtualHost>

View file

@ -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

View file

@ -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

View file

@ -1,6 +1,6 @@
--- ---
instance_type: m1.medium instance_type: m1.medium
image: ${el6_qcow_id} image: ${f19_qcow_id}
keypair: fedora-admin keypair: fedora-admin
security_group: webserver security_group: webserver
zone: nova zone: nova

View file

@ -25,21 +25,17 @@
- include: $tasks/cloud_setup_basic.yml - include: $tasks/cloud_setup_basic.yml
- include: $tasks/iptables.yml - include: $tasks/iptables.yml
- name: /srv/copr-fe dir - name: copy copr.repo
action: file state=directory path=/srv/copr-fe action: copy src=$files/copr/fe/yum/copr.repo dest=/etc/yum.repos.d/copr.repo
- name: install copr-fe pkgs - name: install copr-fe pkgs
action: yum state=installed name=$item action: yum state=installed pkg=$item
with_items: - copr-frontend
- httpd - copr-selinux
- mod_wsgi
- postgresql
- bash-completion
- postgresql-server - postgresql-server
- git - bash-completion
tags:
- name: add copr-fe user - packages
action: user name=copr-fe state=present system=yes home=/home/copr-fe
- name: copy apache files to conf.d - name: copy apache files to conf.d
action: copy src=$files/copr/fe/httpd/$item dest=/etc/httpd/conf.d/$item action: copy src=$files/copr/fe/httpd/$item dest=/etc/httpd/conf.d/$item
@ -47,6 +43,9 @@
- coprs.conf - coprs.conf
- welcome.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 - name: enable services
action: service state=running enabled=yes name=$item action: service state=running enabled=yes name=$item
with_items: with_items: