diff --git a/roles/plus-plus-service/handlers/main.yml b/roles/plus-plus-service/handlers/main.yml deleted file mode 100644 index fba23f58e9..0000000000 --- a/roles/plus-plus-service/handlers/main.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -- name: reload httpd - service: name=httpd state=reloaded diff --git a/roles/plus-plus-service/tasks/main.yml b/roles/plus-plus-service/tasks/main.yml deleted file mode 100644 index 731a567eb6..0000000000 --- a/roles/plus-plus-service/tasks/main.yml +++ /dev/null @@ -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 diff --git a/roles/plus-plus-service/templates/apache.conf b/roles/plus-plus-service/templates/apache.conf deleted file mode 100644 index 7e30fed500..0000000000 --- a/roles/plus-plus-service/templates/apache.conf +++ /dev/null @@ -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 - - - WSGIProcessGroup plus_plus_service - - # Apache 2.4 - Require all granted - - - # Apache 2.2 - Order deny,allow - Allow from all - - - diff --git a/roles/plus-plus-service/templates/settings.py b/roles/plus-plus-service/templates/settings.py deleted file mode 100644 index 6bfea6ffe0..0000000000 --- a/roles/plus-plus-service/templates/settings.py +++ /dev/null @@ -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 %}