sudo yum install -y epel-release git
# We are installing Ansible from pip because there's a bug in Ansible Docker module in EPEL
sudo yum install -y ansible1.9
sudo yum install centos-release-scl qemu-kvm libvirt
sudo yum -y install sclo-vagrant1
sudo yum install python2-jenkins-job-builder
# start libvirtd
sudo systemctl start libvirtd; sudo systemctl enable libvirtd
# enable bash on vagrant scl
sudo scl enable sclo-vagrant1 bash
git clone https://github.com/rtnpro/centos-cccp-ansible
cd centos-cccp-ansible
vagrant plugin install vagrant-hostmanager
vagrant up --no-provision
vagrant provision
Create file /etc/jenkins_jobs/jenkins_jobs.ini
with content similar to:
[jenkins]
user=admin
password=admin
url=http://cccp-master.example.com:8080/
-
Clone the repos in the same directory:
git clone https://github.com/bamachrn/cccp-service.git
git clone https://github.com/kbsingh/cccp-index.git
Then do:
cd cccp-service/jenkinsbuilder
python cccp_index_reader.py ../../cccp-index/index.yml
And wait for the jobs for the projects in the index to be pushed to Jenkins.
Few pre-setup steps:
2.Need to comment out
Defaults requiretty
in /etc/sudoers for jenkins-slave and openshift server