sync up copr-dev with copr
This commit is contained in:
parent
e90b54c764
commit
c4e510395e
2 changed files with 28 additions and 0 deletions
|
@ -7,6 +7,10 @@
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
- "{{ private }}/vars.yml"
|
- "{{ private }}/vars.yml"
|
||||||
|
|
||||||
|
# Roles are run first, before tasks, regardless of where you place them here.
|
||||||
|
roles:
|
||||||
|
- fedmsg/base
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- include: "{{ tasks }}/persistent_cloud.yml"
|
- include: "{{ tasks }}/persistent_cloud.yml"
|
||||||
- include: "{{ tasks }}/growroot_cloud.yml"
|
- include: "{{ tasks }}/growroot_cloud.yml"
|
||||||
|
@ -29,6 +33,9 @@
|
||||||
- name: copy copr.repo
|
- name: copy copr.repo
|
||||||
action: copy src="{{ files }}/copr/fe/yum/copr.repo" dest=/etc/yum.repos.d/copr.repo
|
action: copy src="{{ files }}/copr/fe/yum/copr.repo" dest=/etc/yum.repos.d/copr.repo
|
||||||
|
|
||||||
|
- name: set the hostname
|
||||||
|
shell: hostname copr-be-dev.cloud.fedoraproject.org
|
||||||
|
|
||||||
# packages needed
|
# packages needed
|
||||||
- name: add packages for copr-be
|
- name: add packages for copr-be
|
||||||
action: yum state=present name={{ item }}
|
action: yum state=present name={{ item }}
|
||||||
|
|
|
@ -28,6 +28,9 @@
|
||||||
- name: copy copr.repo
|
- name: copy copr.repo
|
||||||
action: copy src="{{ files }}/copr/fe/yum/copr.repo" dest=/etc/yum.repos.d/copr.repo
|
action: copy src="{{ files }}/copr/fe/yum/copr.repo" dest=/etc/yum.repos.d/copr.repo
|
||||||
|
|
||||||
|
- name: set the hostname
|
||||||
|
shell: hostname copr-fe-dev.cloud.fedoraproject.org
|
||||||
|
|
||||||
- name: install copr-fe pkgs
|
- name: install copr-fe pkgs
|
||||||
action: yum state=installed pkg={{ item }}
|
action: yum state=installed pkg={{ item }}
|
||||||
with_items:
|
with_items:
|
||||||
|
@ -35,9 +38,18 @@
|
||||||
- copr-selinux
|
- copr-selinux
|
||||||
- postgresql-server
|
- postgresql-server
|
||||||
- bash-completion
|
- bash-completion
|
||||||
|
- fail2ban
|
||||||
|
- mod_ssl
|
||||||
tags:
|
tags:
|
||||||
- packages
|
- packages
|
||||||
|
|
||||||
|
- name: install copr configs
|
||||||
|
template: src="{{ files }}/copr/fe/copr.conf" dest=/etc/copr/copr.conf mode=600
|
||||||
|
notify:
|
||||||
|
- restart httpd
|
||||||
|
tags:
|
||||||
|
- config
|
||||||
|
|
||||||
- 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 }}"
|
||||||
with_items:
|
with_items:
|
||||||
|
@ -47,11 +59,20 @@
|
||||||
- name: copy pg_hba.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
|
action: copy src="{{ files }}/copr/fe/pg/pg_hba.conf" dest=/var/lib/pgsql/data/pg_hba.conf owner=postgres group=postgres mode=0600
|
||||||
|
|
||||||
|
# open up ports (22, 80, 443)
|
||||||
|
- name: poke holes in the firewall
|
||||||
|
action: command lokkit {{ item }}
|
||||||
|
with_items:
|
||||||
|
- --service=ssh
|
||||||
|
- --service=https
|
||||||
|
- --service=http
|
||||||
|
|
||||||
- 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:
|
||||||
- httpd
|
- httpd
|
||||||
- postgresql
|
- postgresql
|
||||||
|
- fail2ban
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
- include: "{{ handlers }}/restart_services.yml"
|
- include: "{{ handlers }}/restart_services.yml"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue