add restart_lighttpd

add repo_vhost config for lighttpd
This commit is contained in:
Seth Vidal 2012-11-02 04:46:35 +00:00
parent 425a5ab539
commit 7036fbdf78
3 changed files with 19 additions and 0 deletions

View 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"
}

View file

@ -14,6 +14,9 @@
- name: restart httpd
action: service name=httpd state=restarted
- name: restart lighttpd
action: service name=lighttpd state=restarted
- name: restart iptables
action: service name=iptables state=restarted

View file

@ -46,6 +46,12 @@
# setup webserver
- name: add 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
action: service state=running enabled=yes name=lighttpd