summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--blueprints/pgaas-cluster.yaml-template6
-rw-r--r--blueprints/pgaas-onevm.yaml-template6
-rw-r--r--blueprints/pgaas.yaml-template6
-rw-r--r--input-templates/cdapinputs.yaml18
4 files changed, 27 insertions, 9 deletions
diff --git a/blueprints/pgaas-cluster.yaml-template b/blueprints/pgaas-cluster.yaml-template
index 9a85288..a08df40 100644
--- a/blueprints/pgaas-cluster.yaml-template
+++ b/blueprints/pgaas-cluster.yaml-template
@@ -129,7 +129,7 @@ inputs:
*00 ) WRITE=-write ;;
*01 ) WRITE= ;;
esac
- curl -v -X PUT -H "Content-Type: application/json" "http://${LOCATION_PREFIX}cnsl00.${LOCATION_DOMAIN}:8500/v1/agent/service/register" -d '{"name" : "${CLUSTER_NAME}${WRITE}", "Address" : "${LOCAL_IP}", "Port" : 5432}"'
+ curl -v -X PUT -H "Content-Type: application/json" "http://${LOCATION_PREFIX}cnsl00.${LOCATION_DOMAIN}:8500/v1/agent/service/register" -d "{\"name\" : \"${CLUSTER_NAME}${WRITE}\", \"Address\" : \"${LOCAL_IP}\", \"Port\" : 5432}"
echo ALL DONE
@@ -236,7 +236,7 @@ node_templates:
- { get_property: [ dns_pgrs00, fqdn ] }
- "'\n"
- "LOCAL_IP='"
- - { get_attribute: [ host_pgrs00, ip ] }
+ - { get_attribute: [ floatingip_pgrs00, floating_ip_address ] }
- "'\n"
- "PG_NODES='"
- { get_property: [ dns_pgrs00, fqdn ] }
@@ -338,7 +338,7 @@ node_templates:
- { get_property: [ dns_pgrs00, fqdn ] }
- "'\n"
- "LOCAL_IP='"
- - { get_attribute: [ host_pgrs01, ip ] }
+ - { get_attribute: [ floatingip_pgrs01, floating_ip_address ] }
- "'\n"
- "PG_NODES='"
- { get_property: [ dns_pgrs00, fqdn ] }
diff --git a/blueprints/pgaas-onevm.yaml-template b/blueprints/pgaas-onevm.yaml-template
index ec7aa36..213a35f 100644
--- a/blueprints/pgaas-onevm.yaml-template
+++ b/blueprints/pgaas-onevm.yaml-template
@@ -118,8 +118,8 @@ inputs:
dpkg --install $OUT
done
- curl -v -X PUT -H "Content-Type: application/json" "http://${LOCATION_PREFIX}cnsl00.${LOCATION_DOMAIN}:8500/v1/agent/service/register" -d '{"name" : "${CLUSTER_NAME}-write", "Address" : "${LOCAL_IP}", "Port" : 5432}"'
- curl -v -X PUT -H "Content-Type: application/json" "http://${LOCATION_PREFIX}cnsl00.${LOCATION_DOMAIN}:8500/v1/agent/service/register" -d '{"name" : "${CLUSTER_NAME}", "Address" : "${LOCAL_IP}", "Port" : 5432}"'
+ curl -v -X PUT -H "Content-Type: application/json" "http://${LOCATION_PREFIX}cnsl00.${LOCATION_DOMAIN}:8500/v1/agent/service/register" -d "{\"name\" : \"${CLUSTER_NAME}-write\", \"Address\" : \"${LOCAL_IP}\", \"Port\" : 5432}\""
+ curl -v -X PUT -H "Content-Type: application/json" "http://${LOCATION_PREFIX}cnsl00.${LOCATION_DOMAIN}:8500/v1/agent/service/register" -d "{\"name\" : \"${CLUSTER_NAME}\", \"Address\" : \"${LOCAL_IP}\", \"Port\" : 5432}"
echo ALL DONE
@@ -229,7 +229,7 @@ node_templates:
- { get_property: [ dns_pgrs00, fqdn ] }
- "'\n"
- "LOCAL_IP='"
- - { get_attribute: [ host_pgrs00, ip ] }
+ - { get_attribute: [ floatingip_pgrs00, floating_ip_address ] }
- "'\n"
- "PG_NODES='"
- { get_property: [ dns_pgrs00, fqdn ] }
diff --git a/blueprints/pgaas.yaml-template b/blueprints/pgaas.yaml-template
index 245b564..845ba72 100644
--- a/blueprints/pgaas.yaml-template
+++ b/blueprints/pgaas.yaml-template
@@ -122,7 +122,7 @@ inputs:
*00 ) WRITE=-write ;;
*01 ) WRITE= ;;
esac
- curl -v -X PUT -H "Content-Type: application/json" "http://${LOCATION_PREFIX}cnsl00.${LOCATION_DOMAIN}:8500/v1/agent/service/register" -d '{"name" : "${CLUSTER_NAME}${WRITE}", "Address" : "${LOCAL_IP}", "Port" : 5432}"'
+ curl -v -X PUT -H "Content-Type: application/json" "http://${LOCATION_PREFIX}cnsl00.${LOCATION_DOMAIN}:8500/v1/agent/service/register" -d "{\"name\" : \"${CLUSTER_NAME}${WRITE}\", \"Address\" : \"${LOCAL_IP}\", \"Port\" : 5432}"
echo ALL DONE
@@ -232,7 +232,7 @@ node_templates:
- { get_property: [ dns_pgrs00, fqdn ] }
- "'\n"
- "LOCAL_IP='"
- - { get_attribute: [ host_pgrs00, ip ] }
+ - { get_attribute: [ floatingip_pgrs00, floating_ip_address ] }
- "'\n"
- "PG_NODES='"
- { get_property: [ dns_pgrs00, fqdn ] }
@@ -334,7 +334,7 @@ node_templates:
- { get_property: [ dns_pgrs00, fqdn ] }
- "'\n"
- "LOCAL_IP='"
- - { get_attribute: [ host_pgrs01, ip ] }
+ - { get_attribute: [ floatingip_pgrs01, floating_ip_address ] }
- "'\n"
- "PG_NODES='"
- { get_property: [ dns_pgrs00, fqdn ] }
diff --git a/input-templates/cdapinputs.yaml b/input-templates/cdapinputs.yaml
new file mode 100644
index 0000000..f57a93d
--- /dev/null
+++ b/input-templates/cdapinputs.yaml
@@ -0,0 +1,18 @@
+ubuntu1604image_id: '{{ ubuntu_1604_image }}'
+centos7image_id: '{{ centos_7_image }}'
+flavor_id: '{{ flavor_id_cdap }}'
+security_group: '{{ security_group }}'
+public_net: '{{ public_net_id }}'
+private_net: '{{ openstack_private_network_name }}'
+openstack:
+ username: '{{ openstack_user }}'
+ password: '{{ openstack_password }}'
+ tenant_name: '{{ tenant_name }}'
+ auth_url: '{{ keystone_url }}'
+ region: '{{ openstack_region }}'
+keypair: '{{ key_name }}'
+key_filename: '/opt/dcae/key'
+location_prefix: 'dcae'
+location_domain: '{{ dcae_zone }}.dcaeg2.simpledemo.onap.org'
+codesource_url: 'https://nexus.onap.org/service/local/repositories/raw/content'
+codesource_version: 'org.onap.dcaegen2.deployments/releases'