Krzysztof Kuzmicki | 590d66f | 2020-10-07 09:23:18 +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' |
| 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.simulators.pnfsimulator: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: 'pnf-simulator' |
| 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: 'pnf-simulator' |
| 32 | external_cert_use_external_tls: |
| 33 | type: boolean |
| 34 | description: Flag to indicate external tls enable/disable. |
| 35 | default: true |
| 36 | node_templates: |
| 37 | pnf-simulator: |
| 38 | type: dcae.nodes.ContainerizedServiceComponent |
| 39 | interfaces: |
| 40 | cloudify.interfaces.lifecycle: |
| 41 | start: |
| 42 | inputs: |
| 43 | ports: |
| 44 | - '5000:0' |
| 45 | properties: |
| 46 | service_component_type: pnf-simulator |
| 47 | service_component_name_override: pnf-simulator |
| 48 | image: { get_input: tag_version } |
| 49 | replicas: { get_input: replicas } |
| 50 | always_pull_image: true |
| 51 | tls_info: |
| 52 | cert_directory: '/app/store/' |
| 53 | external_cert: |
| 54 | external_cert_directory: '/app/store/' |
| 55 | use_external_tls: |
| 56 | get_input: external_cert_use_external_tls |
| 57 | cert_type: |
| 58 | get_input: external_cert_cert_type |
| 59 | ca_name: |
| 60 | get_input: external_cert_ca_name |
| 61 | external_certificate_parameters: |
| 62 | common_name: |
| 63 | get_input: external_cert_common_name |
| 64 | sans: |
| 65 | get_input: external_cert_sans |