wip: fix wheelhost

wheelhost
Dustin 2024-01-09 18:10:34 -06:00
parent 1226f1f005
commit 3393c4db29
4 changed files with 19 additions and 11 deletions

View File

@ -0,0 +1 @@
wheelhost_store_dir: /srv/www/wheelhost

View File

@ -7,15 +7,15 @@
- name: ensure wheel storage directory exists
file:
path=/var/lib/wheels
owner=root
group=root
mode=0775
state=directory
path: '{{ wheelhost_store_dir }}'
owner: root
group: root
mode: ug=rwx,g=rx
state: directory
- name: ensure jenkins can write to the wheel storage directory
acl:
path: /var/lib/wheels
path: '{{ wheelhost_store_dir }}'
etype: user
entity: jenkins
permissions: rwx
@ -26,9 +26,9 @@
- current
- name: ensure apache is configured to serve wheel directory
copy:
src=wheels.httpd.conf
dest=/etc/httpd/conf.d/wheels.conf
mode=0644
template:
src: wheels.httpd.conf.j2
dest: /etc/httpd/conf.d/wheels.conf
mode: u=rw,go=r
notify:
- reload httpd

View File

@ -0,0 +1,7 @@
Alias /wheels {{ wheelhost_store_dir }}
<Directory {{ wheelhost_store_dir }}>
Require all granted
Options +Indexes
IndexOptions -FancyIndexing -HTMLTable
</Directory>

View File

@ -1,4 +1,4 @@
- hosts: wheelhost
roles:
- web
- apache
- wheelhost