aboutsummaryrefslogtreecommitdiffstats
path: root/heat
diff options
context:
space:
mode:
Diffstat (limited to 'heat')
-rwxr-xr-xheat/ONAP/manifest-to-env.sh28
-rw-r--r--heat/ONAP/onap_openstack.env5
-rw-r--r--heat/ONAP/onap_openstack_template.env182
3 files changed, 213 insertions, 2 deletions
diff --git a/heat/ONAP/manifest-to-env.sh b/heat/ONAP/manifest-to-env.sh
new file mode 100755
index 00000000..017b091a
--- /dev/null
+++ b/heat/ONAP/manifest-to-env.sh
@@ -0,0 +1,28 @@
+#!/bin/bash
+#==================LICENSE_START==========================================
+#
+# Copyright (c) 2017 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+#==================LICENSE_END============================================
+
+# USAGE: Pipe in docker-manifest.csv from the integration repo. This
+# script converts it into a series of environment variable settings
+# that can then be used with envsubst to set the docker versions in
+# onap_openstack_template.env.
+#
+# EXAMPLE:
+# source <(./manifest-to-env.sh < ~/Projects/onap/integration/version-manifest/src/main/resources/docker-manifest.csv)
+# envsubst < onap_openstack_template.env > onap_openstack.env
+
+sed '1d' | awk -F , '{ v=$1; gsub(".*[./]","",$1); gsub("-","_",$1); print "export " toupper($1) "_DOCKER=" $2 " # " v }'
diff --git a/heat/ONAP/onap_openstack.env b/heat/ONAP/onap_openstack.env
index 1eade03a..3104061c 100644
--- a/heat/ONAP/onap_openstack.env
+++ b/heat/ONAP/onap_openstack.env
@@ -111,6 +111,7 @@ parameters:
################################
# #
# Docker versions and branches #
+ # Generated using onap_openstack_template.env and manifest-to-env.sh
# #
################################
@@ -136,11 +137,11 @@ parameters:
portal_docker: v1.3.0
robot_docker: 1.1-STAGING-latest
sdc_docker: v1.1.0
- sdnc_docker: 1.2-STAGING-latest
+ sdnc_docker: v1.2.1
vid_docker: v1.1.0
clamp_docker: v1.1.0
msb_docker: 1.0.0
- mvim_docker: latest
+ mvim_docker: v1.0.0
uui_docker: latest
esr_docker: v1.0.0
dgbuilder_docker: v0.1.0
diff --git a/heat/ONAP/onap_openstack_template.env b/heat/ONAP/onap_openstack_template.env
new file mode 100644
index 00000000..538bbc20
--- /dev/null
+++ b/heat/ONAP/onap_openstack_template.env
@@ -0,0 +1,182 @@
+parameters:
+
+ ##############################################
+ # #
+ # Parameters used across all ONAP components #
+ # #
+ ##############################################
+
+ public_net_id: PUT YOUR NETWORK ID HERE
+
+ public_net_name: PUT YOUR NETWORK NAME HERE
+
+ ubuntu_1404_image: PUT THE UBUNTU 14.04 IMAGE NAME HERE
+
+ ubuntu_1604_image: PUT THE UBUNTU 16.04 IMAGE NAME HERE
+
+ flavor_small: PUT THE SMALL FLAVOR NAME HERE
+
+ flavor_medium: PUT THE MEDIUM FLAVOR NAME HERE
+
+ flavor_large: PUT THE LARGE FLAVOR NAME HERE
+
+ flavor_xlarge: PUT THE XLARGE FLAVOR NAME HERE
+
+ flavor_xxlarge: PUT THE XXLARGE FLAVOR NAME HERE
+
+ vm_base_name: onap
+
+ key_name: onap_key
+
+ pub_key: PUT YOUR PUBLIC KEY HERE
+
+ nexus_repo: https://nexus.onap.org/content/sites/raw
+
+ nexus_docker_repo: nexus3.onap.org:10001
+
+ nexus_username: docker
+
+ nexus_password: docker
+
+ dmaap_topic: AUTO
+
+ artifacts_version: 1.1.0-SNAPSHOT
+
+ openstack_tenant_id: PUT YOUR OPENSTACK PROJECT ID HERE
+
+ openstack_tenant_name: PUT YOUR OPENSTACK PROJECT NAME HERE
+
+ openstack_username: PUT YOUR OPENSTACK USERNAME HERE
+
+ openstack_api_key: PUT YOUR OPENSTACK PASSWORD HERE
+
+ openstack_auth_method: password
+
+ openstack_region: RegionOne
+
+ horizon_url: PUT THE HORIZON URL HERE
+
+ keystone_url: PUT THE KEYSTONE URL HERE (do not include version number)
+
+ cloud_env: openstack
+
+
+ ######################
+ # #
+ # Network parameters #
+ # #
+ ######################
+
+ dns_list: PUT THE ADDRESS OF THE EXTERNAL DNS HERE (e.g. a comma-separated list of IP addresses in your /etc/resolv.conf in UNIX-based Operating Systems)
+ external_dns: PUT THE FIRST ADDRESS OF THE EXTERNAL DNS LIST HERE
+ dns_forwarder: PUT THE IP OF DNS FORWARDER FOR ONAP DEPLOYMENT'S OWN DNS SERVER
+ oam_network_cidr: 10.0.0.0/16
+
+ ### Private IP addresses ###
+
+ aai1_ip_addr: 10.0.1.1
+ aai2_ip_addr: 10.0.1.2
+ appc_ip_addr: 10.0.2.1
+ dcae_ip_addr: 10.0.4.1
+ dns_ip_addr: 10.0.100.1
+ so_ip_addr: 10.0.5.1
+ mr_ip_addr: 10.0.11.1
+ policy_ip_addr: 10.0.6.1
+ portal_ip_addr: 10.0.9.1
+ robot_ip_addr: 10.0.10.1
+ sdc_ip_addr: 10.0.3.1
+ sdnc_ip_addr: 10.0.7.1
+ vid_ip_addr: 10.0.8.1
+ clamp_ip_addr: 10.0.12.1
+ openo_ip_addr: 10.0.14.1
+
+ ###########################
+ # #
+ # Parameters used by DCAE #
+ # #
+ ###########################
+
+ dnsaas_config_enabled: PUT WHETHER TO USE PROXYED DESIGNATE
+ dnsaas_region: PUT THE DESIGNATE PROVIDING OPENSTACK'S REGION HERE
+ dnsaas_keystone_url: PUT THE DESIGNATE PROVIDING OPENSTACK'S KEYSTONE URL HERE
+ dnsaas_tenant_name: PUT THE TENANT NAME IN THE DESIGNATE PROVIDING OPENSTACK HERE (FOR R1 USE THE SAME AS openstack_tenant_name)
+ dnsaas_username: PUT THE DESIGNATE PROVIDING OPENSTACK'S USERNAME HERE
+ dnsaas_password: PUT THE DESIGNATE PROVIDING OPENSTACK'S PASSWORD HERE
+ dcae_keystone_url: PUT THE MULTIVIM PROVIDED KEYSTONE API URL HERE
+ dcae_centos_7_image: PUT THE CENTOS7 VM IMAGE NAME HERE FOR DCAE LAUNCHED CENTOS7 VM
+ dcae_domain: PUT THE NAME OF DOMAIN THAT DCAE VMS REGISTER UNDER
+ dcae_public_key: PUT THE PUBLIC KEY OF A KEYPAIR HERE TO BE USED BETWEEN DCAE LAUNCHED VMS
+ dcae_private_key: PUT THE SECRET KEY OF A KEYPAIR HERE TO BE USED BETWEEN DCAE LAUNCHED VMS
+
+ ################################
+ # #
+ # Docker versions and branches #
+ # Generated using onap_openstack_template.env and manifest-to-env.sh
+ # #
+ ################################
+
+ aai_branch: master
+ appc_branch: master
+ so_branch: master
+ mr_branch: master
+ policy_branch: master
+ portal_branch: release-1.3.0
+ robot_branch: master
+ sdc_branch: master
+ sdnc_branch: master
+ vid_branch: master
+ clamp_branch: master
+ vnfsdk_branch: master
+
+ aai_docker: ${AAI_RESOURCES_DOCKER}
+ aai_sparky_docker: ${AAI_RESOURCES_DOCKER}
+ appc_docker: ${APPC_IMAGE_DOCKER}
+ so_docker: ${MSO_DOCKER}
+ dcae_docker: ${BOOTSTRAP_DOCKER}
+ policy_docker: ${POLICY_DB_DOCKER}
+ portal_docker: ${PORTAL_APPS_DOCKER}
+ robot_docker: 1.1-STAGING-latest
+ sdc_docker: ${SDC_BACKEND_DOCKER}
+ sdnc_docker: ${SDNC_IMAGE_DOCKER}
+ vid_docker: ${VID_DOCKER}
+ clamp_docker: ${CLAMP_DOCKER}
+ msb_docker: ${MSB_APIGATEWAY_DOCKER}
+ mvim_docker: ${FRAMEWORK_DOCKER}
+ uui_docker: latest
+ esr_docker: ${ESR_SERVER_DOCKER}
+ dgbuilder_docker: ${CCSDK_DGBUILDER_IMAGE_DOCKER}
+ cli_docker: ${CLI_DOCKER}
+
+ vfc_nokia_docker: ${NOKIA_DOCKER}
+ vfc_ztevmanagerdriver_docker: ${ZTEVMANAGERDRIVER_DOCKER}
+ vfc_ztesdncdriver_docker: ${ZTESDNCDRIVER_DOCKER}
+ vfc_vnfres_docker: ${VNFRES_DOCKER}
+ vfc_vnfmgr_docker: ${VNFMGR_DOCKER}
+ vfc_vnflcm_docker: ${VNFLCM_DOCKER}
+ vfc_resmanagement_docker: ${RESMANAGEMENT_DOCKER}
+ vfc_nslcm_docker: ${NSLCM_DOCKER}
+ vfc_huawei_docker: ${HUAWEI_DOCKER}
+ vfc_jujudriver_docker: ${JUJUDRIVER_DOCKER}
+ vfc_gvnfmdriver_docker: ${GVNFMDRIVER_DOCKER}
+ vfc_emsdriver_docker: ${EMSDRIVER_DOCKER}
+ vfc_catalog_docker: ${CATALOG_DOCKER}
+ vfc_wfengine_mgrservice_docker: ${WFENGINE_MGRSERVICE_DOCKER}
+ vfc_wfengine_activiti_docker: ${WFENGINE_ACTIVITI_DOCKER}
+
+ #####################
+ # #
+ # ONAP repositories #
+ # #
+ #####################
+ aai_repo: http://gerrit.onap.org/r/aai/test-config
+ appc_repo: http://gerrit.onap.org/r/appc/deployment.git
+ mr_repo: http://gerrit.onap.org/r/dcae/demo/startup/message-router.git
+ so_repo: http://gerrit.onap.org/r/so/docker-config.git
+ policy_repo: http://gerrit.onap.org/r/policy/docker.git
+ portal_repo: http://gerrit.onap.org/r/portal.git
+ robot_repo: http://gerrit.onap.org/r/testsuite/properties.git
+ sdc_repo: http://gerrit.onap.org/r/sdc.git
+ sdnc_repo: http://gerrit.onap.org/r/sdnc/oam.git
+ vid_repo: http://gerrit.onap.org/r/vid.git
+ clamp_repo: http://gerrit.onap.org/r/clamp.git
+ vnfsdk_repo: http://gerrit.onap.org/r/vnfsdk/refrepo.git