-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathblueprint-osp-vm-solution.yaml
90 lines (76 loc) · 2.62 KB
/
blueprint-osp-vm-solution.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
tosca_definitions_version: cloudify_dsl_1_3
imports:
- https://cloudify.co/spec/cloudify/5.1.0/types.yaml
- plugin:cloudify-openstack-plugin?version= >=3.0.0
inputs:
user_domain_name:
default: default
project_domain_name:
default: default
dsl_definitions:
openstack_config: &openstack_config
username: { get_secret: keystone_username }
password: { get_secret: keystone_password }
tenant_name: { get_secret: keystone_tenant_name }
auth_url: { get_secret: keystone_url }
region_name: { get_secret: keystone_region }
user_domain_name: { get_input: user_domain_name }
project_domain_name: { get_input: project_domain_name }
node_templates:
FrontEnd:
type: cloudify.nodes.openstack.Server
properties:
client_config: *openstack_config
image: { get_secret: centos_core_image }
flavor: { get_secret: small_image_flavor }
agent_config:
install_method: none
relationships:
- target: frontend_host_port
type: cloudify.relationships.openstack.server_connected_to_port
BackEnd:
type: cloudify.nodes.openstack.Server
properties:
client_config: *openstack_config
image: { get_secret: centos_core_image }
flavor: { get_secret: small_image_flavor }
agent_config:
install_method: none
relationships:
- target: backend_host_port
type: cloudify.relationships.openstack.server_connected_to_port
frontend_host_port:
type: cloudify.nodes.openstack.Port
properties:
client_config: *openstack_config
relationships:
- type: cloudify.relationships.contained_in
target: private_network
- type: cloudify.relationships.depends_on
target: private_subnet
backend_host_port:
type: cloudify.nodes.openstack.Port
properties:
client_config: *openstack_config
relationships:
- type: cloudify.relationships.contained_in
target: private_network
- type: cloudify.relationships.depends_on
target: private_subnet
private_subnet:
type: cloudify.nodes.openstack.Subnet
properties:
client_config: *openstack_config
use_external_resource: true
resource_config:
id: { get_secret: private_subnet_name }
relationships:
- type: cloudify.relationships.contained_in
target: private_network
private_network:
type: cloudify.nodes.openstack.Network
properties:
client_config: *openstack_config
use_external_resource: true
resource_config:
id: { get_secret: private_network_name }