Last active
January 10, 2018 21:08
-
-
Save viglesiasce/5847752 to your computer and use it in GitHub Desktop.
Micro QA user data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
yum install -y python-devel python-setuptools gcc make python-virtualenv java-1.6.0-openjdk.x86_64 git ntp wget unzip | |
wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo | |
rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key | |
yum install -y jenkins | |
chkconfig jenkins on | |
chkconfig ntpd on | |
service ntpd start | |
ntpdate -u pool.ntp.org | |
iptables -F | |
iptables -F -t nat | |
iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080 | |
iptables-save > /etc/sysconfig/iptables | |
service jenkins start | |
pushd /var/lib | |
git clone https://github.com/eucalyptus/micro-qa.git | |
rsync -va micro-qa/ jenkins/ | |
chown -R jenkins:jenkins jenkins/ | |
popd | |
service jenkins restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment