3 # vim: ts=4 sw=4 sts=4 et tw=72 :
5 # force any errors to cause the script and job to end in failure
9 # Assumes that python is already installed by basebuild
11 # Install dependencies for robotframework and robotframework-sshlibrary
12 yum install -y yum-utils unzip sshuttle nc libffi-devel openssl-devel
15 yum install -y docker supervisor bridge-utils
16 systemctl enable docker
18 # configure docker networking so that it does not conflict with LF
20 cat <<EOL > /etc/sysconfig/docker-network
21 # /etc/sysconfig/docker-network
22 DOCKER_NETWORK_OPTIONS='--bip=10.250.0.254/24'
24 # configure docker daemon to listen on port 5555 enabling remote
26 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
28 # docker group doesn't get created by default for some reason
33 # Assumes that python is already installed by basebuild
35 # Install dependencies for robotframework and robotframework-sshlibrary
36 apt install -y unzip sshuttle netcat libffi-dev libssl-dev
39 apt install -y docker.io
43 echo 'No common distribution configuration to perform'
46 echo "---> Detecting OS"
47 ORIGIN=$(facter operatingsystem | tr '[:upper:]' '[:lower:]')
51 echo "---> RH type system detected"
55 echo "---> Ubuntu system detected"
59 echo "---> Unknown operating system"
63 # execute steps for all systems