add restart_lighttpd
add repo_vhost config for lighttpd
This commit is contained in:
parent
425a5ab539
commit
7036fbdf78
3 changed files with 19 additions and 0 deletions
10
files/copr/repo-vhost.conf
Normal file
10
files/copr/repo-vhost.conf
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
$HTTP["host"] == "copr-be.cloud.fedoraproject.org" {
|
||||||
|
var.server_name = "copr-be.cloud.fedoraproject.org"
|
||||||
|
|
||||||
|
server.name = server_name
|
||||||
|
server.document-root = '/srv/copr-repo/results'
|
||||||
|
dir-listing.activate = "enable"
|
||||||
|
|
||||||
|
accesslog.filename = log_root + "/" + server_name "/access.log"
|
||||||
|
}
|
||||||
|
|
|
@ -14,6 +14,9 @@
|
||||||
- name: restart httpd
|
- name: restart httpd
|
||||||
action: service name=httpd state=restarted
|
action: service name=httpd state=restarted
|
||||||
|
|
||||||
|
- name: restart lighttpd
|
||||||
|
action: service name=lighttpd state=restarted
|
||||||
|
|
||||||
- name: restart iptables
|
- name: restart iptables
|
||||||
action: service name=iptables state=restarted
|
action: service name=iptables state=restarted
|
||||||
|
|
||||||
|
|
|
@ -46,6 +46,12 @@
|
||||||
# setup webserver
|
# setup webserver
|
||||||
- name: add lighttpd
|
- name: add lighttpd
|
||||||
action: yum state=present name=lighttpd
|
action: yum state=present name=lighttpd
|
||||||
|
|
||||||
|
- name: add config for copr-repo path
|
||||||
|
action: copy src=$files/copr/repo-vhost.conf dest=/etc/lighttpd/vhosts.d/repo-vhost.conf owner=root group=root mode=0644
|
||||||
|
notify:
|
||||||
|
- restart lighttpd
|
||||||
|
|
||||||
- name: start webserver
|
- name: start webserver
|
||||||
action: service state=running enabled=yes name=lighttpd
|
action: service state=running enabled=yes name=lighttpd
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue