summaryrefslogtreecommitdiffstats
path: root/roles/github2fedmsg
diff options
context:
space:
mode:
authorRalph Bean <rbean@redhat.com>2015-06-16 20:57:25 +0000
committerRalph Bean <rbean@redhat.com>2015-06-16 20:57:31 +0000
commit19bf20ac422e6291cd358f66249c902331b6749a (patch)
treef1ff32e61c2160628ad7c3fee669a532f3e25edf /roles/github2fedmsg
parented51c161f376038b84c014f6212a1fd1a38cee56 (diff)
downloadansible-19bf20ac422e6291cd358f66249c902331b6749a.tar.gz
ansible-19bf20ac422e6291cd358f66249c902331b6749a.tar.xz
ansible-19bf20ac422e6291cd358f66249c902331b6749a.zip
Add github2fedmsg to the dynamic fedmsg endpoints stuff.
Diffstat (limited to 'roles/github2fedmsg')
-rw-r--r--roles/github2fedmsg/tasks/main.yml12
-rw-r--r--roles/github2fedmsg/templates/github2fedmsg.conf (renamed from roles/github2fedmsg/files/github2fedmsg.conf)2
2 files changed, 12 insertions, 2 deletions
diff --git a/roles/github2fedmsg/tasks/main.yml b/roles/github2fedmsg/tasks/main.yml
index b015915db..d6568d776 100644
--- a/roles/github2fedmsg/tasks/main.yml
+++ b/roles/github2fedmsg/tasks/main.yml
@@ -10,12 +10,15 @@
- libsemanage-python
tags:
- packages
+ - github2fedmsg
- name: make some directories
file: dest="{{item}}" mode=0755 state=directory
with_items:
- /etc/github2fedmsg
- /usr/share/github2fedmsg
+ tags:
+ - github2fedmsg
- name: copy github2fedmsg app configuration
template: >
@@ -25,6 +28,7 @@
- github2fedmsg.ini
tags:
- config
+ - github2fedmsg
notify:
- restart apache
@@ -36,17 +40,19 @@
- github2fedmsg.wsgi
tags:
- config
+ - github2fedmsg
notify:
- restart apache
- name: copy github2fedmsg httpd config
- copy: >
+ template: >
src={{ item }} dest="/etc/httpd/conf.d/{{ item }}"
owner=apache group=apache mode=0644
with_items:
- github2fedmsg.conf
tags:
- config
+ - github2fedmsg
notify:
- restart apache
@@ -57,8 +63,12 @@
owner=root group=root mode=0644
tags:
- hotfix
+ - github2fedmsg
notify:
- restart apache
- name: ensure selinux lets httpd talk to postgres
seboolean: name=httpd_can_network_connect_db persistent=yes state=yes
+ tags:
+ - selinux
+ - github2fedmsg
diff --git a/roles/github2fedmsg/files/github2fedmsg.conf b/roles/github2fedmsg/templates/github2fedmsg.conf
index faff65d86..912418c68 100644
--- a/roles/github2fedmsg/files/github2fedmsg.conf
+++ b/roles/github2fedmsg/templates/github2fedmsg.conf
@@ -1,7 +1,7 @@
Alias /static /usr/lib/python2.7/site-packages/github2fedmsg/static
Alias /pngs /usr/share/badges/pngs
-WSGIDaemonProcess github2fedmsg user=apache group=apache maximum-requests=1000 display-name=github2fedmsg processes=4 threads=4
+WSGIDaemonProcess github2fedmsg user=apache group=apache maximum-requests=1000 display-name=github2fedmsg processes={{wsgi_procs}} threads={{wsgi_threads}}
WSGISocketPrefix run/wsgi
WSGIRestrictStdout On
WSGIRestrictSignal Off