jenkins: Redirect port 80 to 8080

This commit is contained in:
Mikolaj Izdebski 2015-06-26 20:27:14 +00:00
parent eda5c625b3
commit 599c876e6a
3 changed files with 11 additions and 1 deletions

View file

@ -18,3 +18,10 @@ cloud_networks:
- net-id: "67b77354-39a4-43de-b007-bb813ac5c35f"
jenkins_master: True
tcp_ports: [ 80 ]
custom_rules: [
# Redirect port 80 to 8080, which is used by jenkins
'-A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080',
]

View file

@ -65,7 +65,7 @@ JENKINS_JAVA_OPTIONS="-Djava.awt.headless=true"
# Port Jenkins is listening on.
# Set to -1 to disable
#
JENKINS_PORT="80"
JENKINS_PORT="8080"
## Type: integer(0:65535)
## Default: 8009

View file

@ -2,6 +2,9 @@
dnf: name={{ item }} state=installed
with_items:
- jenkins
# workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1236210
# FIXME: remove when not needed any longer
- unzip
tags:
- jenkins
- jenkins/master