--- /dev/null
+#!/bin/bash
+
+# make sure we don't require tty for sudo operations
+cat <<EOF >/etc/sudoers.d/89-jenkins-user-defaults
+Defaults:jenkins !requiretty
+jenkins ALL = NOPASSWD: ALL
+EOF
+
+# make sure the firewall is stopped
+service iptables stop
+
+# vim: sw=2 ts=2 sts=2 et :
- project:
- name: integration-csit-basic-master
+ name: integration-csit-basic
jobs:
- '{project}-csit-1node-cds-{functionality}-{install}-{stream}'
- '{project}-csit-3node-cds-{functionality}-{install}-{stream}'
stream:
- master:
branch: 'master'
+ - stable-lithium:
+ branch: 'stable-lithium'
install:
- only:
- project:
- name: integration
+ name: integration-jobs
jobs:
- 'integration-csit-verify-{stream}'
- 'integration-distribution-verify-{stream}'
branch: 'master'
csit-list: 'controller-csit-1node-cds-netconf-only-{stream},controller-csit-1node-cds-netconf-all-{stream},aaa-csit-1node-cds-authn-only-{stream},aaa-csit-1node-cds-authn-all-{stream},openflowplugin-csit-1node-cds-flow-services-only-{stream},openflowplugin-csit-1node-cds-flow-services-all-{stream},openflowplugin-csit-1node-cds-scalability-only-{stream},openflowplugin-csit-1node-cds-scalability-all-{stream},openflowplugin-csit-1node-cds-cbench-performance-only-{stream},openflowplugin-csit-1node-cds-config-performance-only-{stream},l2switch-csit-1node-cds-switch-only-{stream},l2switch-csit-1node-cds-switch-all-{stream},l2switch-csit-1node-cds-scalability-only-{stream},l2switch-csit-1node-cds-scalability-all-{stream},vtn-csit-1node-cds-manager-only-{stream},vtn-csit-1node-cds-manager-all-{stream},lispflowmapping-csit-1node-cds-all-only-{stream},lispflowmapping-csit-1node-cds-all-all-{stream}'
+ - stable-lithium:
+ branch: 'stable/lithium'
+ csit-list: 'controller-csit-1node-cds-netconf-only-{stream},controller-csit-1node-cds-netconf-all-{stream},aaa-csit-1node-cds-authn-only-{stream},aaa-csit-1node-cds-authn-all-{stream},openflowplugin-csit-1node-cds-flow-services-only-{stream},openflowplugin-csit-1node-cds-flow-services-all-{stream},openflowplugin-csit-1node-cds-scalability-only-{stream},openflowplugin-csit-1node-cds-scalability-all-{stream},openflowplugin-csit-1node-cds-cbench-performance-only-{stream},openflowplugin-csit-1node-cds-config-performance-only-{stream},l2switch-csit-1node-cds-switch-only-{stream},l2switch-csit-1node-cds-switch-all-{stream},l2switch-csit-1node-cds-scalability-only-{stream},l2switch-csit-1node-cds-scalability-all-{stream},vtn-csit-1node-cds-manager-only-{stream},vtn-csit-1node-cds-manager-all-{stream},lispflowmapping-csit-1node-cds-all-only-{stream},lispflowmapping-csit-1node-cds-all-all-{stream}'
+
- stable-helium:
branch: 'stable/helium'
csit-list: 'controller-csit-1node-imds-nsf-only-{stream},controller-csit-1node-imds-nsf-all-{stream},controller-csit-1node-imds-netconf-only-{stream},controller-csit-1node-imds-netconf-all-{stream},aaa-csit-1node-imds-authn-only-{stream},aaa-csit-1node-imds-authn-all-{stream},openflowplugin-csit-1node-imds-flow-services-only-{stream},openflowplugin-csit-1node-imds-flow-services-all-{stream},l2switch-csit-1node-imds-switch-only-{stream},l2switch-csit-1node-imds-switch-all-{stream},vtn-csit-1node-imds-manager-only-{stream},vtn-csit-1node-imds-manager-all-{stream},lispflowmapping-csit-1node-imds-all-only-{stream},lispflowmapping-csit-1node-imds-all-all-{stream}'
+++ /dev/null
-- project:
- name: integration-job-patch-test-stable-lithium
- jobs:
- - 'integration-patch-test-stable-lithium'
-
- jdk: 'openjdk7'
-
-- job-template:
- name: 'integration-patch-test-stable-lithium'
-
- project-type: maven
- node: dynamic_verify
- jdk: '{jdk}'
-
- logrotate:
- daysToKeep: '{build-days-to-keep}'
- numToKeep: '{build-num-to-keep}'
- artifactDaysToKeep: '{build-artifact-days-to-keep}'
- artifactNumToKeep: '{build-artifact-num-to-keep}'
-
- parameters:
- - project-parameter:
- project: 'integration'
- - integration-patch-git-url
-
- scm:
- - integration-gerrit-scm:
- credentials-id: '{ssh-credentials}'
- branch: 'stable/lithium'
- - integration-git-scm:
- credentials-id: '{ssh-credentials}'
- branch: 'master'
-
- wrappers:
- - build-timeout
- - ssh-agent-credentials:
- users:
- - '{ssh-credentials}'
-
- triggers:
- - gerrit:
- server-name: 'OpenDaylight'
- trigger-on:
- - comment-added-contains-event:
- comment-contains-value: 'test-integration'
- projects:
- - project-compare-type: 'ANT'
- project-pattern: '**'
- branches:
- - branch-compare-type: 'ANT'
- branch-pattern: '**/stable/lithium'
- skip-vote:
- successful: true
- failed: true
- unstable: true
- notbuilt: true
-
- prebuilders:
- - integration-get-bundle-url
- - inject:
- properties-file: 'bundle.txt'
- - wipe-org-opendaylight-repo
- - maven-target:
- maven-version: '{mvn32}'
- pom: '$GERRIT_PROJECT/pom.xml'
- goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r source:jar javadoc:jar'
- java-opts:
- - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
- settings: '{integration-settings}'
- global-settings: '{odl-global-settings}'
-
- maven:
- maven-name: '{mvn32}'
- root-pom: 'integration/pom.xml'
- goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r source:jar javadoc:jar'
- maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
- settings: '{integration-settings}'
- global-settings: '{odl-global-settings}'
- ignore-upstream-changes: true
-
- postbuilders:
- - trigger-builds:
- - project: 'integration-distribution-test-master'
- block: true
- predefined-parameters:
- BUNDLEURL=$BUNDLEURL
-
- publishers:
- - email-notification:
- email-prefix: '[integration]'
-
stream:
- master:
branch: 'master'
+ - stable-lithium:
+ branch: 'stable-lithium'
project: 'integration'
jdk: 'openjdk7'
- project:
- name: iotdm-csit-basic-master
+ name: iotdm-csit-basic
jobs:
- '{project}-csit-1node-cds-{functionality}-{install}-{stream}'
- '{project}-csit-verify-{functionality}-{stream}'
stream:
- master:
branch: 'master'
+ - stable-lithium:
+ branch: 'stable/lithium'
install:
- only:
robot-options: ''
# Trigger jobs (upstream dependencies)
- trigger-jobs: 'iotdm-distribution-{stream}'
\ No newline at end of file
+ trigger-jobs: 'iotdm-distribution-{stream}'
- project:
- name: l2switch-csit-host-scalability-daily-master
+ name: l2switch-csit-host-scalability-daily
jobs:
- '{project}-csit-periodic-1node-cds-{functionality}-{install}-{stream}'
stream:
- master:
branch: 'master'
+ - stable-lithium:
+ branch: 'stable/lithium'
install:
- only:
- project:
- name: l2switch-csit-scalability-master
+ name: l2switch-csit-scalability
jobs:
- '{project}-csit-1node-cds-{functionality}-{install}-{stream}'
- '{project}-csit-verify-{functionality}-{stream}'
stream:
- master:
branch: 'master'
+ - stable-lithium:
+ branch: 'stable/lithium'
install:
- only:
- project:
- name: l2switch-csit-switch-master
+ name: l2switch-csit-switch
jobs:
- '{project}-csit-1node-cds-{functionality}-{install}-{stream}'
- '{project}-csit-verify-{functionality}-{stream}'
stream:
- master:
branch: 'master'
+ - stable-lithium:
+ branch: 'stable/lithium'
install:
- only:
- project:
- name: lispflowmapping-csit-all-master
+ name: lispflowmapping-csit-all
jobs:
- '{project}-csit-1node-cds-{functionality}-{install}-{stream}'
- '{project}-csit-verify-{functionality}-{stream}'
stream:
- master:
branch: 'master'
+ - stable-lithium:
+ branch: 'stable/lithium'
install:
- only:
- project:
- name: openflowplugin-csit-cbench-daily-master
+ name: openflowplugin-csit-cbench-daily
jobs:
- '{project}-csit-periodic-1node-cds-{functionality}-{install}-{stream}'
stream:
- master:
branch: 'master'
+ - stable-lithium:
+ branch: 'stable/lithium'
install:
- only:
- project:
- name: openflowplugin-csit-cbench-performance-master
+ name: openflowplugin-csit-cbench-performance
jobs:
- '{project}-csit-1node-cds-{functionality}-{install}-{stream}'
stream:
- master:
branch: 'master'
+ - stable-lithium:
+ branch: 'stable/lithium'
install:
- only:
- project:
- name: openflowplugin-csit-config-performance-master
+ name: openflowplugin-csit-config-performance
jobs:
- '{project}-csit-1node-cds-{functionality}-{install}-{stream}'
stream:
- master:
branch: 'master'
+ - stable-lithium:
+ branch: 'stable/lithium'
install:
- only:
- project:
- name: openflowplugin-csit-flow-services-more-master
+ name: openflowplugin-csit-flow-services-more
jobs:
- '{project}-csit-1node-cds-{functionality}-{install}-{stream}'
+ - '{project}-csit-verify-{functionality}-{stream}'
# The project name
project: 'openflowplugin'
stream:
- master:
branch: 'master'
+ - stable-lithium:
+ branch: 'stable/lithium'
install:
- only:
- project:
- name: openflowplugin-csit-flow-services-master
+ name: openflowplugin-csit-flow-services
jobs:
- '{project}-csit-1node-cds-{functionality}-{install}-{stream}'
- '{project}-csit-verify-{functionality}-{stream}'
stream:
- master:
branch: 'master'
+ - stable-lithium:
+ branch: 'stable/lithium'
install:
- only:
- project:
- name: openflowplugin-csit-scalability-daily-master
+ name: openflowplugin-csit-scalability-daily
jobs:
- '{project}-csit-periodic-1node-cds-{functionality}-{install}-{stream}'
stream:
- master:
branch: 'master'
+ - stable-lithium:
+ branch: 'stable/lithium'
install:
- only:
- project:
- name: openflowplugin-csit-scalability-master
+ name: openflowplugin-csit-scalability
jobs:
- '{project}-csit-1node-cds-{functionality}-{install}-{stream}'
- '{project}-csit-verify-{functionality}-{stream}'
stream:
- master:
branch: 'master'
+ - stable-lithium:
+ branch: 'stable/lithium'
install:
- only:
--- /dev/null
+- project:
+ name: tsdr-csit-tsdr-h2
+ jobs:
+ - '{project}-csit-1node-cds-{functionality}-{install}-{stream}'
+ - '{project}-csit-verify-{functionality}-{stream}'
+
+ # The project name
+ project: 'tsdr'
+
+ # The functionality under test to verify
+ functionality: 'h2-datastore'
+
+ # Project branches
+ stream:
+ - master:
+ branch: 'master'
+
+ install:
+ - only:
+ scope: 'only'
+ - all:
+ scope: 'all'
+
+ # Features to install
+ install-features: 'odl-restconf,odl-tsdr-all'
+
+ # Robot custom options
+ robot-options: ' '
+
+ # Trigger jobs (upstream dependencies)
+ trigger-jobs: 'yangtools-distribution-{stream},controller-distribution-{stream},openflowjava-distribution-{stream},openflowplugin-distribution-{stream},tsdr-distribution-{stream}'
+
- project:
- name: tsdr-csit-tsdr-master
+ name: tsdr-csit-tsdr
jobs:
- '{project}-csit-1node-cds-{functionality}-{install}-{stream}'
- '{project}-csit-verify-{functionality}-{stream}'
stream:
- master:
branch: 'master'
+ - stable-lithium:
+ branch: 'stable/lithium'
install:
- only:
- project:
- name: usc-csit-channel-master
+ name: usc-csit-channel
jobs:
- '{project}-csit-1node-cds-{functionality}-{install}-{stream}'
- '{project}-csit-verify-{functionality}-{stream}'
stream:
- master:
branch: 'master'
+ - stable-lithium:
+ branch: 'stable/lithium'
install:
- only:
- project:
- name: vpnservice-csit-vpnservice-master
+ name: vpnservice-csit-vpnservice
jobs:
- '{project}-csit-1node-cds-{functionality}-{install}-{stream}'
- '{project}-csit-verify-{functionality}-{stream}'
stream:
- master:
branch: 'master'
+ - stable-lithium:
+ branch: 'stable/lithium'
install:
- only:
- project:
- name: vtn-csit-manager-master
+ name: vtn-csit-manager
jobs:
- '{project}-csit-1node-cds-{functionality}-{install}-{stream}'
- '{project}-csit-verify-{functionality}-{stream}'
stream:
- master:
branch: 'master'
+ - stable-lithium:
+ branch: 'stable/lithium'
install:
- only:
# vim: sw=4 ts=4 sts=4 et tw=72 :
yum clean all
-# Add the ODL yum repo (not needed for java nodes, but useful for
-# potential later layers)
-yum install -q -y https://nexus.opendaylight.org/content/repositories/opendaylight-yum-epel-6-x86_64/rpm/opendaylight-release/0.1.0-1.el6.noarch/opendaylight-release-0.1.0-1.el6.noarch.rpm
# Make sure the system is fully up to date
yum update -q -y
-# Add in git (needed for most everything) and XML-XPath as it is useful
-# for doing CLI based CML parsing of POM files
-yum install -q -y git perl-XML-XPath
-
-# install all available openjdk-devel sets
-yum install -q -y 'java-*-openjdk-devel'
-
-# we currently use Java7 (aka java-1.7.0-openjdk) as our standard make
-# sure that this is the java that alternatives is pointing to, dynamic
-# spin-up scripts can switch to any of the current JREs installed if
-# needed
-alternatives --set java /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java
-alternatives --set java_sdk_openjdk /usr/lib/jvm/java-1.7.0-openjdk.x86_64
-
-# To handle the prompt style that is expected all over the environment
-# with how use use robotframework we need to make sure that it is
-# consistent for any of the users that are created during dynamic spin
-# ups
-echo 'PS1="[\u@\h \W]> "' >> /etc/skel/.bashrc
-
# The following packages are not needed by all projects, but they are
# needed by enough to make them useful everywhere
yum install -q -y @development perl-{Digest-SHA,ExtUtils-MakeMaker} \
ant {boost,gtest,json-c,libcurl,libxml2,libvirt,openssl}-devel \
- {readline,unixODBC}-devel
+ {readline,unixODBC}-devel yum-utils
# tcpmd5 is wanting to do 32bit ARM cross-compilation and is specifically
# requesting the following be installed (note the kernel headers are
# an EL6 system some of these packages are not availalble (or at the
# wrong version) in publically available repositories as such this
# should only really be done on an EL7 (or F18+) system
-yum install -q -y {jansson,libevent,libevent2,libnl,libuuid}-devel \
- python-{devel,virtualenv,setuptools}
+yum install -q -y {jansson,libevent,libnl,libuuid}-devel \
+ python-{devel,virtualenv,setuptools,pip}
-#get yum-config-manager
-yum -q -y install yum-utils
#The following is needed for the new code in vtn project.
#these packages will enable C# compilation.
rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF"
# vim: sw=4 ts=4 sts=4 et tw=72 :
yum clean all
-# Add the ODL yum repo (not needed for java nodes, but useful for
-# potential later layers)
-yum install -q -y https://nexus.opendaylight.org/content/repositories/opendaylight-yum-epel-6-x86_64/rpm/opendaylight-release/0.1.0-1.el6.noarch/opendaylight-release-0.1.0-1.el6.noarch.rpm
# Make sure the system is fully up to date
yum update -q -y
-# Add in git (needed for most everything) and XML-XPath as it is useful
-# for doing CLI based CML parsing of POM files
-yum install -q -y git perl-XML-XPath
-# install all available openjdk-devel sets
-yum install -q -y 'java-*-openjdk-devel'
-
-# we currently use Java7 (aka java-1.7.0-openjdk) as our standard make
-# sure that this is the java that alternatives is pointing to, dynamic
-# spin-up scripts can switch to any of the current JREs installed if
-# needed
-alternatives --set java /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java
-alternatives --set java_sdk_openjdk /usr/lib/jvm/java-1.7.0-openjdk.x86_64
-
-# To handle the prompt style that is expected all over the environment
-# with how use use robotframework we need to make sure that it is
-# consistent for any of the users that are created during dynamic spin
-# ups
-echo 'PS1="[\u@\h \W]> "' >> /etc/skel/.bashrc
--- /dev/null
+basic-mininet-fedora-node can be used to take an already converted
+Rackspace native base image to a basic system with mininet and other
+test tools for use in the OpenDaylight build and testing environment
+
+Please see the rackspace-convert-base vagrant setup for creation of the
+needed base image.
+
+This vagrant expects (by default) a personal Rackspace image named
+
+'Fedora 21 - Vagrant ready'
+
+To spin up and utilize.
+
+$ RSIMAGE='${baseimagename}' vagrant up --provider=rackspace
+
+Will execute this vagrant against a differently named base image
+
+$ RSRESEAL=true vagrant up --provider=rackspace
+
+NOTE: resealing will cause the vagrant to run the resealing operation.
+This operation will intentionally destroy current SSH pubkeys installed
+on the system as well as reset log files and network configurations. You
+have been warned.
--- /dev/null
+# -*- mode: ruby -*-
+# vi: set ft=ruby sw=2 ts=2 sts=2 et :
+
+# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
+VAGRANTFILE_API_VERSION = "2"
+
+Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
+ # root off of the rackspace provider dummy box
+ config.vm.box = "dummy"
+
+ # rackspace systems, even with cloud-init
+ # don't seem to have the cloud int user ${osname} (or similar)
+ # getting the ssh key for some reason, root does for sure
+ # so use that
+ config.ssh.username = 'root'
+
+ # Fedora and EL systems default to requiring tty for sudo
+ # This should have been disabled with the Vagrant ready
+ # base box conversion (see rackspace-convert-base vagrant)
+ # but just to be safe
+ config.ssh.pty = true
+
+ # make sure to set the following in your
+ # ~/.vagrant.d/boxes/dummy/0/rackspace/Vagrantfile
+ # rs.username
+ # rs.api_key
+ # rs.rackspace_region
+ #
+ # If you are not using an SSH token / smartcard also set this
+ # rs.key_name
+ # config.ssh.private_key_path -- set this outside the rackspace block
+ # in your base box
+ config.vm.provider :rackspace do |rs|
+ # create these base builds always on the smallest system possible
+ rs.flavor = 'general1-1'
+
+ # allow for switching to ORD cloud but default to DFW
+ if (ENV['RSREGION'] == 'ord')
+ rs.rackspace_region = :ord
+ else
+ rs.rackspace_region = :dfw
+ end
+
+ # Default the Fedora 21 - Vagrant ready image unless overriden by a RSIMAGE
+ # environment variable
+ if ENV['RSIMAGE']
+ rs.image = ENV['RSIMAGE']
+ else
+ rs.image = 'Fedora 21 - Vagrant ready'
+ end
+ end
+
+ # run our bootstrapping for the ovsdb-devstack system
+ config.vm.provision 'shell', path: 'bootstrap.sh'
+
+ # set RSRESEAL to... anything if you want to snap an image of this box
+ # not setting the environment variable will cause the system to come
+ # up fully and not be in a resealable state
+ if ENV['RSRESEAL']
+ config.vm.provision 'shell', path: 'system_reseal.sh'
+ end
+end
--- /dev/null
+#!/bin/bash
+
+# vim: sw=4 ts=4 sts=4 et tw=72 :
+
+# update os
+yum clean all
+yum update -q -y
+
+# install mininet
+git clone git://github.com/mininet/mininet
+cd mininet
+git checkout -b 2.2.1 2.2.1
+cd ..
+mininet/util/install.sh -nf
+
--- /dev/null
+#!/bin/bash
+
+# clean-up from any prior cloud-init networking
+rm -rf /etc/sysconfig/network-scripts/{ifcfg,route}-eth*
+
+rm -rf /etc/Pegasus/*.cnf /etc/Pegasus/*.crt /etc/Pegasus/*.csr /etc/Pegasus/*.pem /etc/Pegasus/*.srl /root/anaconda-ks.cfg /root/anaconda-post.log /root/initial-setup-ks.cfg /root/install.log /root/install.log.syslog /var/cache/fontconfig/* /var/cache/gdm/* /var/cache/man/* /var/lib/AccountService/users/* /var/lib/fprint/* /var/lib/logrotate.status /var/log/*.log* /var/log/BackupPC/LOG /var/log/ConsoleKit/* /var/log/anaconda.syslog /var/log/anaconda/* /var/log/apache2/*_log /var/log/apache2/*_log-* /var/log/apt/* /var/log/aptitude* /var/log/audit/* /var/log/btmp* /var/log/ceph/*.log /var/log/chrony/*.log /var/log/cron* /var/log/cups/*_log /var/log/debug* /var/log/dmesg* /var/log/exim4/* /var/log/faillog* /var/log/gdm/* /var/log/glusterfs/*glusterd.vol.log /var/log/glusterfs/glusterfs.log /var/log/httpd/*log /var/log/installer/* /var/log/jetty/jetty-console.log /var/log/journal/* /var/log/lastlog* /var/log/libvirt/libvirtd.log /var/log/libvirt/lxc/*.log /var/log/libvirt/qemu/*.log /var/log/libvirt/uml/*.log /var/log/lightdm/* /var/log/mail/* /var/log/maillog* /var/log/messages* /var/log/ntp /var/log/ntpstats/* /var/log/ppp/connect-errors /var/log/rhsm/* /var/log/sa/* /var/log/secure* /var/log/setroubleshoot/*.log /var/log/spooler* /var/log/squid/*.log /var/log/syslog* /var/log/tallylog* /var/log/tuned/tuned.log /var/log/wtmp* /var/named/data/named.run
+
+rm -rf ~/.viminfo /etc/ssh/ssh*key*
+
+echo "********************************************"
+echo "* PLEASE SNAPSHOT IMAGE AT THIS TIME *"
+echo "********************************************"
# install some needed internal networking configurations
yum install -y dnsmasq puppet
-puppet module install lex-dnsmasq
+# install specific versions of puppet modules
+puppet module install puppetlabs-stdlib -v 4.5.1
+puppet module install puppetlabs-concat -v 1.2.0
+puppet module install lex-dnsmasq -v 2.6.1
# script requires information about subdomain
if [ -z "$1" ]; then
# don't let cloud-init do funny things to our routing
chattr +i /etc/sysconfig/network-scripts/route-eth0
-# create a docker bridge that doesn't trample our networks
-# but only if docker is installed
-DOCKER=`rpm -q docker-io`
-if [ "$?" == "0" ]; then
- echo "---> Docker installed, configuring docker bridge"
- # fully overwrite the default, otherwise we end up with the options
- # split over two lines which will fail
- # Default: OPTIONS=--selinux-enabled
- echo 'OPTIONS=--selinux-enabled --bip=10.250.0.254/24' > /etc/sysconfig/docker
-# cat <<EOL > /etc/sysconfig/network-scripts/ifcfg-docker0
-#DEVICE="docker0"
-#TYPE="Bridge"
-#ONBOOT="yes"
-#NM_CONTROLLED="no"
-#IPADDR=10.250.0.254
-#NETMASK=255.255.255.0
-#EOL
-
-# # don't let cloud-init do funny things to our docker bridge
-# chattr +i /etc/sysconfig/network-scripts/ifcfg-docker0
- cat /etc/sysconfig/docker
-fi
-
-
# setup the needed routing
cat <<EOL >> /etc/rc.d/post-cloud-init
#!/bin/bash
#!/bin/bash
-# vim: ts=4 sw=4 sts=4 et :
+# vim: ts=4 sw=4 sts=4 et tw=72 :
# Handle the occurance where SELINUX is actually disabled
if [ `grep SELINUX=permissive /etc/selinux/config` ]; then
yum clean all -q
yum update -y -q
+
+# add in components we need or want on systems
+yum install -y -q @base unzip xz puppet git perl-XML-XPath
+
+# All of our systems require Java (because of Jenkins)
+# Install all versions of the OpenJDK devel but force 1.7.0 to be the
+# default
+
+yum install -y -q 'java-*-openjdk-devel'
+alternatives --set java /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java
+alternatives --set java_sdk_openjdk /usr/lib/jvm/java-1.7.0-openjdk.x86_64
+
+# To handle the prompt style that is expected all over the environment
+# with how use use robotframework we need to make sure that it is
+# consistent for any of the users that are created during dynamic spin
+# ups
+echo 'PS1="[\u@\h \W]> "' >> /etc/skel/.bashrc
+
+# Do any Distro specific installations here
+echo "Checking distribution"
+if [ `/usr/bin/facter operatingsystem` = "Fedora" ]; then
+ echo "---> Fedora found"
+ echo "No extra steps for Fedora"
+else
+ if [ `/usr/bin/facter operatingsystemrelease | /bin/cut -d '.' -f1` = "7" ]; then
+ echo "---> CentOS 7"
+ echo "No extra steps currently for CentOS 7"
+ else
+ echo "---> CentOS 6"
+ echo "Installing ODL YUM repo"
+ yum install -q -y https://nexus.opendaylight.org/content/repositories/opendaylight-yum-epel-6-x86_64/rpm/opendaylight-release/0.1.0-1.el6.noarch/opendaylight-release-0.1.0-1.el6.noarch.rpm
+ fi
+fi