forked from cloudify-cosmo/cloudify-cloudstack-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.yaml
369 lines (343 loc) · 14.7 KB
/
plugin.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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
###############################################################################
# Cloudify cloudstack built in types and plugins definitions.
###############################################################################
plugins:
cloudstack:
executor: central_deployment_agent
source: https://github.com/cloudify-cosmo/cloudify-cloudstack-plugin/archive/1.3.zip
package_name: cloudify-cloudstack-plugin
package_version: '1.3'
node_types:
cloudify.cloudstack.nodes.VirtualMachine:
derived_from: cloudify.nodes.Compute
properties:
server: {}
portmaps:
default: {}
network:
default: {}
use_external_resource:
default: false
resource_id:
default: ''
management_network_name:
default: ''
cloudstack_config:
default: {}
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: cloudstack.cloudstack_plugin.virtual_machine.create
inputs: {}
start:
implementation: cloudstack.cloudstack_plugin.virtual_machine.start
inputs: {}
stop:
implementation: cloudstack.cloudstack_plugin.virtual_machine.stop
inputs: {}
delete:
implementation: cloudstack.cloudstack_plugin.virtual_machine.delete
inputs: {}
cloudify.interfaces.host:
get_state:
implementation: cloudstack.cloudstack_plugin.virtual_machine.get_state
inputs: {}
cloudify.cloudstack.nodes.WindowsServer:
derived_from: cloudify.cloudstack.nodes.VirtualMachine
interfaces:
cloudify.interfaces.worker_installer:
install:
implementation: agent.windows_agent_installer.tasks.install
inputs: {}
start:
implementation: agent.windows_agent_installer.tasks.start
stop:
implementation: agent.windows_agent_installer.tasks.stop
inputs: {}
uninstall:
implementation: agent.windows_agent_installer.tasks.uninstall
inputs: {}
restart:
implementation: agent.windows_agent_installer.tasks.restart
inputs: {}
cloudify.interfaces.plugin_installer:
install:
implementation: agent.windows_plugin_installer.tasks.install
inputs: {}
cloudify.cloudstack.nodes.Network:
derived_from: cloudify.nodes.Subnet
properties:
network:
default: {}
firewall:
default: {}
use_external_resource:
default: false
resource_id:
default: ''
cloudstack_config:
default: {}
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: cloudstack.cloudstack_plugin.network.create
inputs: {}
delete:
implementation: cloudstack.cloudstack_plugin.network.delete
inputs: {}
cloudify.cloudstack.nodes.VPC:
derived_from: cloudify.nodes.Network
properties:
network:
default: {}
firewall:
default: {}
use_external_resource:
default: false
resource_id:
default: ''
cloudstack_config:
default: {}
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: cloudstack.cloudstack_plugin.vpc.create
inputs: {}
delete:
implementation: cloudstack.cloudstack_plugin.vpc.delete
inputs: {}
cloudify.cloudstack.nodes.SecurityGroup:
derived_from: cloudify.nodes.SecurityGroup
properties:
security_group:
default: {}
use_external_resource:
default: false
resource_id:
default: ''
cloudstack_config:
default: {}
rules:
default: []
disable_default_egress_rules:
default: false
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: cloudstack.cloudstack_plugin.security_group.create
inputs: {}
delete:
implementation: cloudstack.cloudstack_plugin.security_group.delete
inputs: {}
cloudify.cloudstack.nodes.FloatingIP:
derived_from: cloudify.nodes.VirtualIP
properties:
floatingip:
default: {}
use_external_resource:
default: false
resource_id:
default: ''
cloudstack_config:
default: {}
cloudify.cloudstack.nodes.Volume:
derived_from: cloudify.nodes.Volume
properties:
volume: {}
use_external_resource:
default: false
resource_id:
default: ''
cloudstack_config:
default: {}
interfaces:
cloudify.interfaces.lifecycle:
create: cloudstack.cloudstack_plugin.volume.create
delete: cloudstack.cloudstack_plugin.volume.delete
cloudify.cloudstack.nodes.VpnGateway:
derived_from: cloudify.nodes.Root
properties:
use_external_resource:
default: false
description: >
A boolean describing whether this resource should be
created or rather that it already exists on CloudStack
and should be used as-is.
cloudify.cloudstack.nodes.VpnCustomerGateway:
derived_from: cloudify.nodes.Root
properties:
use_external_resource:
default: false
description: >
A boolean describing whether this resource should be
created or rather that it already exists on CloudStack
and should be used as-is.
resource_id:
default: ''
cidr_list:
default: ''
ipsec_psk:
default: ''
esp_policy:
default: '3des-md5'
ike_policy:
default: '3des-md5'
ike_lifetime:
default: 86400
esp_lifetime:
default: 3600
dpd:
default: false
cloudify.cloudstack.nodes.VpnConnection:
derived_from: cloudify.nodes.Root
properties:
use_external_resource:
default: false
description: >
A boolean describing whether this resource should be
created or rather that it already exists on CloudStack
and should be used as-is.
resource_id:
default: ''
passive:
default: true
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: cloudstack.cloudstack_plugin.vpn.create_vpn_connection
inputs:
vpn_gateway_id:
default: ''
vpn_customer_gateway_id:
default: ''
delete:
implementation: cloudstack.cloudstack_plugin.vpn.delete_vpn_connection
cloudify.cloudstack.nodes.KeyPair:
derived_from: cloudify.nodes.Root
properties:
keypair:
default: {}
description: >
the keypair object as described by Cloudstack. This
parameter can be used to override and pass parameters
directly to Nova client.
Note that in the case of keypair, the only nested parameter
that can be used is "name".
private_key_path:
description: >
the path (on the machine the plugin is running on) to
where the private key should be stored. If
use_external_resource is set to "true", the existing
private key is expected to be at this path.
use_external_resource:
default: false
description: >
a boolean describing whether this resource should be
created or rather that it already exists on Openstack
and should be used as-is.
resource_id:
default: ''
description: >
the name that will be given to the resource on Cloudstack (excluding optional prefix).
If not provided, a default name will be given instead.
If use_external_resource is set to "true", this exact
value (without any prefixes applied) will be looked for
as either the name or id of an existing keypair to be used.
cloudstack_config:
default: {}
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: cloudstack.cloudstack_plugin.keypair.create
inputs: {}
delete:
implementation: cloudstack.cloudstack_plugin.keypair.delete
inputs: {}
cloudify.interfaces.validation:
creation:
implementation: cloudstack.cloudstack_plugin.keypair.creation_validation
inputs: {}
relationships:
# cloudify.cloudstack.port_connected_to_security_group:
# derived_from: cloudify.relationships.connected_to
# source_interfaces:
# cloudify.interfaces.relationship_lifecycle:
# - establish: cloudstack.neutron_plugin.port.connect_security_group
# cloudify.cloudstack.subnet_connected_to_router:
# derived_from: cloudify.relationships.connected_to
# target_interfaces:
# cloudify.interfaces.relationship_lifecycle:
# - establish: cloudstack.neutron_plugin.router.connect_subnet
# - unlink: cloudstack.neutron_plugin.router.disconnect_subnet
cloudify.cloudstack.vpn_gateway_connected_to_vpc:
derived_from: cloudify.relationships.connected_to
source_interfaces:
cloudify.interfaces.relationship_lifecycle:
establish: cloudstack.cloudstack_plugin.vpn.create_vpn_gateway
unlink: cloudstack.cloudstack_plugin.vpn.delete_vpn_gateway
cloudify.cloudstack.vpn_customer_gateway_connected_to_vpn_gateway:
derived_from: cloudify.relationships.connected_to
source_interfaces:
cloudify.interfaces.relationship_lifecycle:
establish: cloudstack.cloudstack_plugin.vpn.create_vpn_customer_gateway
unlink: cloudstack.cloudstack_plugin.vpn.delete_vpn_customer_gateway
cloudify.cloudstack.volume_connected_to_vm:
derived_from: cloudify.relationships.connected_to
source_interfaces:
cloudify.interfaces.relationship_lifecycle:
establish: cloudstack.cloudstack_plugin.virtual_machine.attach_volume
unlink: cloudstack.cloudstack_plugin.virtual_machine.detach_volume
cloudify.cloudstack.virtual_machine_connected_to_floating_ip:
derived_from: cloudify.relationships.connected_to
source_interfaces:
cloudify.interfaces.relationship_lifecycle:
establish:
implementation: cloudstack.cloudstack_plugin.virtual_machine.connect_floating_ip
inputs: {}
unlink:
implementation: cloudstack.cloudstack_plugin.virtual_machine.disconnect_floating_ip
inputs: {}
cloudify.cloudstack.floating_ip_connected_to_network:
derived_from: cloudify.relationships.connected_to
source_interfaces:
cloudify.interfaces.relationship_lifecycle:
establish:
implementation: cloudstack.cloudstack_plugin.floatingip.connect_network
inputs: {}
unlink:
implementation: cloudstack.cloudstack_plugin.floatingip.disconnect_network
inputs: {}
cloudify.cloudstack.floating_ip_connected_to_vpc:
derived_from: cloudify.relationships.connected_to
source_interfaces:
cloudify.interfaces.relationship_lifecycle:
establish:
implementation: cloudstack.cloudstack_plugin.floatingip.connect_vpc
inputs: {}
unlink:
implementation: cloudstack.cloudstack_plugin.floatingip.disconnect_network
inputs: {}
# cloudify.cloudstack.server_connected_to_security_group:
# derived_from: cloudify.relationships.connected_to
# source_interfaces:
# cloudify.interfaces.relationship_lifecycle:
# - establish: cloudstack.cloudstack_plugin.server.connect_security_group
# - unlink: cloudstack.cloudstack_plugin.server.disconnect_security_group
cloudify.cloudstack.virtual_machine_connected_to_network:
derived_from: cloudify.relationships.connected_to
source_interfaces:
cloudify.interfaces.relationship_lifecycle:
establish:
implementation: cloudstack.cloudstack_plugin.virtual_machine.connect_network
inputs: {}
unlink:
implementation: cloudstack.cloudstack_plugin.virtual_machine.disconnect_network
inputs: {}
cloudify.cloudstack.virtual_machine_connected_to_keypair:
derived_from: cloudify.relationships.connected_to
# cloudify.cloudstack.server_connected_to_port:
# derived_from: cloudify.relationships.connected_to
# cloudify.cloudstack.floating_ip_connected_to_port:
# derived_from: cloudify.relationships.connected_to
# cloudify.cloudstack.security_group_rule_in_security_group:
# derived_from: cloudify.relationships.contained_in