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:
parent
965e506f47
commit
fdf1217f48
5 changed files with 35 additions and 17 deletions
|
@ -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
|
||||
|
||||
<Directory /srv/copr-fe/copr>
|
||||
<Directory /usr/share/copr>
|
||||
WSGIApplicationGroup %{GLOBAL}
|
||||
Order deny,allow
|
||||
Allow from all
|
||||
Require all granted
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
|
|
13
files/copr/fe/pg/pg_hba.conf
Normal file
13
files/copr/fe/pg/pg_hba.conf
Normal 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
|
7
files/copr/fe/yum/copr.repo
Normal file
7
files/copr/fe/yum/copr.repo
Normal 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
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
instance_type: m1.medium
|
||||
image: ${el6_qcow_id}
|
||||
image: ${f19_qcow_id}
|
||||
keypair: fedora-admin
|
||||
security_group: webserver
|
||||
zone: nova
|
||||
|
|
|
@ -25,21 +25,17 @@
|
|||
- 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
|
||||
|
@ -47,6 +43,9 @@
|
|||
- 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
|
||||
with_items:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue