apache conf and add apache to make jenkins behave
This commit is contained in:
parent
849fe2ba14
commit
0eda7953bd
2 changed files with 20 additions and 0 deletions
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\*
|
- dejavu-s\*
|
||||||
- fontconfig
|
- fontconfig
|
||||||
- java-1.6.0-openjdk
|
- java-1.6.0-openjdk
|
||||||
|
- httpd
|
||||||
tags:
|
tags:
|
||||||
- packages
|
- 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
|
- name: add jenkins upstream repo
|
||||||
action: copy src=$files/jenkins/master/jenkins.repo dest=/etc/yum.repos.d/jenkins.repo owner=root group=root
|
action: copy src=$files/jenkins/master/jenkins.repo dest=/etc/yum.repos.d/jenkins.repo owner=root group=root
|
||||||
tags:
|
tags:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue