update copr-fe.cloud.fedoraproject.org.yml

copy copr-fe-dev to copr-fe, but preserve mount points
This commit is contained in:
Miroslav Suchý 2013-10-25 09:40:51 +00:00
parent 366ff69c67
commit 2a1aa83748

View file

@ -25,19 +25,23 @@
- include: $tasks/cloud_setup_basic.yml - include: $tasks/cloud_setup_basic.yml
- name: mount up disk of copr fe - name: mount up disk of copr fe
action: mount name=/srv/copr-fe src='LABEL=copr-fe' fstype=ext4 state=mounted action: mount name=/srv/copr-fe src='LABEL=copr-fe' fstype=ext4 state=mounted
- include: $tasks/iptables.yml
- name: mount up bind mount for postgres - name: mount up bind mount for postgres
action: mount src=/srv/copr-fe/pgsqldb name=/var/lib/pgsql fstype=auto opts=bind state=mounted action: mount src=/srv/copr-fe/pgsqldb name=/var/lib/pgsql fstype=auto opts=bind state=mounted
# we could not use ourself repo :(
#- 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 - name: install copr-fe pkgs
action: yum state=installed name=$item action: yum state=installed pkg=$item
with_items: with_items:
- httpd - copr-frontend
- mod_wsgi - copr-selinux
- postgresql
- bash-completion
- postgresql-server - postgresql-server
- git - bash-completion
tags:
- packages
- 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
@ -45,21 +49,14 @@
- coprs.conf - coprs.conf
- welcome.conf - welcome.conf
- name: copy pg_hba.conf
- name: start services 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 action: service state=running enabled=yes name=$item
with_items: with_items:
- httpd - httpd
- postgresql - postgresql
# open up ports (22, 80, 443)
- name: poke holes in the firewall
action: command lokkit $item
with_items:
- --service=ssh
- --service=https
- --service=http
handlers: handlers:
- include: $handlers/restart_services.yml - include: $handlers/restart_services.yml