Add external tls info to bpgenerator and component spec schema
[dcaegen2/platform.git] / mod / bpgenerator / TestCases / TlsInfo / blueprint_withTlsFalseAndExternalTlsFalse.yaml
1
2 #description: Test component spec
3 #blueprint_version: 1.0.1
4 ---
5 tosca_definitions_version: cloudify_dsl_1_3
6 imports:
7 - http://www.getcloudify.org/spec/cloudify/3.4/types.yaml
8 - https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R6/k8splugin/1.7.2/k8splugin_types.yaml
9 - https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R6/dcaepolicyplugin/2.4.0/dcaepolicyplugin_types.yaml
10 inputs:
11   always_pull_image:
12     type: boolean
13     description: Set to true if the image should always be pulled
14     default: true
15   envs:
16     default: {}
17   external_cert_ca_name:
18     type: string
19     description: Name of Certificate Authority configured on CertService side.
20     default: "RA"
21   external_cert_cert_type:
22     type: string
23     description: Format of provided certificates
24     default: "P12"
25   external_cert_common_name:
26     type: string
27     description: Common name which should be present in certificate.
28     default: "sample.onap.org"
29   external_cert_sans:
30     type: string
31     description: "List of Subject Alternative Names (SANs) which should be present
32       in certificate. Delimiter - : Should contain common_name value and other FQDNs
33       under which given component is accessible."
34     default: "sample.onap.org:component.sample.onap.org"
35   external_cert_use_external_tls:
36     type: boolean
37     description: Flag to indicate external tls enable/disable.
38     default: false
39   external_port_0:
40     type: string
41     default: "80"
42   external_port_1:
43     type: string
44     default: "99"
45   image:
46     type: string
47     default: "test.tester"
48   location_id:
49     type: string
50     default: ""
51   replicas:
52     type: integer
53     description: number of instances
54     default: 1
55   service_component_name_override:
56     type: string
57     default: ""
58   test.component.spec_cpu_limit:
59     type: string
60     default: "250m"
61   test.component.spec_cpu_request:
62     type: string
63     default: "250m"
64   test.component.spec_memory_limit:
65     type: string
66     default: "128Mi"
67   test.component.spec_memory_request:
68     type: string
69     default: "128Mi"
70   use_tls:
71     type: boolean
72     description: flag to indicate tls enable/disable
73     default: false
74 node_templates:
75   test.component.spec:
76     type: dcae.nodes.ContainerizedServiceComponent
77     interfaces:
78       cloudify.interfaces.lifecycle:
79         start:
80           inputs:
81             ports:
82             - concat: ["80:", {get_input: external_port_0}]
83             - concat: ["99:", {get_input: external_port_1}]
84             envs:
85               get_input: envs
86     properties:
87       application_config:
88         service_calls: []
89         streams_publishes: {}
90         streams_subscribes: {}
91         service_component_name_override:
92           get_input: service_component_name_override
93       docker_config:
94         healthcheck:
95           interval: 300s
96           timeout: 120s
97           script: /etc/init.d/nagios status
98           type: docker
99       image:
100         get_input: image
101       location_id:
102         get_input: location_id
103       service_component_type: test-component-spec
104       replicas:
105         get_input: replicas
106       tls_info:
107         cert_directory: /opt/app/dcae-certificate/
108         use_tls:
109           get_input: use_tls
110       external_cert:
111         external_cert_directory: /opt/app/dcae-certificate/
112         use_external_tls:
113           get_input: external_cert_use_external_tls
114         ca_name:
115           get_input: external_cert_ca_name
116         cert_type:
117           get_input: external_cert_cert_type
118         external_certificate_parameters:
119           common_name:
120             get_input: external_cert_common_name
121           sans:
122             get_input: external_cert_sans
123       resource_config:
124         limits:
125           cpu:
126             get_input: test.component.spec_cpu_limit
127           memory:
128             get_input: test.component.spec_memory_limit
129         requests:
130           cpu:
131             get_input: test.component.spec_cpu_request
132           memory:
133             get_input: test.component.spec_memory_request
134       always_pull_image:
135         get_input: always_pull_image
136     relationships: []