[__pyvenv] use python3 -m venv on alpine

Until python4 comes, this will work
remotes/origin/HEAD
Nico Schottelius 5 years ago
parent 0f639a9278
commit d034fe9369
  1. 12
      cdist/conf/type/__pyvenv/gencode-remote
  2. 1
      docs/changelog

@ -37,11 +37,21 @@ mode="$(cat "$__object/parameter/mode")"
destination="/$__object_id"
venvparams="$(cat "$__object/parameter/venvparams")"
pyvenvparam="$__object/parameter/pyvenv"
os=$(cat $__global/explorer/os)
if [ -f "$pyvenvparam" ]
then
pyvenv=$(cat "$pyvenvparam")
else
pyvenv="pyvenv"
case "$os" in
alpine) # no pyvenv on alpine - I assume others will follow
pyvenv="python3 -m venv"
;;
*)
pyvenv="pyvenv"
;;
esac
fi
case $state_should in

@ -3,6 +3,7 @@ Changelog
next:
* Type __cron: Make non parallel due to race condition (Nico Schottelius)
* Type __pyvenv: Use python3 -m venv on Alpine (Nico Schottelius)
* Type __user: Fix missing shadow for alpine (llnu)
* Type __consule_agent: Make conf_dir dependent on OS - fixes Alpine (Nico Schottelius)
* Type __letsencrypt_cert: Fix typo (Andrew Schleifer)

Loading…
Cancel
Save