Start working on the darkserver role

darkserver
Pierre-Yves Chibon 8 years ago
parent 62b5f188e8
commit a11aa065ad
  1. 29
      roles/darkserver/tasks/main.yml
  2. 12
      roles/darkserver/templates/darkjobworker.conf
  3. 11
      roles/darkserver/templates/darkserver.conf
  4. 10
      roles/darkserver/templates/darkserverweb.conf
  5. 1
      roles/darkserver/templates/email.json

@ -0,0 +1,29 @@
---
# Configuration for the fedocal webapp
- name: clean yum metadata
command: yum clean all
tags:
- packages
- name: install needed packages
yum: pkg={{ item }} state=present
with_items:
- darkserver
- darkserver-importer
tags:
- packages
- name: Install all the configuration file of darkserver
template: src={{ item.file }}
dest={{ item.location }}/{{ item.file }}
owner=apache group=apache mode=0640
with_items:
- { file: darkserverweb.conf, location: /etc/darkserver/darkserverweb.conf }
- { file: darkjobworker.conf, location: /etc/darkserver/darkjobworker.conf }
- { file: email.json, location: /etc/darkserver/email.json }
tags:
- config
notify:
- restart apache

@ -0,0 +1,12 @@
[darkserver]
{% if env == 'staging' %}
host=db-darkserver.stg
{% else %}
host=db-darkserver
{% endid %}
database=darkserver
user=darkwriter
password={{ darkserverWriterDBPassword }}
port=3306
unique=127.0.0.1

@ -0,0 +1,11 @@
[darkserver]
{% if env == 'staging' %}
host=db-darkserver.stg
{% else %}
host=db-darkserver
{% endid %}
user=darkserver-koji
password={{ darkserverKojiPluginDBPassword }}
database=darkserver
port=3306

@ -0,0 +1,10 @@
[darkserverweb]
{% if env == 'staging' %}
host=db-darkserver.stg
{% else %}
host=db-darkserver
{% endif %}
user=darkreader
password={{ darkserverReaderDBPassword }}
database=darkserver

@ -0,0 +1 @@
"sysadmin-darkserver-members@fedoraproject.org"
Loading…
Cancel
Save