Skip to content

Commit

Permalink
Add Saltstack's develop branch to the images matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
javierbertoli committed Jun 2, 2019
1 parent 36d3f9d commit 7abcacb
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
5 changes: 5 additions & 0 deletions matrix.csv
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
centos,7,develop,git,3
debian,9,develop,git,3
fedora,29,develop,git,3
opensuse/leap,15,develop,git,3
ubuntu,18.04,develop,git,3
centos,7,2019.2,stable,3
debian,9,2019.2,stable,3
fedora,29,2019.2,git,3
Expand Down
3 changes: 2 additions & 1 deletion salt-testing-docker.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"environment_vars": [
"OS={{user `os`}}",
"OS_VER={{user `os_ver`}}",
"PY_VER={{user `py_ver`}}"
"PY_VER={{user `py_ver`}}",
"SALT_VER={{user `salt_ver`}}"
]
},
{
Expand Down
11 changes: 10 additions & 1 deletion scripts/prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ echo "**** PACKER_BUILDER_TYPE is ${PACKER_BUILDER_TYPE} ****"
echo " **** OS is ${OS} ****"
echo " **** OS_VERSION is ${OS_VER} ****"
echo " **** PY_VERSION is ${PY_VER} ****"
echo " **** SALT_VERSION is ${SALT_VER} ****"

mkdir -p /run/sshd

Expand Down Expand Up @@ -43,7 +44,15 @@ case ${OS} in
yum -y update && yum -y install ${C_PKGS}

if [ "${PY_VER}" = "3" ]; then
yum -y update && yum -y install python36
if [ "${SALT_VER}" = "develop" ]; then
PY_PKGS="python34 python34-pip python34-devel openssl-devel gcc-g++ zeromq zeromq-devel"
# The bootstrapper script only installs python3.4 packages
# and searches for python3 binary, which does not exist on the python3.4 package
ln -s /usr/bin/python3.4 /usr/bin/python3
else
PY_PKGS="python36"
fi
yum -y update && yum -y install ${PY_PKGS}
fi
;;
fedora)
Expand Down
2 changes: 1 addition & 1 deletion test/integration/controls/salt_pkgs.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = attribute('version')
version = attribute('version') == 'develop' ? 'Fluorine' : attribute('version')

control 'salt call' do
title 'should be installed'
Expand Down

0 comments on commit 7abcacb

Please sign in to comment.