Serve bodhi's docs at /docs.

Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
This commit is contained in:
Randy Barlow 2017-03-08 21:04:40 +00:00
parent f557e6145b
commit 2e32219183
3 changed files with 18 additions and 2 deletions

View file

@ -32,9 +32,15 @@
command: yum clean all {%if testing%} --enablerepo=infrastructure-testing {%endif%}
check_mode: no
- name: yum update bodhi-server packages from main repo
yum: name="bodhi-server" state=latest
yum: name="{{ item }}" state=latest
with_items:
- bodhi-docs
- bodhi-server
- name: yum update bodhi-server packages from testing repo
yum: name="bodhi-server" state=latest enablerepo=infrastructure-testing
yum: name="{{ item }}" state=latest enablerepo=infrastructure-testing
with_items:
- bodhi-docs
- bodhi-server
when: testing
- name: verify the frontend and stop it

View file

@ -5,6 +5,7 @@
- name: install needed packages
package: pkg={{ item }} state=present
with_items:
- bodhi-docs
- bodhi-server
- libsemanage-python
- python-psycopg2

View file

@ -1,3 +1,12 @@
Alias /docs /usr/share/doc/bodhi-docs/html/
<Location /docs/>
Header set Cache-Control public
ExpiresDefault "access plus 1 month"
Header unset ETag
</Location>
Alias /static /usr/lib/python2.7/site-packages/bodhi/server/static/
<Location /static/>