|
|
|
|
|
|
|
|
log_info "Setting up Python virtualenv" |
|
|
log_info "Setting up Python virtualenv" |
|
|
virtualenv $VENV_DIR |
|
|
virtualenv $VENV_DIR |
|
|
source ${VENV_DIR}/bin/activate |
|
|
source ${VENV_DIR}/bin/activate |
|
|
pip install salt${PIP_SALT_VERSION} |
|
|
|
|
|
|
|
|
python -m pip install salt${PIP_SALT_VERSION} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
setup_pillar() { |
|
|
setup_pillar() { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
salt_run() { |
|
|
salt_run() { |
|
|
[ -e ${VENV_DIR}/bin/activate ] && source ${VENV_DIR}/bin/activate |
|
|
[ -e ${VENV_DIR}/bin/activate ] && source ${VENV_DIR}/bin/activate |
|
|
salt-call ${SALT_OPTS} $* |
|
|
|
|
|
|
|
|
python $(which salt-call) ${SALT_OPTS} $* |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
prepare() { |
|
|
prepare() { |