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