Tag up the askbot role.

This commit is contained in:
Ralph Bean 2015-01-26 17:38:39 +00:00
parent e39ab5d3e8
commit f5d07f79ff

View file

@ -6,6 +6,9 @@
yum: pkg={{ item }} state=present enablerepo=epel-testing yum: pkg={{ item }} state=present enablerepo=epel-testing
with_items: with_items:
- askbot - askbot
tags:
- ask
- packages
- name: install needed packages - name: install needed packages
yum: pkg={{ item }} state=present yum: pkg={{ item }} state=present
@ -18,6 +21,7 @@
- django-authopenid - django-authopenid
- django-celery - django-celery
tags: tags:
- ask
- packages - packages
# https://github.com/openid/python-openid/pull/76 # https://github.com/openid/python-openid/pull/76
@ -27,6 +31,7 @@
notify: notify:
- restart apache - restart apache
tags: tags:
- ask
- config - config
- hotfix - hotfix
- python-openid - python-openid
@ -35,21 +40,33 @@
action: seboolean name=httpd_can_network_connect_db action: seboolean name=httpd_can_network_connect_db
state=true state=true
persistent=true persistent=true
tags:
- ask
- selinux
- name: set sebooleans so ask can talk to the memcache - name: set sebooleans so ask can talk to the memcache
action: seboolean name=httpd_can_network_memcache action: seboolean name=httpd_can_network_memcache
state=true state=true
persistent=true persistent=true
tags:
- ask
- selinux
- name: set sebooleans so ask can talk to fedmsg - name: set sebooleans so ask can talk to fedmsg
action: seboolean name=allow_httpd_sys_script_anon_write action: seboolean name=allow_httpd_sys_script_anon_write
state=true state=true
persistent=true persistent=true
tags:
- ask
- selinux
- name: set sebooleans so ask can talk to fedmsg - name: set sebooleans so ask can talk to fedmsg
action: seboolean name=allow_ypbind action: seboolean name=allow_ypbind
state=true state=true
persistent=true persistent=true
tags:
- ask
- selinux
- name: install askbot settings.py template - name: install askbot settings.py template
template: > template: >
@ -58,6 +75,7 @@
with_items: with_items:
- settings.py - settings.py
tags: tags:
- ask
- config - config
- name: Install askbot.conf httpd config - name: Install askbot.conf httpd config
@ -65,6 +83,7 @@
src=askbot.conf dest=/etc/httpd/conf.d/askbot.conf src=askbot.conf dest=/etc/httpd/conf.d/askbot.conf
owner=root group=root mode=0644 owner=root group=root mode=0644
tags: tags:
- ask
- files - files
notify: notify:
- restart httpd - restart httpd
@ -77,6 +96,7 @@
src=askbot.wsgi dest=/usr/sbin/askbot.wsgi src=askbot.wsgi dest=/usr/sbin/askbot.wsgi
owner=root group=root mode=0755 owner=root group=root mode=0755
tags: tags:
- ask
- files - files
notify: notify:
- restart httpd - restart httpd
@ -91,21 +111,28 @@
- cron-delete-old-emails - cron-delete-old-emails
- cron-delete-unused-tags - cron-delete-unused-tags
tags: tags:
- ask
- files - files
- cron
- name: check log file - name: check log file
command: stat /var/log/askbot/askfedora.log command: stat /var/log/askbot/askfedora.log
register: logstat register: logstat
always_run: yes always_run: yes
changed_when: "1 != 1" changed_when: "1 != 1"
tags:
- ask
- name: log ownership fix - name: log ownership fix
file: state=touch dest=/var/log/askbot/askfedora.log owner=apache group=apache file: state=touch dest=/var/log/askbot/askfedora.log owner=apache group=apache
when: logstat.rc == 1 when: logstat.rc == 1
tags:
- ask
- name: run collectstatic - name: run collectstatic
command: creates=/var/www/html/askbot/static python /etc/askbot/sites/ask/config/manage.py collectstatic --noinput command: creates=/var/www/html/askbot/static python /etc/askbot/sites/ask/config/manage.py collectstatic --noinput
tags: tags:
- ask
- config - config
#- name: setup default skin link needed for askbot #- name: setup default skin link needed for askbot
@ -122,7 +149,9 @@
src=backends.py dest=/usr/lib/python2.6/site-packages/post_office/backends.py src=backends.py dest=/usr/lib/python2.6/site-packages/post_office/backends.py
owner=root group=root mode=0644 owner=root group=root mode=0644
tags: tags:
- ask
- files - files
- hotfix
notify: notify:
- restart httpd - restart httpd
@ -134,7 +163,9 @@
src=login_providers.py dest=/usr/lib/python2.6/site-packages/askbot/conf/login_providers.py src=login_providers.py dest=/usr/lib/python2.6/site-packages/askbot/conf/login_providers.py
owner=root group=root mode=0644 owner=root group=root mode=0644
tags: tags:
- ask
- files - files
- hotfix
notify: notify:
- restart httpd - restart httpd
@ -146,7 +177,9 @@
src=util.py dest=/usr/lib/python2.6/site-packages/askbot/deps/django_authopenid/util.py src=util.py dest=/usr/lib/python2.6/site-packages/askbot/deps/django_authopenid/util.py
owner=root group=root mode=0644 owner=root group=root mode=0644
tags: tags:
- ask
- files - files
- hotfix
notify: notify:
- restart httpd - restart httpd
@ -158,7 +191,9 @@
src=fedora-openid.png dest=/var/www/html/askbot/static/default/media/jquery-openid/images/fedora-openid.png src=fedora-openid.png dest=/var/www/html/askbot/static/default/media/jquery-openid/images/fedora-openid.png
owner=root group=root mode=0644 owner=root group=root mode=0644
tags: tags:
- ask
- files - files
- hotfix
notify: notify:
- restart httpd - restart httpd
@ -170,7 +205,9 @@
src=ask_favicon.ico dest=/var/lib/askbot/upfiles/ask/ask_favicon.ico src=ask_favicon.ico dest=/var/lib/askbot/upfiles/ask/ask_favicon.ico
owner=root group=root mode=0644 owner=root group=root mode=0644
tags: tags:
- ask
- files - files
- hotfix
# #
# fixes login with facebook. # fixes login with facebook.
@ -181,7 +218,9 @@
src=sanction-client.py dest=/usr/lib/python2.6/site-packages/sanction/client.py src=sanction-client.py dest=/usr/lib/python2.6/site-packages/sanction/client.py
owner=root group=root mode=0644 owner=root group=root mode=0644
tags: tags:
- ask
- files - files
- hotfix
notify: notify:
- restart httpd - restart httpd
@ -194,6 +233,8 @@
src=cancel.py dest=/usr/lib/python2.6/site-packages/askbot/middleware/cancel.py src=cancel.py dest=/usr/lib/python2.6/site-packages/askbot/middleware/cancel.py
owner=root group=root mode=0644 owner=root group=root mode=0644
tags: tags:
- ask
- files - files
- hotfix
notify: notify:
- restart httpd - restart httpd