-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblueprint.yaml
107 lines (93 loc) · 3.3 KB
/
blueprint.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
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
tosca_definitions_version: cloudify_dsl_1_3
imports:
- http://cloudify.co/spec/cloudify/5.0.0/types.yaml
- plugin:cloudify-azure-plugin
inputs:
azure_config:
description: >
Parameters for connecting to Azure.
type: cloudify.datatypes.azure.Config
default:
subscription_id: { get_secret: default_azure_subscription_id }
tenant_id: { get_secret: default_azure_tenant_id }
client_id: { get_secret: default_azure_client_id }
client_secret: { get_secret: default_azure_client_secret }
azure_location:
description: >
Azure Location code for creating resources.
type: string
default: { get_secret: default_azure_location }
resource_name_prefix:
description: >
Prefix to prepend to resource names.
type: string
resource_group_name:
description: >
Name of resource group to create for the deployment.
type: string
cfy_resource_group_name:
description: >
Name of resource group where the Cloudify Manager virtual network
is located.
type: string
default: { get_secret: default_azure_cfy_resource_group_name }
cfy_vnet_name:
description: >
Name of virtual network to create our subnet in.
This virtual network is expected to exist already - for this demo,
Cloudify Manager and the new VM share the same virtual network.
type: string
default: { get_secret: default_azure_cfy_vnet_name }
cfy_subnet_name:
description: >
Name of subnet to which Cloudify Manager is connected. The new VM
will have a leg in this subnet.
type: string
default: { get_secret: default_azure_cfy_subnet_name }
ssh_user:
type: string
default: { get_secret: default_linux_agent_user }
public_key_data:
description: >
SSH public key to inject to the VM's authorized_keys file.
type: string
default: { get_secret: default_public_key_data }
private_key_path:
description: >
Path, on Cloudify Manager, to the private key used to SSH to
the new VM. This is used in order to install the agent.
type: string
default: { get_secret: default_private_key_path }
node_templates:
deployment:
type: cloudify.azure.Deployment
properties:
azure_config: { get_input: azure_config }
location: { get_input: azure_location }
name: { get_input: resource_group_name }
params:
location: { get_input: azure_location }
resource_name_prefix: { get_input: resource_name_prefix }
cfy_resource_group_name: { get_input: cfy_resource_group_name }
cfy_vnet_name: { get_input: cfy_vnet_name }
cfy_subnet_name: { get_input: cfy_subnet_name }
public_key_data: { get_input: public_key_data }
template_file: 'templates/vm-with-jboss-ports.json'
vm:
type: cloudify.nodes.Compute
properties:
ip: { get_attribute: [ deployment, outputs, private_ip, value ] }
agent_config:
install_method: none
relationships:
- type: cloudify.relationships.depends_on
target: deployment
capabilities:
private_ip:
value: { get_attribute: [ deployment, outputs, private_ip, value ] }
public_ip:
value: { get_attribute: [ deployment, outputs, public_ip, value ] }
ssh_user:
value: { get_input: ssh_user }
private_key_path:
value: { get_input: private_key_path }