-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathplugin.yaml
More file actions
309 lines (275 loc) · 9.71 KB
/
plugin.yaml
File metadata and controls
309 lines (275 loc) · 9.71 KB
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
plugins:
vcd:
executor: central_deployment_agent
package_name: cloudify-vcloud-plugin
package_version: '2.0.6'
data_types:
cloudify.datatypes.vcd.client_configuration_options:
properties: &client_configuration_options
uri:
type: string
required: false
description: The hostname or IP of the VCD.
api_version:
type: string
default: '32.0'
description: The VCD API version
verify_ssl_certs:
type: boolean
default: true
description: Whether to verify SSL certificates.
log_file:
type: string
required: false
description: Where to store pyvcloud logs.
log_requests:
type: boolean
default: true
description: Whether to log the requests.
log_headers:
type: boolean
default: true
description: Whether to log the requests headers.
log_bodies:
type: boolean
default: true
description: Whether to log the request bodies.
configuration_kwargs:
type: dict
default: {}
description: Additional client configuration options not exposed in cloudify.datatypes.vcd.client_configuration_options.
cloudify.datatypes.vcd.credentials:
properties: &credentials
user:
type: string
required: false
description: a VCD user name.
password:
type: string
required: false
description: the password for the VCD user name provided.
org:
type: string
required: false
description: a VCD org.
credentials_kwargs:
type: dict
default: {}
description: Additional client configuration options not exposed in cloudify.datatypes.vcd.credentials.
cloudify.datatypes.vcd.client_config:
properties:
<<: *client_configuration_options
<<: *credentials
vdc:
type: string
description: The name of the VDC.
cloudify.datatypes.vcloud.BaseProperties:
properties: &BaseProperties
use_external_resource:
type: boolean
description: If the resource has already been created, this should be true, if you wish Cloudify to create the resource, this should be false.
default: false
resource_id:
type: string
description: The name of the resource. Required if resource is external.
required: false
client_config:
type: cloudify.datatypes.vcd.client_config
description: Configuration options for pyvcloud.vcd.client.Client and pyvcloud.vcd.client.BasicLoginCredentials
required: false
node_types:
cloudify.nodes.vcloud.Media:
derived_from: cloudify.nodes.Volume
properties:
<<: *BaseProperties
resource_config:
type: dict
iso:
type: dict
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: vcd.cloudify_vcd.media_tasks.create_media
delete:
implementation: vcd.cloudify_vcd.media_tasks.delete_media
cloudify.nodes.vcloud.Disk:
derived_from: cloudify.nodes.Volume
properties:
<<: *BaseProperties
resource_config:
type: dict
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: vcd.cloudify_vcd.disk_tasks.create_disk
delete:
implementation: vcd.cloudify_vcd.disk_tasks.delete_disk
cloudify.nodes.vcloud.NIC:
derived_from: cloudify.nodes.Volume
properties:
<<: *BaseProperties
resource_config:
type: dict
interfaces:
cloudify.interfaces.lifecycle:
configure:
implementation: vcd.cloudify_vcd.vapp_tasks.configure_nic
cloudify.nodes.vcloud.VM:
derived_from: cloudify.nodes.Compute
properties:
<<: *BaseProperties
resource_config:
type: dict
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: vcd.cloudify_vcd.vapp_tasks.create_vm
configure:
implementation: vcd.cloudify_vcd.vapp_tasks.configure_vm
start:
implementation: vcd.cloudify_vcd.vapp_tasks.start_vm
stop:
implementation: vcd.cloudify_vcd.vapp_tasks.stop_vm
delete:
implementation: vcd.cloudify_vcd.vapp_tasks.delete_vm
cloudify.nodes.vcloud.VApp:
derived_from: cloudify.nodes.Root
properties:
<<: *BaseProperties
resource_config:
type: dict
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: vcd.cloudify_vcd.vapp_tasks.create_vapp
stop:
implementation: vcd.cloudify_vcd.vapp_tasks.stop_vapp
delete:
implementation: vcd.cloudify_vcd.vapp_tasks.power_off_vapp
postdelete:
implementation: vcd.cloudify_vcd.vapp_tasks.delete_vapp
cloudify.nodes.vcloud.DirectlyConnectedVDCNetwork:
derived_from: cloudify.nodes.vcloud.NetworkBase
cloudify.nodes.vcloud.RoutedVDCNetwork:
derived_from: cloudify.nodes.vcloud.NetworkBase
cloudify.nodes.vcloud.IsolatedVDCNetwork:
derived_from: cloudify.nodes.vcloud.NetworkBase
cloudify.nodes.vcloud.NetworkBase:
derived_from: cloudify.nodes.Network
properties:
<<: *BaseProperties
resource_config:
type: dict
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: vcd.cloudify_vcd.network_tasks.create_network
delete:
implementation: vcd.cloudify_vcd.network_tasks.delete_network
cloudify.nodes.vcloud.FirewallRules:
derived_from: cloudify.nodes.Root
properties:
<<: *BaseProperties
resource_config:
type: dict
cloudify.nodes.vcloud.StaticRoutes:
derived_from: cloudify.nodes.Root
properties:
<<: *BaseProperties
resource_config:
type: list
cloudify.nodes.vcloud.DHCPPools:
derived_from: cloudify.nodes.Root
properties:
<<: *BaseProperties
resource_config:
type: list
cloudify.nodes.vcloud.NatRules:
derived_from: cloudify.nodes.Root
properties:
<<: *BaseProperties
resource_config:
type: list
cloudify.nodes.vcloud.Gateway:
derived_from: cloudify.nodes.Root
properties:
<<: *BaseProperties
resource_config:
type: dict
default:
name: { get_property: [ SELF, resource_id ] }
interfaces:
cloudify.interfaces.lifecycle:
configure:
implementation: vcd.cloudify_vcd.gateway_tasks.configure_gateway
delete:
implementation: vcd.cloudify_vcd.gateway_tasks.delete_gateway
relationships:
cloudify.relationships.vcloud.network_connected_to_gateway:
derived_from: cloudify.relationships.connected_to
cloudify.relationships.vcloud.firewall_rules_contained_in_gateway:
derived_from: cloudify.relationships.contained_in
source_interfaces:
cloudify.interfaces.relationship_lifecycle:
preconfigure:
implementation: vcd.cloudify_vcd.gateway_tasks.create_firewall_rules
unlink:
implementation: vcd.cloudify_vcd.gateway_tasks.delete_firewall_rules
cloudify.relationships.vcloud.static_routes_contained_in_gateway:
derived_from: cloudify.relationships.contained_in
source_interfaces:
cloudify.interfaces.relationship_lifecycle:
preconfigure:
implementation: vcd.cloudify_vcd.gateway_tasks.create_static_routes
unlink:
implementation: vcd.cloudify_vcd.gateway_tasks.delete_static_routes
cloudify.relationships.vcloud.dhcp_pools_contained_in_gateway:
derived_from: cloudify.relationships.contained_in
source_interfaces:
cloudify.interfaces.relationship_lifecycle:
preconfigure:
implementation: vcd.cloudify_vcd.gateway_tasks.create_dhcp_pools
unlink:
implementation: vcd.cloudify_vcd.gateway_tasks.delete_dhcp_pools
cloudify.relationships.vcloud.nat_rules_contained_in_gateway:
derived_from: cloudify.relationships.contained_in
source_interfaces:
cloudify.interfaces.relationship_lifecycle:
preconfigure:
implementation: vcd.cloudify_vcd.gateway_tasks.create_nat_rules
unlink:
implementation: vcd.cloudify_vcd.gateway_tasks.delete_nat_rules
cloudify.relationships.vcloud.vm_connected_to_network:
derived_from: cloudify.relationships.connected_to
cloudify.relationships.vcloud.vapp_connected_to_network:
derived_from: cloudify.relationships.connected_to
cloudify.relationships.vcloud.vm_contained_in_vapp:
derived_from: cloudify.relationships.contained_in
cloudify.relationships.vcloud.vm_connected_to_disk:
derived_from: cloudify.relationships.connected_to
target_interfaces:
cloudify.interfaces.relationship_lifecycle:
preconfigure:
implementation: vcd.cloudify_vcd.disk_tasks.attach_disk
unlink:
implementation: vcd.cloudify_vcd.disk_tasks.detach_disk
cloudify.relationships.vcloud.vm_connected_to_media:
derived_from: cloudify.relationships.connected_to
target_interfaces:
cloudify.interfaces.relationship_lifecycle:
preconfigure:
implementation: vcd.cloudify_vcd.media_tasks.attach_media
unlink:
implementation: vcd.cloudify_vcd.media_tasks.detach_media
cloudify.relationships.vcloud.vm_connected_to_nic:
derived_from: cloudify.relationships.connected_to
target_interfaces:
cloudify.interfaces.relationship_lifecycle:
preconfigure:
implementation: vcd.cloudify_vcd.vapp_tasks.add_network
postconfigure:
implementation: vcd.cloudify_vcd.vapp_tasks.add_nic
unlink:
implementation: vcd.cloudify_vcd.vapp_tasks.delete_nic
cloudify.relationships.vcloud.nic_connected_to_network:
derived_from: cloudify.relationships.connected_to