Add git install support to SmartOS.

This commit is contained in:
Pedro Algarvio 2013-01-27 23:31:26 +00:00
parent 08c709ac64
commit 188a458cef

View file

@ -1169,10 +1169,27 @@ install_smartos_deps() {
} }
install_smartos_git_deps() {
install_smartos_deps
pkgin -y in scmgit
__git_clone_and_checkout
# 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
}
install_smartos_stable() { install_smartos_stable() {
easy_install-2.7 salt easy_install-2.7 salt
} }
install_smartos_git() {
/opt/local/bin/python setup.py install
}
install_smartos_post() { install_smartos_post() {
### ###
# TODO: * create /opt/local/share/smf/salt-minion/manifest.xml in salt.git # TODO: * create /opt/local/share/smf/salt-minion/manifest.xml in salt.git