From 188a458cef6881d8de566b807347a60059e2c3bd Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Sun, 27 Jan 2013 23:31:26 +0000 Subject: [PATCH] Add git install support to SmartOS. --- bootstrap-salt-minion.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/bootstrap-salt-minion.sh b/bootstrap-salt-minion.sh index 0da6273..5de9fef 100755 --- a/bootstrap-salt-minion.sh +++ b/bootstrap-salt-minion.sh @@ -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() { easy_install-2.7 salt } +install_smartos_git() { + /opt/local/bin/python setup.py install +} + install_smartos_post() { ### # TODO: * create /opt/local/share/smf/salt-minion/manifest.xml in salt.git