From fea1853b9c19dfa52364cb95747033cadc824ae2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toshio=20=E3=81=8F=E3=82=89=E3=81=A8=E3=81=BF?= Date: Sat, 5 Oct 2013 03:04:23 +0000 Subject: [PATCH] Couple hotfixes to nuancier --- roles/nuancier/tasks/main.yml | 37 +++++++++++++++++++++++++++++++---- 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/roles/nuancier/tasks/main.yml b/roles/nuancier/tasks/main.yml index 2166ed91cc..1888711bfa 100644 --- a/roles/nuancier/tasks/main.yml +++ b/roles/nuancier/tasks/main.yml @@ -60,10 +60,39 @@ - restart apache # FIXME: Probably need other selinux booleans and tweaks here -- name: set sebooleans so nuancier can talk to the db - action: seboolean name=httpd_can_network_connect_db - state=true - persistent=true +# seboolean action requires libsemanage-python to be installed. Have to decide +# if we actually want to install that on the hosts. +# selinux is currently set to permissive due to other things that nuancier is +# trying to do. So no harm in leaving this disabled for now. +#- name: set sebooleans so nuancier can talk to the db +# action: seboolean name=httpd_can_network_connect_db +# state=true +# persistent=true + +- name: hotfix nuancier to get an error message for people not in cla_plus_one + template: src={{ item.file }} + dest={{ item.location }}/{{ item.file }} + owner=root group=root mode=0644 + with_items: + - { file: __init__.py, location: /usr/lib/python2.6/site-packages/nuancier/__init__.py } + tags: + - config + - hotfix + notify: + - restart apache + +- name: hotfix nuancier to fix results page + template: src={{ item.file }} + dest={{ item.location }}/{{ item.file }} + owner=root group=root mode=0644 + with_items: + - { file: model.py, location: /usr/lib/python2.6/site-packages/nuancier/model.py } + tags: + - config + - hotfix + notify: + - restart apache + - name: hotfix python-fedora-flask to include latest flask_fas_openid template: src={{ item.file }} dest={{ item.location }}/{{ item.file }}