-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmultinetworks-openstack-aws.yaml
161 lines (139 loc) · 4.82 KB
/
multinetworks-openstack-aws.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
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
tosca_definitions_version: cloudify_dsl_1_3
imports:
- http://www.getcloudify.org/spec/cloudify/5.0.0/types.yaml
- plugin:cloudify-openstack-plugin?version= >=3
- plugin:cloudify-aws-plugin
inputs:
openstack-external-network:
type: string
description: >
the openstack network name or Id to connect for external management
default: { get_secret: openstack-external-network }
centos-image-id:
type: string
description: >
centos image ID on private cloud
default: { get_secret: centos_image_id }
centos-flavor-id:
type: string
description: >
centos flavor ID on private cloud
default: { get_secret: centos_flavor_id }
keystone-region:
type: string
description: >
openstack region
default: { get_secret: keystone_region}
ec2_region_name1:
type: string
description: >
AWS region name
default: eu-central-1
ec2_region_endpoint1:
type: string
description: >
AWS region endpoint
default: eu-central-1
ec2_availability_zone1:
type: string
description: >
AWS Availability zone
default: eu-central-1b
ec2_region_name2:
type: string
description: >
AWS region name
default: us-west-2
ec2_region_endpoint2:
type: string
description: >
AWS region endpoint
default: us-west-2
ec2_availability_zone2:
type: string
description: >
AWS Availability zone
default: us-west-2c
node_templates:
aws-network-1:
type: cloudify.nodes.ServiceComponent
properties:
resource_config:
blueprint:
external_resource: false
id: aws-network-bp
blueprint_archive: https://github.com/cloudify-community/blueprint-examples/releases/download/4.5.5-18/aws-example-network.zip
main_file_name: blueprint.yaml
deployment:
id:
concat:
- "aws-network-"
- { get_input: ec2_region_endpoint1 }
inputs:
region_name: { get_input: [ ec2_region_name1 ] }
ec2_region_endpoint: { get_input: [ ec2_region_endpoint1 ] }
availability_zone: { get_input: [ ec2_availability_zone1 ] }
auto_inc_suffix: false
aws-network-2:
type: cloudify.nodes.ServiceComponent
properties:
resource_config:
blueprint:
external_resource: true
id: aws-network-bp
blueprint_archive: https://github.com/cloudify-community/blueprint-examples/releases/download/4.5.5-18/aws-example-network.zip
main_file_name: blueprint.yaml
deployment:
id:
concat:
- "aws-network-"
- { get_input: ec2_region_endpoint2 }
inputs:
region_name: { get_input: [ ec2_region_name2 ] }
ec2_region_endpoint: { get_input: [ ec2_region_endpoint2 ] }
availability_zone: { get_input: [ ec2_availability_zone2 ] }
auto_inc_suffix: false
relationships:
- type: cloudify.relationships.connected_to
target: aws-network-1
openstack-network:
type: cloudify.nodes.ServiceComponent
properties:
resource_config:
blueprint:
external_resource: false
id: openstack-network-bp
blueprint_archive: https://github.com/cloudify-community/blueprint-examples/releases/download/4.5.5-18/openstack-example-network.zip
main_file_name: blueprint.yaml
deployment:
id: openstack-network-hub
auto_inc_suffix: false
inputs:
external_network_id: { get_input: [ openstack-external-network ] }
capabilities:
vpc_1:
description: VPC IP of endpoint 1
value: { get_attribute: [ aws-network-1, vpc, aws_resource_id] }
public_subnet_id_1:
value: { get_attribute: [ aws-network-1, public_subnet, aws_resource_id ] }
private_subnet_id_1:
value: { get_attribute: [ aws-network-1, private_subnet, aws_resource_id ] }
vpc_2:
description: VPC IP of endpoint 2
value: { get_attribute: [ aws-network-2, vpc, aws_resource_id] }
public_subnet_id_2:
value: { get_attribute: [ aws-network-2, public_subnet, aws_resource_id ] }
private_subnet_id_2:
value: { get_attribute: [ aws-network-2, private_subnet, aws_resource_id ] }
openstack_external_network:
value: { get_attribute: [ openstack-network, external-network, id ] }
openstack_public_network_router:
value: { get_attribute: [ openstack-network, public-network-router, id ] }
openstack_public_network:
value: { get_attribute: [ openstack-network, public-network, id ] }
openstack_private_network:
value: { get_attribute: [ openstack-network, private-network, id ] }
openstack_public_subnet:
value: { get_attribute: [ openstack-network, public-subnet, id ] }
openstack_private_subnet:
value: { get_attribute: [ openstack-network, private-subnet, id ] }