You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by la...@apache.org on 2015/04/08 13:25:29 UTC

stratos git commit: Adding script for updating deployment policy

Repository: stratos
Updated Branches:
  refs/heads/master 0f4599e64 -> 0ebff8014


Adding script for updating deployment policy


Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/0ebff801
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/0ebff801
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/0ebff801

Branch: refs/heads/master
Commit: 0ebff80149edf6ae78215753c935dc9118796793
Parents: 0f4599e
Author: Lahiru Sandaruwan <la...@apache.org>
Authored: Wed Apr 8 16:55:15 2015 +0530
Committer: Lahiru Sandaruwan <la...@apache.org>
Committed: Wed Apr 8 16:55:15 2015 +0530

----------------------------------------------------------------------
 .../scripts/common/update-deployment-policy.sh          | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/0ebff801/samples/applications/single-cartridge/scripts/common/update-deployment-policy.sh
----------------------------------------------------------------------
diff --git a/samples/applications/single-cartridge/scripts/common/update-deployment-policy.sh b/samples/applications/single-cartridge/scripts/common/update-deployment-policy.sh
new file mode 100755
index 0000000..f0bd8fb
--- /dev/null
+++ b/samples/applications/single-cartridge/scripts/common/update-deployment-policy.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+iaas=$1
+host_ip="localhost"
+host_port=9443
+
+script_path=`cd "$prgdir"; pwd`
+
+deployment_policies_path=`cd "${script_path}/../../../../deployment-policies"; pwd`
+
+curl -X PUT -H "Content-Type: application/json" -d "@${deployment_policies_path}/deployment-policy-1.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/deploymentPolicies
+