From: Mike Marchetti Date: Tue, 3 Oct 2017 02:36:16 +0000 (-0400) Subject: update ro-config line for R3 X-Git-Tag: v3.0.0rc2~1 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=397a65dcb0d6b9afb9165f5f13f0f717d449c374;hp=8dfd998ac99775c6b58b1862a55a326b876826b7;p=osm%2Fdevops.git update ro-config line for R3 Change-Id: I9738da58dfe6ac622e2066efe4df9704443727ef Signed-off-by: Mike Marchetti --- diff --git a/installers/install_osm.sh b/installers/install_osm.sh index f9031750..e475c3fd 100755 --- a/installers/install_osm.sh +++ b/installers/install_osm.sh @@ -209,13 +209,22 @@ function configure(){ --data '{"account": [ { "name": "osmjuju", "account-type": "juju", "juju": { "ip-address": "'$JUJU_CONTROLLER_IP'", "port": "17070", "user": "admin", "secret": "'$JUJU_PASSWD'" } } ]}') [[ $result =~ .*success.* ]] || FATAL "Failed config-agent configuration: $result" + #R1/R2 config line + #result=$(curl -k --request PUT \ + # --url https://$SO_CONTAINER_IP:8008/api/config/resource-orchestrator \ + # --header 'accept: application/vnd.yang.data+json' \ + # --header 'authorization: Basic YWRtaW46YWRtaW4=' \ + # --header 'cache-control: no-cache' \ + # --header 'content-type: application/vnd.yang.data+json' \ + # --data '{ "openmano": { "host": "'$RO_CONTAINER_IP'", "port": "9090", "tenant-id": "'$RO_TENANT_ID'" }, "name": "osmopenmano", "account-type": "openmano" }') + result=$(curl -k --request PUT \ - --url https://$SO_CONTAINER_IP:8008/api/config/resource-orchestrator \ + --url https://$SO_CONTAINER_IP:8008/api/config/project/default/ro-account/account \ --header 'accept: application/vnd.yang.data+json' \ --header 'authorization: Basic YWRtaW46YWRtaW4=' \ - --header 'cache-control: no-cache' \ + --header 'cache-control: no-cache' \ --header 'content-type: application/vnd.yang.data+json' \ - --data '{ "openmano": { "host": "'$RO_CONTAINER_IP'", "port": "9090", "tenant-id": "'$RO_TENANT_ID'" }, "name": "osmopenmano", "account-type": "openmano" }') + --data '{"rw-ro-account:account": [ { "openmano": { "host": "'$RO_CONTAINER_IP'", "port": "9090", "tenant-id": "'$RO_TENANT_ID'"}, "name": "osmopenmano", "ro-account-type": "openmano" }]}') [[ $result =~ .*success.* ]] || FATAL "Failed resource-orchestrator configuration: $result" }