summaryrefslogtreecommitdiffstats
path: root/roles/github2fedmsg/tasks
diff options
context:
space:
mode:
authorRalph Bean <rbean@redhat.com>2014-06-16 20:20:21 +0000
committerRalph Bean <rbean@redhat.com>2014-06-16 20:20:21 +0000
commit0458fc105b587331af7b9288f11c9562b3bb2852 (patch)
treed03653f2cc11373be533b360abd2b8bd210f8687 /roles/github2fedmsg/tasks
parent20b6ff52b15aaabc303c26e7ac1c64621dc2fe36 (diff)
downloadansible-0458fc105b587331af7b9288f11c9562b3bb2852.tar.gz
ansible-0458fc105b587331af7b9288f11c9562b3bb2852.tar.xz
ansible-0458fc105b587331af7b9288f11c9562b3bb2852.zip
Start of a github2fedmsg role.
Diffstat (limited to 'roles/github2fedmsg/tasks')
-rw-r--r--roles/github2fedmsg/tasks/main.yml69
1 files changed, 69 insertions, 0 deletions
diff --git a/roles/github2fedmsg/tasks/main.yml b/roles/github2fedmsg/tasks/main.yml
new file mode 100644
index 000000000..630c147d1
--- /dev/null
+++ b/roles/github2fedmsg/tasks/main.yml
@@ -0,0 +1,69 @@
+---
+# Configuration for the tahrir webapp
+
+- name: install needed packages
+ yum: pkg={{ item }} state=installed
+ with_items:
+ - github2fedmsg
+ - python-psycopg2
+ - python-memcached
+ - python-sqlalchemy0.8
+ - libsemanage-python
+ tags:
+ - packages
+
+- name: copy github2fedmsg app configuration
+ template: >
+ src={{ item }} dest="/etc/github2fedmsg/{{ item }}"
+ owner=github2fedmsg group=github2fedmsg mode=0600
+ with_items:
+ - github2fedmsg.ini
+ tags:
+ - config
+ notify:
+ - restart apache
+
+ - name: copy github2fedmsg secret oauth creds
+ template: >
+ src=githubsecrets.py
+ dest=/usr/lib/python2.6/site-packages/github2fedmsg/githubsecrets.py
+ mode=0640 owner=apache group=apache
+ tags:
+ - config
+ notify:
+ - restart apache
+
+- name: copy github2fedmsg wsgi script
+ copy: >
+ src={{ item }} dest="/usr/share/github2fedmsg/{{ item }}"
+ owner=apache group=apache mode=0644
+ with_items:
+ - github2fedmsg.wsgi
+ tags:
+ - config
+ notify:
+ - restart apache
+
+- name: copy github2fedmsg httpd config
+ copy: >
+ src={{ item }} dest="/etc/httpd/conf.d/{{ item }}"
+ owner=apache group=apache mode=0644
+ with_items:
+ - github2fedmsg.conf
+ tags:
+ - config
+ notify:
+ - restart apache
+
+- name: hotfix - allow velruse to do stateless openid
+ copy: >
+ src=openid.py
+ dest=/usr/lib/python2.6/site-packages/velruse/providers/openid.py
+ owner=root group=root mode=0644
+ tags:
+ - hotfix
+ notify:
+ - restart apache
+
+- name: ensure selinux lets httpd talk to postgres
+ seboolean: name=httpd_can_network_connect_db persistent=yes state=yes