diff options
author | Jack Lucas <jflucas@research.att.com> | 2018-05-17 01:53:45 +0000 |
---|---|---|
committer | Jack Lucas <jflucas@research.att.com> | 2018-05-17 01:54:35 +0000 |
commit | 5867fe10b1f5583bc2fd9cd7458039998ddd43a3 (patch) | |
tree | 3fd8858562323bcef86bb27986c6649d398a7db9 | |
parent | e380f6bb14fb0e5fae4e9a6d9b9af40a9340f11a (diff) |
Add Consul registrations for Holmesv2.0.0
Change-Id: I8f72a46062301b1d859b77f12772b3beee8cc4e1
Issue-ID: DCAEGEN2-512
Signed-off-by: Jack Lucas <jflucas@research.att.com>
-rwxr-xr-x | k8s-bootstrap-container/bootstrap.sh | 5 | ||||
-rw-r--r-- | k8s-bootstrap-container/pom.xml | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/k8s-bootstrap-container/bootstrap.sh b/k8s-bootstrap-container/bootstrap.sh index edfd057..0ac0f8e 100755 --- a/k8s-bootstrap-container/bootstrap.sh +++ b/k8s-bootstrap-container/bootstrap.sh @@ -33,6 +33,9 @@ set -ex CBS_REG='{"ID": "dcae-cbs0", "Name": "config_binding_service", "Address": "config-binding-service", "Port": 10000}' CBS_REG1='{"ID": "dcae-cbs1", "Name": "config-binding-service", "Address": "config-binding-service", "Port": 10000}' INV_REG='{"ID": "dcae-inv0", "Name": "inventory", "Address": "inventory", "Port": 8080}' +HE_REG='{"ID": "dcae-he0", "Name": "holmes-engine-mgmt", "Address": "holmes-engine-mgmt", "Port": 9102}' +HR_REG='{"ID": "dcae-hr0", "Name": "holmes-rule-mgmt", "Address": "holmes-rule-mgmt", "Port": 9101}' + # Cloudify Manager will always be in the ONAP namespace. CM_REG='{"ID": "dcae-cm0", "Name": "cloudify_manager", "Port": 80, "Address": "dcae-cloudify-manager.'${ONAP_NAMESPACE}'"}' # Policy handler will be looked up from a plugin on CM. If DCAE components are running in a different k8s @@ -75,6 +78,8 @@ curl -v -X PUT -H "Content-Type: application/json" --data "${CBS_REG1}" ${CONSUL curl -v -X PUT -H "Content-Type: application/json" --data "${CM_REG}" ${CONSUL}/v1/agent/service/register curl -v -X PUT -H "Content-Type: application/json" --data "${INV_REG}" ${CONSUL}/v1/agent/service/register curl -v -X PUT -H "Content-Type: application/json" --data "${PH_REG}" ${CONSUL}/v1/agent/service/register +curl -v -X PUT -H "Content-Type: application/json" --data "${HE_REG}" ${CONSUL}/v1/agent/service/register +curl -v -X PUT -H "Content-Type: application/json" --data "${HR_REG}" ${CONSUL}/v1/agent/service/register # Store the CM password into a Cloudify secret cfy secret create -s ${CMPASS} cmpass diff --git a/k8s-bootstrap-container/pom.xml b/k8s-bootstrap-container/pom.xml index 73c122b..660f734 100644 --- a/k8s-bootstrap-container/pom.xml +++ b/k8s-bootstrap-container/pom.xml @@ -27,7 +27,7 @@ limitations under the License. <groupId>org.onap.dcaegen2.deployments</groupId> <artifactId>k8s-bootstrap-container</artifactId> <name>dcaegen2-deployments-k8s-bootstrap-container</name> - <version>1.1.10</version> + <version>1.1.11</version> <url>http://maven.apache.org</url> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |