mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
alpine: add git install support via install_alpine_linux_git_deps()
Add basic support of installing via `git`.
This commit is contained in:
parent
48f8145026
commit
50a67a5203
1 changed files with 29 additions and 0 deletions
|
@ -4204,6 +4204,35 @@ install_alpine_linux_stable_deps() {
|
|||
fi
|
||||
}
|
||||
|
||||
install_alpine_linux_git_deps() {
|
||||
apk -U add python2 py-virtualenv py2-crypto py2-setuptools \
|
||||
py2-jinja2 py2-markupsafe py2-msgpack py2-psutil \
|
||||
py2-zmq zeromq py2-requests || return 1
|
||||
|
||||
# Don't fail if un-installing python2-distribute threw an error
|
||||
if ! __check_command_exists git; then
|
||||
apk -U add git || return 1
|
||||
fi
|
||||
|
||||
__git_clone_and_checkout || return 1
|
||||
|
||||
if [ -f "${_SALT_GIT_CHECKOUT_DIR}/requirements/base.txt" ]; then
|
||||
# We're on the develop branch, install whichever tornado is on the requirements file
|
||||
__REQUIRED_TORNADO="$(grep tornado "${_SALT_GIT_CHECKOUT_DIR}/requirements/base.txt")"
|
||||
if [ "${__REQUIRED_TORNADO}" != "" ]; then
|
||||
apk -U add py2-tornado
|
||||
fi
|
||||
fi
|
||||
|
||||
# Let's trigger config_salt()
|
||||
if [ "$_TEMP_CONFIG_DIR" = "null" ]; then
|
||||
_TEMP_CONFIG_DIR="${_SALT_GIT_CHECKOUT_DIR}/conf/"
|
||||
CONFIG_SALT_FUNC="config_salt"
|
||||
fi
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
install_alpine_linux_stable() {
|
||||
__PACKAGES="salt"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue