mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
apache conf and add apache to make jenkins behave
This commit is contained in:
9
files/jenkins/master/jenkins-apache.conf
Normal file
9
files/jenkins/master/jenkins-apache.conf
Normal file
@@ -0,0 +1,9 @@
|
||||
ProxyPass / http://localhost:8080/
|
||||
ProxyPassReverse / http://localhost:8080/
|
||||
ProxyRequests Off
|
||||
|
||||
# Local reverse proxy authorization override
|
||||
<Proxy http://localhost:8080/*>
|
||||
Order deny,allow
|
||||
Allow from all
|
||||
</Proxy>
|
||||
@@ -37,9 +37,20 @@
|
||||
- dejavu-s\*
|
||||
- fontconfig
|
||||
- java-1.6.0-openjdk
|
||||
- httpd
|
||||
tags:
|
||||
- packages
|
||||
|
||||
- name: add jenkins proxy config file for apache
|
||||
action: copy src=$files/jenkins/master/jenkins-apache.conf dest=/etc/httpd/conf.d/jenkins-apache.conf owner=root group=root mode=0644
|
||||
notify:
|
||||
- restart httpd
|
||||
tags:
|
||||
- config
|
||||
|
||||
- name: enable apache
|
||||
action: service name=httpd state=running enabled=true
|
||||
|
||||
- name: add jenkins upstream repo
|
||||
action: copy src=$files/jenkins/master/jenkins.repo dest=/etc/yum.repos.d/jenkins.repo owner=root group=root
|
||||
tags:
|
||||
|
||||
Reference in New Issue
Block a user