pagure: clean up the pagure role as pagure01 is no longer real
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
8e7dcdbf8d
commit
c9c2a6158e
1 changed files with 1 additions and 65 deletions
|
@ -1,29 +1,5 @@
|
||||||
---
|
---
|
||||||
# Configuration for the pagure webapp
|
# Configuration for the pagure webapp
|
||||||
|
|
||||||
- name: install needed packages
|
|
||||||
package: name={{ item }} state=present
|
|
||||||
with_items:
|
|
||||||
- pagure
|
|
||||||
- pagure-ci
|
|
||||||
- pagure-ev
|
|
||||||
- pagure-loadjson
|
|
||||||
- pagure-logcom
|
|
||||||
- pagure-milters
|
|
||||||
- pagure-webhook
|
|
||||||
- python-psycopg2
|
|
||||||
- python2-pygments2
|
|
||||||
- redis
|
|
||||||
- libsemanage-python
|
|
||||||
- mod_ssl
|
|
||||||
- stunnel
|
|
||||||
# Use haveged to ensure the server keeps some entropy
|
|
||||||
- haveged
|
|
||||||
when: env != 'pagure-staging' and not inventory_hostname.startswith('pagure02')
|
|
||||||
tags:
|
|
||||||
- pagure
|
|
||||||
- packages
|
|
||||||
|
|
||||||
- name: install needed packages
|
- name: install needed packages
|
||||||
package: name={{ item }} state=present
|
package: name={{ item }} state=present
|
||||||
with_items:
|
with_items:
|
||||||
|
@ -34,6 +10,7 @@
|
||||||
- pagure-logcom
|
- pagure-logcom
|
||||||
- pagure-milters
|
- pagure-milters
|
||||||
- pagure-webhook
|
- pagure-webhook
|
||||||
|
- pagure-theme-pagureio
|
||||||
- python3-psycopg2
|
- python3-psycopg2
|
||||||
- python3-pygments
|
- python3-pygments
|
||||||
- redis
|
- redis
|
||||||
|
@ -43,16 +20,6 @@
|
||||||
- stunnel
|
- stunnel
|
||||||
# Use haveged to ensure the server keeps some entropy
|
# Use haveged to ensure the server keeps some entropy
|
||||||
- haveged
|
- haveged
|
||||||
when: env == 'pagure-staging' or inventory_hostname.startswith('pagure02')
|
|
||||||
tags:
|
|
||||||
- pagure
|
|
||||||
- packages
|
|
||||||
|
|
||||||
- name: install needed packages
|
|
||||||
package: name={{ item }} state=present
|
|
||||||
when: env == 'pagure-staging' or inventory_hostname.startswith('pagure02')
|
|
||||||
with_items:
|
|
||||||
- pagure-theme-pagureio
|
|
||||||
tags:
|
tags:
|
||||||
- pagure
|
- pagure
|
||||||
- packages
|
- packages
|
||||||
|
@ -101,18 +68,9 @@
|
||||||
tags:
|
tags:
|
||||||
- pagure
|
- pagure
|
||||||
|
|
||||||
|
|
||||||
- name: Create the "git" user
|
|
||||||
command: useradd --move-home --login git --home /srv/git/
|
|
||||||
creates=/srv/git/
|
|
||||||
when: env != 'pagure-staging' and not inventory_hostname.startswith('pagure02')
|
|
||||||
tags:
|
|
||||||
- pagure
|
|
||||||
|
|
||||||
- name: Create the "git" user
|
- name: Create the "git" user
|
||||||
command: useradd --create-home --home-dir=/srv/git/ git
|
command: useradd --create-home --home-dir=/srv/git/ git
|
||||||
creates=/srv/git/
|
creates=/srv/git/
|
||||||
when: env == 'pagure-staging' or inventory_hostname.startswith('pagure02')
|
|
||||||
tags:
|
tags:
|
||||||
- pagure
|
- pagure
|
||||||
|
|
||||||
|
@ -283,20 +241,10 @@
|
||||||
|
|
||||||
# setup fedora-messaging
|
# setup fedora-messaging
|
||||||
|
|
||||||
- name: install fedora-messaging as a dependency
|
|
||||||
package: name={{ item }} state=present
|
|
||||||
with_items:
|
|
||||||
- python2-fedora-messaging
|
|
||||||
when: env != 'pagure-staging' and not inventory_hostname.startswith('pagure02')
|
|
||||||
tags:
|
|
||||||
- pagure
|
|
||||||
- fedora-messaging
|
|
||||||
|
|
||||||
- name: install fedora-messaging as a dependency
|
- name: install fedora-messaging as a dependency
|
||||||
package: name={{ item }} state=present
|
package: name={{ item }} state=present
|
||||||
with_items:
|
with_items:
|
||||||
- python3-fedora-messaging
|
- python3-fedora-messaging
|
||||||
when: env == 'pagure-staging' or inventory_hostname.startswith('pagure02')
|
|
||||||
tags:
|
tags:
|
||||||
- pagure
|
- pagure
|
||||||
- fedora-messaging
|
- fedora-messaging
|
||||||
|
@ -399,23 +347,11 @@
|
||||||
notify:
|
notify:
|
||||||
- restart apache
|
- restart apache
|
||||||
|
|
||||||
|
|
||||||
- name: create the database scheme
|
|
||||||
command: /usr/bin/python2 /usr/share/pagure/pagure_createdb.py
|
|
||||||
changed_when: "1 != 1"
|
|
||||||
environment:
|
|
||||||
PAGURE_CONFIG: /etc/pagure/pagure.cfg
|
|
||||||
when: env != 'pagure-staging' and not inventory_hostname.startswith('pagure02')
|
|
||||||
tags:
|
|
||||||
- web
|
|
||||||
- pagure
|
|
||||||
|
|
||||||
- name: create the database scheme
|
- name: create the database scheme
|
||||||
command: /usr/bin/python3 /usr/share/pagure/pagure_createdb.py
|
command: /usr/bin/python3 /usr/share/pagure/pagure_createdb.py
|
||||||
changed_when: "1 != 1"
|
changed_when: "1 != 1"
|
||||||
environment:
|
environment:
|
||||||
PAGURE_CONFIG: /etc/pagure/pagure.cfg
|
PAGURE_CONFIG: /etc/pagure/pagure.cfg
|
||||||
when: env == 'pagure-staging' or inventory_hostname.startswith('pagure02')
|
|
||||||
tags:
|
tags:
|
||||||
- web
|
- web
|
||||||
- pagure
|
- pagure
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue