Remove the plus_plus_service role as we never deployed it :(
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
736b3db7d1
commit
37890c4113
4 changed files with 0 additions and 83 deletions
|
@ -1,3 +0,0 @@
|
||||||
---
|
|
||||||
- name: reload httpd
|
|
||||||
service: name=httpd state=reloaded
|
|
|
@ -1,43 +0,0 @@
|
||||||
---
|
|
||||||
# Configuration for the plus-plus-service webapp
|
|
||||||
|
|
||||||
- name: Ensure mod_wsgi is not installed since we're using python3
|
|
||||||
package: pkg=mod_wsgi state=absent
|
|
||||||
tags:
|
|
||||||
- pps
|
|
||||||
- packages
|
|
||||||
|
|
||||||
- name: Ensure there are no left over of mod_wsgi
|
|
||||||
file: path=/etc/httpd/conf.d/wsgi.conf state=absent
|
|
||||||
tags:
|
|
||||||
- pps
|
|
||||||
- config
|
|
||||||
|
|
||||||
- name: install needed packages
|
|
||||||
package:
|
|
||||||
state: present
|
|
||||||
name:
|
|
||||||
- plus-plus-service
|
|
||||||
- python3-mod_wsgi
|
|
||||||
- python3-psycopg2
|
|
||||||
tags:
|
|
||||||
- pps
|
|
||||||
- packages
|
|
||||||
|
|
||||||
- name: create all the directory for the configuration file
|
|
||||||
file: state=directory path=/etc/plus-plus-service
|
|
||||||
tags:
|
|
||||||
- pps
|
|
||||||
- config
|
|
||||||
|
|
||||||
- name: Install the config files
|
|
||||||
template: src={{ item.src }}
|
|
||||||
dest={{ item.dest }}
|
|
||||||
with_items:
|
|
||||||
- { src: 'settings.py', dest: /etc/plus-plus-service/settings.py }
|
|
||||||
- { src: 'apache.conf', dest: /etc/httpd/conf.d/plus-plus-service.conf }
|
|
||||||
tags:
|
|
||||||
- pps
|
|
||||||
- config
|
|
||||||
notify:
|
|
||||||
- reload httpd
|
|
|
@ -1,21 +0,0 @@
|
||||||
WSGIDaemonProcess plus_plus_service user=apache maximum-requests=1000 display-name=plus_plus_service processes={{ wsgi_procs }} threads={{ wsgi_threads }}
|
|
||||||
WSGISocketPrefix run/wsgi
|
|
||||||
WSGIRestrictStdout On
|
|
||||||
WSGIRestrictSignal Off
|
|
||||||
WSGIPythonOptimize 1
|
|
||||||
|
|
||||||
WSGIScriptAlias /pps /etc/plus-plus-service/wsgi.py
|
|
||||||
|
|
||||||
<Location />
|
|
||||||
WSGIProcessGroup plus_plus_service
|
|
||||||
<IfModule mod_authz_core.c>
|
|
||||||
# Apache 2.4
|
|
||||||
Require all granted
|
|
||||||
</IfModule>
|
|
||||||
<IfModule !mod_authz_core.c>
|
|
||||||
# Apache 2.2
|
|
||||||
Order deny,allow
|
|
||||||
Allow from all
|
|
||||||
</IfModule>
|
|
||||||
</Location>
|
|
||||||
|
|
|
@ -1,16 +0,0 @@
|
||||||
# Configuration file for pps aka the plus-plus-service
|
|
||||||
|
|
||||||
SQLALCHEMY_DATABASE_URI = 'postgresql://{{ pps_db_user }}:{{ pps_db_pass }}@{{ pps_db_host }}/{{ pps_db_name }}'
|
|
||||||
|
|
||||||
## name of the user so the application can log in to FAS with
|
|
||||||
FAS_USERNAME = '{{ fedorathirdpartyUser }}'
|
|
||||||
## password of the user so the application can log in to FAS with
|
|
||||||
FAS_PASSWORD = '{{ fedorathirdpartyPassword }}'
|
|
||||||
|
|
||||||
PLUS_PLUS_TOKEN = '{{ plus_plus_service_token }}'
|
|
||||||
|
|
||||||
{% if env == 'staging' %}
|
|
||||||
FAS_URL = 'https://admin.stg.fedoraproject.org/accounts/'
|
|
||||||
{% else %}
|
|
||||||
FAS_URL = 'https://admin.fedoraproject.org/accounts/'
|
|
||||||
{% endif %}
|
|
Loading…
Add table
Add a link
Reference in a new issue