3 # vim: ts=4 sw=4 sts=4 et tw=72 :
6 # Install python dependencies
7 yum install -y python-{devel,virtualenv,setuptools,pip}
9 # Build dependencies for Python packages
10 yum install -y openssl-devel mysql-devel gcc
12 # Autorelease support packages
13 yum install -y xmlstarlet
15 # Additional libraries for Python ncclient
16 yum install -y libxml2 libxslt libxslt-devel libffi libffi-devel
18 # Packer builds happen from the centos flavor images
19 PACKERDIR=$(mktemp -d)
20 # disable double quote checking
21 # shellcheck disable=SC2086
23 wget https://releases.hashicorp.com/packer/0.12.2/packer_0.12.2_linux_amd64.zip
24 unzip packer_0.12.2_linux_amd64.zip -d /usr/local/bin/
25 # rename packer to avoid conflicts with cracklib
26 mv /usr/local/bin/packer /usr/local/bin/packer.io
28 # cleanup from the installation
29 # disable double quote checking
30 # shellcheck disable=SC2086
32 # cleanup from previous install process
40 # Install python dependencies
41 apt-get install -y python-{dev,virtualenv,setuptools,pip}
43 # Build dependencies for Python packages
44 apt-get install -y libssl-dev libmysqlclient-dev gcc
46 # Additional libraries for Python ncclient
47 apt-get install -y wget unzip python-ncclient
51 echo 'No common distribution configuration to perform'
54 echo "---> Detecting OS"
55 ORIGIN=$(facter operatingsystem | tr '[:upper:]' '[:lower:]')
59 echo "---> RH type system detected"
63 echo "---> Ubuntu system detected"
67 echo "---> Unknown operating system"
71 # execute steps for all systems