-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdeploy_on_from_private_repo.yaml
62 lines (51 loc) · 1.87 KB
/
deploy_on_from_private_repo.yaml
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
tosca_definitions_version: cloudify_dsl_1_4
imports:
- https://cloudify.co/spec/cloudify/6.4.0/types.yaml
inputs:
main_file_name:
type: string
default: blueprint.yaml
blueprint_archive:
type: string
default: https://raw.githubusercontent.com/Cloudify-PS/exl-vault-poc/main/example_blueprint_to_install.zip
blueprint_id:
type: string
default: example
trust_all:
type: boolean
description: Trust all
default: True
cloudify_password_secret_name:
default: admin_password
name_of_submanager_secret:
default: test
node_templates:
matched_environment:
type: cloudify.nodes.Component
properties:
client:
host: { get_environment_capability: cloudify_manager_endpoint }
username: { get_environment_capability: cloudify_manager_username }
password: { get_secret: { get_input: cloudify_password_secret_name } }
tenant: { get_environment_capability: cloudify_manager_tenant }
port: { get_environment_capability: cloudify_manager_port }
protocol: { get_environment_capability: cloudify_manager_protocol }
trust_all: { get_input: trust_all}
resource_config:
blueprint:
id: { get_input: blueprint_id }
main_file_name: { get_input: main_file_name }
external_resource: false
blueprint_archive:
concat:
- { string_split: [{ get_input: blueprint_archive}, '//', 0 ]}
- '//'
- { get_secret: github_user }
- ':'
- { get_secret: github_token }
- '@'
- { string_split: [{ get_input: blueprint_archive}, '//', 1 ]}
deployment:
id: { get_input: blueprint_id }
inputs:
secret_key: { get_input: name_of_submanager_secret }