summaryrefslogtreecommitdiffstats
path: root/mcp/scripts/salt.sh
diff options
context:
space:
mode:
authorMichael Polenchuk <mpolenchuk@mirantis.com>2017-07-04 15:54:11 +0400
committerMichael Polenchuk <mpolenchuk@mirantis.com>2017-07-05 17:06:35 +0400
commitde6a685915bc8bd5444217bca511da35c94b4d59 (patch)
tree1d861f14ef74e24cd9bdae67d59abaf6a91b194c /mcp/scripts/salt.sh
parente49e91d7aa740437c01e6531ef648d2dae97c11d (diff)
Turn on opendaylight scenario
* fix formula & reclass cluster model * bring in running states Change-Id: I8e66e69045f5c745f9aa6f59f7ce6d66b5bf1c95 Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
Diffstat (limited to 'mcp/scripts/salt.sh')
-rwxr-xr-xmcp/scripts/salt.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/mcp/scripts/salt.sh b/mcp/scripts/salt.sh
index 56a6fb3b8..9378b6c43 100755
--- a/mcp/scripts/salt.sh
+++ b/mcp/scripts/salt.sh
@@ -20,4 +20,19 @@ ssh ${SSH_OPTS} ubuntu@${SALT_MASTER} bash -s << SALT_INSTALL_END
cd /srv/salt/scripts
MASTER_HOSTNAME=cfg01.${CLUSTER_DOMAIN} DISTRIB_REVISION=nightly ./salt-master-init.sh
salt-key -Ay
+
+ cp -r /root/fuel/mcp/metadata/service /usr/share/salt-formulas/reclass
+ cp -r /root/fuel/mcp/salt-formulas/* /usr/share/salt-formulas/env
+ cd /srv/salt/reclass/classes/service && ln -s /usr/share/salt-formulas/reclass/service/opendaylight
+
+ salt '*' saltutil.refresh_pillar
+ salt '*' saltutil.sync_all
+
+ salt-call state.apply salt
+ salt '*' state.apply salt || salt '*' state.apply salt
+
+ salt -C 'I@salt:master' state.sls linux
+ salt -C '* and not cfg01*' state.sls linux
+
+ salt '*' state.sls ntp
SALT_INSTALL_END