Krzysztof Kuzmicki | 0fa522a | 2021-04-12 11:47:19 +0200 | [diff] [blame^] | 1 | tosca_definitions_version: cloudify_dsl_1_3 |
| 2 | imports: |
| 3 | - 'http://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml' |
| 4 | - 'plugin:k8splugin?version=>=3.4.2,<4.0.0' |
| 5 | inputs: |
| 6 | tag_version: |
| 7 | type: string |
| 8 | description: Docker image to be used |
| 9 | default: 'nexus3.onap.org:10001/onap/org.onap.integration.nfsimulator.vesclient:latest' |
| 10 | replicas: |
| 11 | type: integer |
| 12 | description: Number of instances |
| 13 | default: 1 |
| 14 | external_cert_cert_type: |
| 15 | type: string |
| 16 | description: Output type |
| 17 | default: 'P12' |
| 18 | external_cert_ca_name: |
| 19 | type: string |
| 20 | description: Name of Certificate Authority configured on CertService side. |
| 21 | default: 'RA' |
| 22 | external_cert_common_name: |
| 23 | type: string |
| 24 | description: Common name which should be present in certificate. |
| 25 | default: 'ves-client' |
| 26 | external_cert_sans: |
| 27 | type: string |
| 28 | description: 'List of Subject Alternative Names (SANs) which should be present |
| 29 | in certificate. Delimiter - , Should contain common_name value and other FQDNs |
| 30 | under which given component is accessible.' |
| 31 | default: 'ves-client' |
| 32 | external_cert_use_external_tls: |
| 33 | type: boolean |
| 34 | description: Flag to indicate external tls enable/disable. |
| 35 | default: true |
| 36 | service_component_type: |
| 37 | type: string |
| 38 | default: "ves-client" |
| 39 | service_component_name_override: |
| 40 | type: string |
| 41 | default: "ves-client" |
| 42 | node_templates: |
| 43 | ves-client: |
| 44 | type: dcae.nodes.ContainerizedServiceComponent |
| 45 | interfaces: |
| 46 | cloudify.interfaces.lifecycle: |
| 47 | start: |
| 48 | inputs: |
| 49 | envs: |
| 50 | STRICT_HOSTNAME_VERIFICATION: 'true' |
| 51 | MONGO_HOSTNAME: |
| 52 | concat: ["mongo-", {get_input: service_component_name_override}] |
| 53 | ports: |
| 54 | - '5000:0' |
| 55 | properties: |
| 56 | service_component_type: { get_input: service_component_type } |
| 57 | service_component_name_override: { get_input: service_component_name_override } |
| 58 | image: { get_input: tag_version } |
| 59 | replicas: { get_input: replicas } |
| 60 | always_pull_image: true |
| 61 | tls_info: |
| 62 | cert_directory: '/app/store/' |
| 63 | external_cert: |
| 64 | external_cert_directory: '/app/store/' |
| 65 | use_external_tls: |
| 66 | get_input: external_cert_use_external_tls |
| 67 | cert_type: |
| 68 | get_input: external_cert_cert_type |
| 69 | ca_name: |
| 70 | get_input: external_cert_ca_name |
| 71 | external_certificate_parameters: |
| 72 | common_name: |
| 73 | get_input: external_cert_common_name |
| 74 | sans: |
| 75 | get_input: external_cert_sans |