3 # vim: ts=4 sw=4 sts=4 et tw=72 :
6 # Assumes that python is already installed by basebuild
8 # Install dependencies for robotframework and robotframework-sshlibrary
9 yum install -y -q yum-utils unzip sshuttle nc libffi-devel openssl-devel
12 yum install -y docker supervisor bridge-utils
13 systemctl enable docker
15 # configure docker networking so that it does not conflict with LF
17 cat <<EOL > /etc/sysconfig/docker-network
18 # /etc/sysconfig/docker-network
19 DOCKER_NETWORK_OPTIONS='--bip=10.250.0.254/24'
21 # configure docker daemon to listen on port 5555 enabling remote
23 sed -i -e "s#='--selinux-enabled'#='--selinux-enabled -H unix:///var/run/docker.sock -H tcp://0.0.0.0:5555'#g" /etc/sysconfig/docker
25 # docker group doesn't get created by default for some reason
28 # Actual installation of robot is done from an integration JJB script
32 # Assumes that python is already installed by basebuild
34 # Install dependencies for robotframework and robotframework-sshlibrary
35 apt install -y unzip sshuttle netcat libffi-dev libssl-dev
38 apt install -y docker.io
40 # Actual installation of robot is done from an integration JJB script
44 echo 'No common distribution configuration to perform'
47 echo "---> Detecting OS"
48 ORIGIN=$(facter operatingsystem | tr '[:upper:]' '[:lower:]')
52 echo "---> RH type system detected"
56 echo "---> Ubuntu system detected"
60 echo "---> Unknown operating system"
64 # execute steps for all systems