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
|
- name: ensure wheel storage directory exists
|
||||||
file:
|
file:
|
||||||
path=/var/lib/wheels
|
path: '{{ wheelhost_store_dir }}'
|
||||||
owner=root
|
owner: root
|
||||||
group=root
|
group: root
|
||||||
mode=0775
|
mode: ug=rwx,g=rx
|
||||||
state=directory
|
state: directory
|
||||||
|
|
||||||
- name: ensure jenkins can write to the wheel storage directory
|
- name: ensure jenkins can write to the wheel storage directory
|
||||||
acl:
|
acl:
|
||||||
path: /var/lib/wheels
|
path: '{{ wheelhost_store_dir }}'
|
||||||
etype: user
|
etype: user
|
||||||
entity: jenkins
|
entity: jenkins
|
||||||
permissions: rwx
|
permissions: rwx
|
||||||
|
@ -26,9 +26,9 @@
|
||||||
- current
|
- current
|
||||||
|
|
||||||
- name: ensure apache is configured to serve wheel directory
|
- name: ensure apache is configured to serve wheel directory
|
||||||
copy:
|
template:
|
||||||
src=wheels.httpd.conf
|
src: wheels.httpd.conf.j2
|
||||||
dest=/etc/httpd/conf.d/wheels.conf
|
dest: /etc/httpd/conf.d/wheels.conf
|
||||||
mode=0644
|
mode: u=rw,go=r
|
||||||
notify:
|
notify:
|
||||||
- reload httpd
|
- 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
|
- hosts: wheelhost
|
||||||
roles:
|
roles:
|
||||||
- web
|
- apache
|
||||||
- wheelhost
|
- wheelhost
|
||||||
|
|
Loading…
Reference in New Issue