From 1b2af345c84aa26ce9710319a30f2f1a1e2781e4 Mon Sep 17 00:00:00 2001 From: Lusheng Ji Date: Sun, 15 Oct 2017 16:37:33 -0400 Subject: Add BP input templates Issue-Id: DCAEGEN2-128 Change-Id: I0f7de519b6c327b421f4d47f8cf6ee6d819c618a Signed-off-by: Lusheng Ji --- input-templates/dhinputs.yaml | 5 ++ input-templates/inputs.yaml | 18 +++++ input-templates/invinputs.yaml | 11 +++ input-templates/phinputs.yaml | 33 ++++++++ input-templates/pom.xml | 174 +++++++++++++++++++++++++++++++++++++++++ pom.xml | 1 + 6 files changed, 242 insertions(+) create mode 100644 input-templates/dhinputs.yaml create mode 100644 input-templates/inputs.yaml create mode 100644 input-templates/invinputs.yaml create mode 100644 input-templates/phinputs.yaml create mode 100644 input-templates/pom.xml diff --git a/input-templates/dhinputs.yaml b/input-templates/dhinputs.yaml new file mode 100644 index 0000000..ad51a25 --- /dev/null +++ b/input-templates/dhinputs.yaml @@ -0,0 +1,5 @@ +application_config: + cloudify: + protocol: "http" + inventory: + protocol: "http" diff --git a/input-templates/inputs.yaml b/input-templates/inputs.yaml new file mode 100644 index 0000000..a4d9b01 --- /dev/null +++ b/input-templates/inputs.yaml @@ -0,0 +1,18 @@ +ubuntu1604image_id: '{{ ubuntu_1604_image }}' +centos7image_id: '{{ centos_7_image }}' +flavor_id: '{{ flavor_medium }}' +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: 'onapr1' +location_domain: 'dcae2.onapdevlab.onap.org' +codesource_url: 'https://nexus.onap.org/service/local/repositories/raw/content' +codesource_version: 'org.onap.dcaegen2.deployments/releases/scripts' diff --git a/input-templates/invinputs.yaml b/input-templates/invinputs.yaml new file mode 100644 index 0000000..b5014ce --- /dev/null +++ b/input-templates/invinputs.yaml @@ -0,0 +1,11 @@ +location_id: "onap" +docker_host_override: "platform_dockerhost" +asdc_address: "" +asdc_uri: "" +asdc_user: "" +asdc_password: "" +asdc_environment_name: "" +postgres_user_inventory: "postgres" +postgres_password_inventory: "onap123" +service_change_handler_image: "nexus3.onap.org:10001/onap/org.onap.dcaegen2.platform.servicechange-handler:latest" +inventory_image: "nexus3.onap.org:10001/onap/org.onap.dcaegen2.platform.inventory-api:latest" diff --git a/input-templates/phinputs.yaml b/input-templates/phinputs.yaml new file mode 100644 index 0000000..feb86f1 --- /dev/null +++ b/input-templates/phinputs.yaml @@ -0,0 +1,33 @@ +application_config: + policy_handler : + # parallelize the getConfig queries to policy-engine on each policy-update notification + thread_pool_size : 4 + + # parallelize requests to policy-engine and keep them alive + pool_connections : 20 + + # list of policyName prefixes (filters) that DCAE-Controller handles (=ignores any other policyName values) + scope_prefixes : ["DCAE.Config_"] + + # retry to getConfig from policy-engine on policy-update notification + policy_retry_count : 5 + policy_retry_sleep : 5 + + # policy-engine config + # These are the url of and the auth for the external system, namely the policy-engine (PDP). + # We obtain that info manually from PDP folks at the moment. + # In long run we should figure out a way of bringing that info into consul record + # related to policy-engine itself. + policy_engine : + url : "https://peawiv9nspd01.pedc.sbc.com:8081" + path_pdp : "/pdp/" + path_api : "/pdp/api/" + headers : + Accept : "application/json" + "Content-Type" : "application/json" + ClientAuth : "Basic bTAzOTQ5OnBvbGljeVIwY2sk" + Authorization : "Basic dGVzdHBkcDphbHBoYTEyMw==" + Environment : "TEST" + target_entity : "policy_engine" + # name of deployment-handler service in consul for policy-handler to direct the policy-updates to + deploy_handler : "deployment_handler" diff --git a/input-templates/pom.xml b/input-templates/pom.xml new file mode 100644 index 0000000..75b4d0e --- /dev/null +++ b/input-templates/pom.xml @@ -0,0 +1,174 @@ + + + + 4.0.0 + + org.onap.dcaegen2.platform + blueprints + 1.0.0-SNAPSHOT + + org.onap.dcaegen2.platform.blueprints + input-templates + dcaegen2-platform-blueprints-input-templates + 1.0.0-SNAPSHOT + http://maven.apache.org + + + UTF-8 + true + . + + + + + py + Python + **/*.py + + + + + ${project.artifactId}-${project.version} + + + + + org.codehaus.mojo + exec-maven-plugin + 1.2.1 + + + clean phase script + clean + + exec + + + + ${project.artifactId} + clean + + + + + generate-sources script + generate-sources + + exec + + + + ${project.artifactId} + generate-sources + + + + + compile script + compile + + exec + + + + ${project.artifactId} + compile + + + + + package script + package + + exec + + + + ${project.artifactId} + package + + + + + test script + test + + exec + + + + ${project.artifactId} + test + + + + + install script + install + + exec + + + + ${project.artifactId} + install + + + + + deploy script + deploy + + exec + + + + ${project.artifactId} + deploy + + + + + + + + diff --git a/pom.xml b/pom.xml index cb3f356..8ef9779 100644 --- a/pom.xml +++ b/pom.xml @@ -34,6 +34,7 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property. pom blueprints + input-templates -- cgit 1.2.3-korg