summaryrefslogtreecommitdiffstats
path: root/cdap/demo_blueprints
diff options
context:
space:
mode:
authorMiroslav Los <miroslav.los@pantheon.tech>2019-12-18 13:10:24 +0100
committerMiroslav Los <miroslav.los@pantheon.tech>2020-01-07 10:25:09 +0100
commite0b1912b608523881e43e5d7e22610fafba8fac4 (patch)
tree544d4d830a40c0ebe790ca24fb539ca203fa1492 /cdap/demo_blueprints
parentf31bd85266b8bdb7d95bb6f6e2f6d48967278f9a (diff)
Remove obsolete cdap and docker plugins
Signed-off-by: Miroslav Los <miroslav.los@pantheon.tech> Issue-ID: DCAEGEN2-1987 Change-Id: I7e7114458a2931b8f1baf915f1714ee8465b86e5
Diffstat (limited to 'cdap/demo_blueprints')
-rw-r--r--cdap/demo_blueprints/cdap_hello_world.yaml68
-rwxr-xr-xcdap/demo_blueprints/cdap_hello_world_reconfigure.sh21
-rw-r--r--cdap/demo_blueprints/cdap_hello_world_with_dmaap.yaml165
-rw-r--r--cdap/demo_blueprints/cdap_hello_world_with_laika.yaml97
-rw-r--r--cdap/demo_blueprints/cdap_hello_world_with_mr.yaml151
5 files changed, 0 insertions, 502 deletions
diff --git a/cdap/demo_blueprints/cdap_hello_world.yaml b/cdap/demo_blueprints/cdap_hello_world.yaml
deleted file mode 100644
index e154cf7..0000000
--- a/cdap/demo_blueprints/cdap_hello_world.yaml
+++ /dev/null
@@ -1,68 +0,0 @@
-# ================================================================================
-# Copyright (c) 2017-2018 AT&T Intellectual Property. All rights reserved.
-# ================================================================================
-# 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=========================================================
-#
-# ECOMP is a trademark and service mark of AT&T Intellectual Property.
-tosca_definitions_version: cloudify_dsl_1_3
-
-imports:
- - http://www.getcloudify.org/spec/cloudify/3.4/types.yaml
- - {{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2 }}/type_files/cdap/14.2.5/cdap_types.yaml
- - {{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2 }}/type_files/dcaepolicy/1.0.0/node-type.yaml
-
-inputs:
- hello_world_jar_url:
- type: string
- connected_broker_dns_name:
- type: string
- default : "cdap_broker"
-
-node_templates:
- hw_app_policy_test:
- type: dcae.nodes.policy
- properties:
- policy_id : DCAE_alex.Config_test_cdap_policy
-
- hw_cdap_app:
- type: dcae.nodes.MicroService.cdap
- properties:
- service_component_type:
- 'hello_world'
- jar_url: { get_input : hello_world_jar_url }
- artifact_name: "HelloWorld"
- artifact_version: "3.4.3"
- namespace: "cloudifyhwtest"
- programs:
- [{"program_type" : "flows", "program_id" : "WhoFlow"}, {"program_type" : "services", "program_id" : "Greeting"}]
- streamname:
- 'who'
- service_endpoints:
- [{"service_name" : "Greeting", "service_endpoint" : "greet", "endpoint_method" : "GET"}]
- app_config: {"foo" : "you should never see this; it should be overwritten by policy"}
- app_preferences: {"foo_updated" : "you should never see this; it should be overwritten by policy"}
-
- interfaces:
- cloudify.interfaces.lifecycle:
- create:
- inputs:
- connected_broker_dns_name: { get_input: connected_broker_dns_name }
- relationships:
- - target: hw_app_policy_test
- type: cloudify.relationships.depends_on
-
-outputs:
- hw_cdap_app_name:
- value:
- {get_attribute:[hw_cdap_app, service_component_name]}
diff --git a/cdap/demo_blueprints/cdap_hello_world_reconfigure.sh b/cdap/demo_blueprints/cdap_hello_world_reconfigure.sh
deleted file mode 100755
index 7731160..0000000
--- a/cdap/demo_blueprints/cdap_hello_world_reconfigure.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-# ================================================================================
-# Copyright (c) 2017-2018 AT&T Intellectual Property. All rights reserved.
-# ================================================================================
-# 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=========================================================
-#
-# ECOMP is a trademark and service mark of AT&T Intellectual Property.
-#!/bin/bash
-cfy executions start -d cdap_hello_world -w execute_operation -p '{"operation" : "reconfiguration.app_config_reconfigure", "node_ids" : ["hw_cdap_app"], "operation_kwargs" : {"new_config_template" : {"foo":"bar-manual-update"}}, "allow_kwargs_override": true}'
-cfy executions start -d cdap_hello_world -w execute_operation -p '{"operation" : "reconfiguration.app_preferences_reconfigure", "node_ids" : ["hw_cdap_app"], "operation_kwargs" : {"new_config_template" : {"foo_updated":"foo-pref-manual-update"}}, "allow_kwargs_override": true}'
-cfy executions start -d cdap_hello_world -w execute_operation -p '{"operation" : "reconfiguration.app_smart_reconfigure", "node_ids" : ["hw_cdap_app"], "operation_kwargs" : {"new_config_template" : {"foo_updated":"SO SMARTTTTTT", "foo":"SO SMART AGAINNNNN"}}, "allow_kwargs_override": true}'
diff --git a/cdap/demo_blueprints/cdap_hello_world_with_dmaap.yaml b/cdap/demo_blueprints/cdap_hello_world_with_dmaap.yaml
deleted file mode 100644
index 11c6f75..0000000
--- a/cdap/demo_blueprints/cdap_hello_world_with_dmaap.yaml
+++ /dev/null
@@ -1,165 +0,0 @@
-# ================================================================================
-# Copyright (c) 2017-2018 AT&T Intellectual Property. All rights reserved.
-# ================================================================================
-# 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=========================================================
-#
-# ECOMP is a trademark and service mark of AT&T Intellectual Property.
-tosca_definitions_version: cloudify_dsl_1_3
-
-imports:
- - http://www.getcloudify.org/spec/cloudify/3.4/types.yaml
- - {{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2 }}/type_files/dmaap/1.1.0/dmaap.yaml
- - {{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2 }}/type_files/cdap/14.2.5/cdap_types.yaml
-
-inputs:
- hello_world_jar_url:
- type: string
- connected_broker_dns_name:
- type: string
- default : "cdap_broker"
-
- #aaf inputs
- client_role:
- type: string
- topic00fqtn:
- type: string
- topic01fqtn:
- type: string
- aafu0:
- type: string
- default: "foo0"
- aafp0:
- type: string
- default: "bar0"
- aafu1:
- type: string
- default : "foo1"
- aafp1:
- type: string
- default : "bar1"
- aafu2:
- type: string
- default: "foo2"
- aafp2:
- type: string
- default: "bar2"
- aafu3:
- type: string
- default : "foo3"
- aafp3:
- type: string
- default : "bar3"
-
-node_templates:
- topic00:
- type: dcae.nodes.ExistingTopic
- properties:
- fqtn: { get_input : topic00fqtn }
- topic01:
- type: dcae.nodes.ExistingTopic
- properties:
- fqtn: { get_input : topic01fqtn }
- feed00:
- type: dcae.nodes.Feed
- properties:
- feed_name: "FEEDME-12"
- feed_description: "Tommy Test feed for CDAP Publishes"
- feed_version: 6.6.6
- aspr_classification: "unclassified"
-
- hw_cdap_app:
- type: dcae.nodes.MicroService.cdap
- properties:
- service_component_type: 'hello_world'
- jar_url: { get_input : hello_world_jar_url }
- artifact_name: "HelloWorld"
- artifact_version: "3.4.3"
- namespace: "cloudifyhwtest"
- programs:
- [{"program_type" : "flows", "program_id" : "WhoFlow"}, {"program_type" : "services", "program_id" : "Greeting"}]
- streamname:
- 'who'
- service_endpoints:
- [{"service_name" : "Greeting", "service_endpoint" : "greet", "endpoint_method" : "GET"}]
-
- #special key for CDAP plugin
- connections:
- streams_publishes:
- - name: topic00 #MR pub 1
- location: mtc5
- client_role: { get_input: client_role }
- type: message_router
- config_key: "myconfigkey0"
- aaf_username: { get_input: aafu0 }
- aaf_password: { get_input: aafp0 }
- - name: topic01 #MR pub 2
- location: mtc5
- client_role: { get_input: client_role }
- type: message_router
- config_key: "myconfigkey1"
- aaf_username: { get_input: aafu1 }
- aaf_password: { get_input: aafp1 }
- - name: feed00 #Feed pub 1
- location: mtc5
- type: data_router
- config_key: "mydrconfigkey"
- streams_subscribes:
- - name: topic00 #MEANT FOR DEMO ONLY! Subscribing and publishing to same topic. Not real example.
- location: mtc5
- client_role: { get_input: client_role }
- type: message_router
- config_key: "myconfigkey2"
- aaf_username: { get_input: aafu2 }
- aaf_password: { get_input: aafp2 }
- - name: topic01
- location: mtc5
- client_role: { get_input: client_role }
- type: message_router
- config_key: "myconfigkey3"
- aaf_username: { get_input: aafu3 }
- aaf_password: { get_input: aafp3 }
-
- relationships:
- - type: dcae.relationships.publish_events
- target: topic00 #MEANT FOR DEMO ONLY! Subscribing and publishing to same topic. Not real example.
- - type: dcae.relationships.publish_events
- target: topic01
- - type: dcae.relationships.subscribe_to_events
- target: topic00
- - type: dcae.relationships.subscribe_to_events
- target: topic01
- - type: dcae.relationships.publish_files
- target: feed00
-
- interfaces:
- cloudify.interfaces.lifecycle:
- create:
- inputs:
- connected_broker_dns_name: { get_input: connected_broker_dns_name }
-
-outputs:
- hw_cdap_app_name:
- value: {get_attribute:[hw_cdap_app, service_component_name]}
-
- topic00_data:
- description: "Topic 00 data"
- value: { get_attribute: [hw_cdap_app, topic00]}
-
- topic01_data:
- description: "Topic 01 data"
- value: { get_attribute: [hw_cdap_app, topic01]}
-
-
-
-
diff --git a/cdap/demo_blueprints/cdap_hello_world_with_laika.yaml b/cdap/demo_blueprints/cdap_hello_world_with_laika.yaml
deleted file mode 100644
index fc84f8b..0000000
--- a/cdap/demo_blueprints/cdap_hello_world_with_laika.yaml
+++ /dev/null
@@ -1,97 +0,0 @@
-# ================================================================================
-# Copyright (c) 2017-2018 AT&T Intellectual Property. All rights reserved.
-# ================================================================================
-# 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=========================================================
-#
-# ECOMP is a trademark and service mark of AT&T Intellectual Property.
-tosca_definitions_version: cloudify_dsl_1_3
-
-imports:
- - http://www.getcloudify.org/spec/cloudify/3.4/types.yaml
- - {{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2 }}/type_files/cdap/14.2.5/cdap_types.yaml
- - {{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2 }}/type_files/docker/2.3.0/node-type.yaml
- - {{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2 }}/type_files/relationship/1.0.0/node-type.yaml
-
-inputs:
- hello_world_jar_url:
- type: string
- laika_image:
- type: string
- connected_broker_dns_name:
- type: string
- default : "cdap_broker"
-
-node_templates:
-
- hw_cdap_app:
- type: dcae.nodes.MicroService.cdap
- properties:
- service_component_type:
- 'hello_world'
- jar_url: { get_input : hello_world_jar_url }
- artifact_name: "HelloWorld"
- artifact_version: "3.4.3"
- namespace: "cloudifyhwtest"
- programs:
- [{"program_type" : "flows", "program_id" : "WhoFlow"}, {"program_type" : "services", "program_id" : "Greeting"}]
- streamname:
- 'who'
- service_endpoints:
- [{"service_name" : "Greeting", "service_endpoint" : "greet", "endpoint_method" : "GET"}]
-
- connections:
- services_calls:
- - service_component_type: laika
- config_key: "laika_handle"
-
- relationships:
- - type: dcae.relationships.component_connected_to
- target: laika-one
-
- interfaces:
- cloudify.interfaces.lifecycle:
- create:
- inputs:
- connected_broker_dns_name: { get_input: connected_broker_dns_name }
-
- laika-one:
- type: dcae.nodes.DockerContainerForComponents
- properties:
- service_component_type: 'laika'
- service_id: 'this_is_dumb'
- location_id: 'this_is_dumb'
- image: { get_input : laika_image }
- # Trying without health check
- relationships:
- - type: dcae.relationships.component_contained_in
- target: docker_host
- interfaces:
- cloudify.interfaces.lifecycle:
- stop:
- inputs:
- cleanup_image:
- False
-
- docker_host:
- type: dcae.nodes.SelectedDockerHost
- properties:
- location_id: 'this is dumb'
- docker_host_override: 'platform_dockerhost'
-
-outputs:
- hw_cdap_app_name:
- value: {get_attribute:[hw_cdap_app, service_component_name]}
-
-
-
diff --git a/cdap/demo_blueprints/cdap_hello_world_with_mr.yaml b/cdap/demo_blueprints/cdap_hello_world_with_mr.yaml
deleted file mode 100644
index f52edad..0000000
--- a/cdap/demo_blueprints/cdap_hello_world_with_mr.yaml
+++ /dev/null
@@ -1,151 +0,0 @@
-# ================================================================================
-# Copyright (c) 2017-2018 AT&T Intellectual Property. All rights reserved.
-# ================================================================================
-# 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=========================================================
-#
-# ECOMP is a trademark and service mark of AT&T Intellectual Property.
-tosca_definitions_version: cloudify_dsl_1_3
-
-imports:
- - http://www.getcloudify.org/spec/cloudify/3.4/types.yaml
- - {{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2 }}/type_files/cdap/14.2.5/cdap_types.yaml
- - {{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2 }}/type_files/dmaap/1.1.0/dmaap.yaml
-
-inputs:
- hello_world_jar_url:
- type: string
- connected_broker_dns_name:
- type: string
- default : "cdap_broker"
-
- #aaf inputs
- client_role:
- type: string
- topic00fqtn:
- type: string
- topic01fqtn:
- type: string
- aafu0:
- type: string
- default: "foo0"
- aafp0:
- type: string
- default: "bar0"
- aafu1:
- type: string
- default : "foo1"
- aafp1:
- type: string
- default : "bar1"
- aafu2:
- type: string
- default: "foo2"
- aafp2:
- type: string
- default: "bar2"
- aafu3:
- type: string
- default : "foo3"
- aafp3:
- type: string
- default : "bar3"
-
-node_templates:
- topic00:
- type: dcae.nodes.ExistingTopic
- properties:
- fqtn: { get_input : topic00fqtn }
-
- topic01:
- type: dcae.nodes.ExistingTopic
- properties:
- fqtn: { get_input : topic01fqtn }
-
- hw_cdap_app:
- type: dcae.nodes.MicroService.cdap
- properties:
- service_component_type:
- 'hello_world'
- jar_url: { get_input : hello_world_jar_url }
- artifact_name: "HelloWorld"
- artifact_version: "3.4.3"
- namespace: "cloudifyhwtest"
- programs:
- [{"program_type" : "flows", "program_id" : "WhoFlow"}, {"program_type" : "services", "program_id" : "Greeting"}]
- streamname:
- 'who'
- service_endpoints:
- [{"service_name" : "Greeting", "service_endpoint" : "greet", "endpoint_method" : "GET"}]
-
- #special key for CDAP plugin
- connections:
- streams_publishes:
- - name: topic00 #MR pub 1
- location: mtc5
- client_role: { get_input: client_role }
- type: message_router
- config_key: "myconfigkey0"
- aaf_username: { get_input: aafu0 }
- aaf_password: { get_input: aafp0 }
- - name: topic01 #MR pub 2
- location: mtc5
- client_role: { get_input: client_role }
- type: message_router
- config_key: "myconfigkey1"
- aaf_username: { get_input: aafu1 }
- aaf_password: { get_input: aafp1 }
- streams_subscribes:
- - name: topic00 #MEANT FOR DEMO ONLY! Subscribing and publishing to same topic. Not real example.
- location: mtc5
- client_role: { get_input: client_role }
- type: message_router
- config_key: "myconfigkey2"
- aaf_username: { get_input: aafu2 }
- aaf_password: { get_input: aafp2 }
- - name: topic01
- location: mtc5
- client_role: { get_input: client_role }
- type: message_router
- config_key: "myconfigkey3"
- aaf_username: { get_input: aafu3 }
- aaf_password: { get_input: aafp3 }
-
- relationships:
- - type: dcae.relationships.publish_events
- target: topic00 #MEANT FOR DEMO ONLY! Subscribing and publishing to same topic. Not real example.
- - type: dcae.relationships.publish_events
- target: topic01
- - type: dcae.relationships.subscribe_to_events
- target: topic00
- - type: dcae.relationships.subscribe_to_events
- target: topic01
-
- interfaces:
- cloudify.interfaces.lifecycle:
- create:
- inputs:
- connected_broker_dns_name: { get_input: connected_broker_dns_name }
-
-outputs:
- hw_cdap_app_name:
- value: {get_attribute:[hw_cdap_app, service_component_name]}
-
- topic00_data:
- description: "Topic 00 data"
- value: { get_attribute: [hw_cdap_app, topic00]}
-
- topic01_data:
- description: "Topic 01 data"
- value: { get_attribute: [hw_cdap_app, topic01]}
-