Skip to content

Commit

Permalink
Allow overidding XtestingCI version
Browse files Browse the repository at this point in the history
default is latest stable

Signed-off-by: Cédric Ollivier <[email protected]>
  • Loading branch information
collivier committed Oct 23, 2023
1 parent 50b3ac6 commit 0c504d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions elements/xtestingci/environment.d/15-xtestingci
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export DIB_APT_MINIMAL_CREATE_INTERFACES=0
export DIB_XTESTINGCI_VERSION=${DIB_XTESTINGCI_VERSION:-""}
6 changes: 5 additions & 1 deletion elements/xtestingci/install.d/15-xtestingci
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

echo debian:debian | chpasswd

LC_ALL=en_US.UTF-8 ansible-galaxy install -p /usr/share/ansible/roles collivier.xtesting,4.1.0
if [ -n "${DIB_XTESTINGCI_VERSION}" ]; then
LC_ALL=en_US.UTF-8 ansible-galaxy install -p /usr/share/ansible/roles collivier.xtesting,${DIB_XTESTINGCI_VERSION}
else
LC_ALL=en_US.UTF-8 ansible-galaxy install -p /usr/share/ansible/roles collivier.xtesting
fi
LC_ALL=en_US.UTF-8 ansible-galaxy collection install -p /usr/share/ansible/collections \
ansible.posix community.general community.grafana \
community.kubernetes community.docker community.postgresql
Expand Down

0 comments on commit 0c504d9

Please sign in to comment.