wip: fix wheelhost
parent
1226f1f005
commit
3393c4db29
|
@ -0,0 +1 @@
|
|||
wheelhost_store_dir: /srv/www/wheelhost
|
|
@ -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
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
Alias /wheels {{ wheelhost_store_dir }}
|
||||
|
||||
<Directory {{ wheelhost_store_dir }}>
|
||||
Require all granted
|
||||
Options +Indexes
|
||||
IndexOptions -FancyIndexing -HTMLTable
|
||||
</Directory>
|
|
@ -1,4 +1,4 @@
|
|||
- hosts: wheelhost
|
||||
roles:
|
||||
- web
|
||||
- apache
|
||||
- wheelhost
|
||||
|
|
Loading…
Reference in New Issue