forked from cloudify-cosmo/cloudify-vsphere-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathv2_plugin.yaml
executable file
·974 lines (941 loc) · 35.5 KB
/
v2_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
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
##################################################################################
# Cloudify vSphere built in types and plugins definitions.
##################################################################################
plugins:
vsphere:
executor: central_deployment_agent
package_name: cloudify-vsphere-plugin
package_version: '2.19.17'
data_types:
cloudify.datatypes.vsphere.Config:
properties:
username:
description: >
vSphere username.
type: string
required: false
host:
description: >
vCenter hostname or IP address.
type: string
required: false
password:
description: >
vCenter password.
type: string
required: false
datacenter_name:
description: >
datacenter name.
type: string
required: false
auto_placement:
description: >
Must be true if you are using clusters.
Disabled `auto placement` is not recommended for a cluster.
If `auto placement` set to false, plugin will provide recommendation
to vsphere to place vm to selected host, vsphere can move vm to other
host by internal logic.
type: string
required: false
resource_pool_name:
description: >
Name of a resource pool.
Defaults to Resources, which is a hidden resource pool on vSphere.
type: string
required: false
port:
description: >
vCenter port for SDK.
type: integer
required: false
allow_insecure:
description: >
Whether to allow insecure connections. Defaults to false, but this is not
yet enforced on Python versions older than 2.7.9.
Python versions pre-2.7.9 can only make insecure connections, which will
fail in the next major version of this plugin unless this is set to false.
type: boolean
required: false
certificate_path:
description: >
The path to the PEM encoded certificate for the vCenter. This will be used
on Python 2.7.9 and above to verify the SSL connection.
On older versions of python the connection will be insecure.
It is not supported to set this while allow_insecure is set to 'true'.
type: string
required: false
cloudify.datatypes.vsphere.ServerProperties:
properties:
memory:
description: >
Amount of RAM, in MB.
type: integer
required: false
cpus:
description: >
Number of CPUs.
type: integer
required: false
template:
description: >
Virtual machine template from which server will be spawned.
See full documentation at docs.getcloudify.org for requirements.
type: string
required: false
name:
description: >
Server name.
Will use node name if this is not set.
Must consist of only ASCII letters, numbers, and hyphens.
Will automatically convert underscores to hyphens.
type: string
required: false
add_scale_suffix:
description: >
Whether or not to add a suffix to the server name.
This setting is meaningful only when the name property is specified.
It must be true - which is the default - if such a server is to be
scaled to more than one instance.
type: boolean
default: true
cloudify.datatypes.vsphere.NetworkingProperties:
properties:
domain:
description: >
the domain for this server.
Combined with the hostname this will produce the fully-qualified domain name
(e.g. if ``domain`` is ``example.local`` and the host name is ``test-abc123``
then the fully-qualified domain name will be ``test-abc123.example.local``)
type: string
required: false
dns_servers:
description: >
List of DNS servers.
required: false
connect_networks:
description: |
List of network interfaces to connect.
These should be in the form of dicts with:
name: The name of the network on vsphere, or of the related node if from_relationship is true.
from_relationship: true/false- determines whether to use a relationship from a connected node (default false)
management: true/false- determines if this is a management network interface (default false)
external: true/false- determines if this is a external network interface (default false)
switch_distributed: determines if this is connected to a distributed port group (default false)
nsx_t_switch: determines if this is connected to a NSX-T Logical Switch (default false)
use_dhcp: whether to use DHCP for IP addressing (default true)
network: network CIDR to use if use_dhcp is false
gateway: default gateway to use if use_dhcp is false. You should only set this on one interface.
ip: IP address to use if use_dhcp is false
required: false
node_types:
cloudify.vsphere.nodes.Server:
derived_from: cloudify.nodes.Compute
properties:
use_external_resource:
description: >
Whether to use a vm that already exists on vSphere.
type: boolean
default: false
allowed_hosts:
description: >
Which ESX host(s) this server is allowed to be deployed on.
required: false
allowed_clusters:
description: >
Which ESX cluster(s) this server is allowed to be deployed on.
required: false
allowed_datastores:
description: >
Which ESX datastore(s) this server is allowed to be deployed on.
required: false
server:
type: cloudify.datatypes.vsphere.ServerProperties
networking:
type: cloudify.datatypes.vsphere.NetworkingProperties
custom_attributes:
description: |
Dictionary of custom attribute keys & values.
Keys which don't yet exist on the platform will
be created automatically. ::
custom_attributes:
key: value
lock: locked
keyring: empty
required: false
cdrom_image:
description: |
Cdrom image path
default: false
extra_config:
description: |
Extra config to set, key-value dictionary
default: {}
wait_ip:
description: |
Use guest exported ip as default.
default: false
vm_folder:
description: |
Folder name for place new created VM
default: false
connection_config:
type: cloudify.datatypes.vsphere.Config
force_stop:
description: |
Force stop vm for external resource
default: false
force_delete:
description: |
Force delete vm for external resource
default: false
enable_start_vm:
description: |
Enable start (power on) operation for VM.
default: true
postpone_delete_networks:
description: |
Remover networks only after create VM.
default: false
minimal_vm_version:
description: |
Set minimal version of vm
default: 13
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: vsphere.vsphere_server_plugin.server.create
inputs: &interfaces_power_inputs
max_wait_time:
type: integer
default: 300
description: >
How long to wait for the operation to complete before retry.
start:
implementation: vsphere.vsphere_server_plugin.server.start
inputs: *interfaces_power_inputs
poststart:
implementation: vsphere.vsphere_server_plugin.server.poststart
inputs: {}
stop:
implementation: vsphere.vsphere_server_plugin.server.stop
inputs: *interfaces_power_inputs
shutdown_guest:
implementation: vsphere.vsphere_server_plugin.server.shutdown_guest
inputs: *interfaces_power_inputs
delete:
implementation: vsphere.vsphere_server_plugin.server.delete
inputs: *interfaces_power_inputs
check_drift:
implementation: vsphere.vsphere_server_plugin.server.check_drift
inputs: {}
# suspend/resume
cloudify.interfaces.freeze:
suspend:
implementation: vsphere.vsphere_server_plugin.server.freeze_suspend
inputs: *interfaces_power_inputs
resume:
implementation: vsphere.vsphere_server_plugin.server.freeze_resume
inputs: *interfaces_power_inputs
# backups related section
cloudify.interfaces.snapshot:
create:
implementation: vsphere.vsphere_server_plugin.server.snapshot_create
inputs: *interfaces_power_inputs
apply:
implementation: vsphere.vsphere_server_plugin.server.snapshot_apply
inputs: *interfaces_power_inputs
delete:
implementation: vsphere.vsphere_server_plugin.server.snapshot_delete
inputs: *interfaces_power_inputs
cloudify.interfaces.host:
get_state:
implementation: vsphere.vsphere_server_plugin.server.get_state
inputs:
minimum_wait_time:
type: integer
default: 0
description: |
The time it takes for the machine to up, should be in seconds.
<<: *interfaces_power_inputs
cloudify.interfaces.modify:
resize:
implementation: vsphere.vsphere_server_plugin.server.resize_server
inputs:
<<: *interfaces_power_inputs
hot_add:
default: true
cloudify.interfaces.power:
'on':
implementation: vsphere.vsphere_server_plugin.power.power_on
inputs: *interfaces_power_inputs
'off':
implementation: vsphere.vsphere_server_plugin.power.power_off
inputs: *interfaces_power_inputs
reset:
implementation: vsphere.vsphere_server_plugin.power.reset
inputs: *interfaces_power_inputs
reboot:
implementation: vsphere.vsphere_server_plugin.power.reboot
inputs: *interfaces_power_inputs
shut_down:
implementation: vsphere.vsphere_server_plugin.power.shut_down
inputs: *interfaces_power_inputs
cloudify.vsphere.nodes.WindowsServer:
derived_from: cloudify.vsphere.nodes.Server
properties:
windows_password:
description: >
Administrator password to set when deploying Windows instances.
If this is not supplied, agent_config.password will be used (if that has been supplied).
Supplying neither of these properties will result in an error.
type: string
required: false
windows_timezone:
description: >
Timezone to set Windows instances to.
See https://msdn.microsoft.com/en-us/library/ms912391%28v=winembedded.11%29.aspx
Defaults to GMT without daylight savings.
type: integer
default: 90
windows_organization:
description: >
The organization name to set on the Windows system.
type: string
default: Organization
custom_sysprep:
description: >
A custom System Preparation Answers file
to use for full customization of Windows.
This can be generated by the Windows System Image Manager.
Note that this file should be verified to work correctly before being applied,
as any errors will appear only on Windows and will not be visible to the plugin.
Also note that any scripts, etc.,
that attempt to work on the VM after the custom sysprep must tolerate multiple retries
because the plugin cannot detect when the custom sysprep has finished,
so provides the server as soon as the IPs are assigned
(which occurs before customization is complete).
type: string
required: false
os_family:
default: windows
description: Overridden default from ``Server`` node_type.
agent_config:
type: cloudify.datatypes.AgentConfig
default:
port: 5985
cloudify.vsphere.nodes.Network:
derived_from: cloudify.nodes.Network
properties:
use_external_resource:
description: >
Whether to use a vm that already exists on vSphere.
type: boolean
default: false
network:
description: |
key-value network configuration. ::
name: network name
vlan_id: vLAN identifier which will be assigned to the network
vswitch_name: name of the vSwitch the network will be connected to.
connection_config:
default: {}
type: cloudify.datatypes.vsphere.Config
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: vsphere.vsphere_network_plugin.network.create
inputs: {}
delete:
implementation: vsphere.vsphere_network_plugin.network.delete
inputs: {}
cloudify.vsphere.nodes.Storage:
derived_from: cloudify.nodes.Volume
properties:
use_external_resource:
description: >
Whether to use a vm that already exists on vSphere.
type: boolean
default: false
storage:
description: |
key-value storage disk configuration. ::
parent_key: Device key from controller, negative mean
that can be used any
storage_size: disk size in GB.
thin_provision: Flag to indicate to the underlying
filesystem, whether the virtual disk backing file should
be allocated lazily (using thin provisioning). This flag
is only used for file systems that support configuring
the provisioning policy on a per file basis, such as VMFS3.
Default: false
mode: The disk persistence mode. Valid modes are:
* persistent
* independent_persistent
* independent_nonpersistent
* nonpersistent
* undoable
* append
default: {}
connection_config:
default: {}
type: cloudify.datatypes.vsphere.Config
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: vsphere.vsphere_storage_plugin.storage.create
inputs:
<<: *interfaces_power_inputs
storage:
default: { get_property: [ SELF, storage ] }
delete:
implementation: vsphere.vsphere_storage_plugin.storage.delete
inputs: *interfaces_power_inputs
cloudify.interfaces.modify:
resize:
implementation: vsphere.vsphere_storage_plugin.storage.resize
inputs:
<<: *interfaces_power_inputs
storage:
default: { get_property: [ SELF, storage ] }
cloudify.vsphere.nodes.IPPool:
derived_from: cloudify.nodes.Subnet
properties:
datacenter_name:
description: >
datacenter name.
type: string
required: false
ippool:
description: >
Ip Pool settings:
name: ip pool name
subnet: Subnet settings: x.x.x.x
netmask: Netmask: x.x.x.x
gateway: Ip gateway: x.x.x.x
range: Ip range for allocate: x.x.x.x#x
dhcp: Use external dhcp server. Default is False
enabled: Enable ip pool. Default is True
connection_config:
default: {}
type: cloudify.datatypes.vsphere.Config
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: vsphere.vsphere_network_plugin.ippool.create
inputs: {}
poststart:
implementation: vsphere.vsphere_network_plugin.ippool.poststart
inputs: {}
delete:
implementation: vsphere.vsphere_network_plugin.ippool.delete
inputs: {}
check_drift:
implementation: vsphere.vsphere_network_plugin.ippool.check_drift
inputs: {}
cloudify.vsphere.nodes.CloudInitISO:
derived_from: cloudify.nodes.Volume
properties:
datacenter_name:
description: >
datacenter name.
type: string
required: false
allowed_datastores:
description: >
Which ESX datastore(s) this image is allowed to be stored on.
required: false
allowed_datastore_ids:
description: >
Which ESX datastore id(s) this image is allowed to be stored on.
Field has priority over allowed_datastores.
required: false
volume_prefix:
default: cloudinit
description: >
Datastorage path for save volume
vol_ident:
default: cidata
description: >
The volume identification string to use on the new ISO.
sys_ident:
default: ""
description: >
The system identification string to use on the new ISO.
files:
default: {}
description: >
List of files for save to CloudInit iso image with file content.
Example:
meta-data: "instance-id: localhost"
user-data: "password: passw0rd"
where meta-data and user-data are file names on cloud init image.
raw_files:
default: {}
description: >
Deprecated. List files for save to CloudInit iso image with file
name from blueprint.
files_raw:
default: { get_property: [ SELF, raw_files] }
description: >
List files for save to CloudInit iso image with file name from
blueprint.
Example:
meta-data: meta_data.yaml
where meta-data is file names on cloud init image,
meta_data.yaml is raw file name.
connection_config:
default: {}
type: cloudify.datatypes.vsphere.Config
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: vsphere.vsphere_storage_plugin.cidata.create
inputs: {}
delete:
implementation: vsphere.vsphere_storage_plugin.cidata.delete
inputs: {}
cloudify.vsphere.nodes.Datacenter:
derived_from: cloudify.nodes.Root
properties:
name:
description: >
The name of the datacenter.
use_external_resource:
description: >
Whether to use a datacenter that already exists on vSphere.
Currently, datacenters cannot be created or deleted,
and this node type exists only for compatibility with the NSX plugin.
type: boolean
default: true
connection_config:
default: {}
type: cloudify.datatypes.vsphere.Config
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: vsphere.cloudify_vsphere.datacenter.create
inputs: {}
delete:
implementation: vsphere.cloudify_vsphere.datacenter.delete
inputs: {}
cloudify.vsphere.nodes.Datastore:
derived_from: cloudify.nodes.Root
properties:
name:
description: >
The name of the datastore.
use_external_resource:
description: >
Whether to use a datastore that already exists on vSphere.
Currently, datastores cannot be created or deleted,
and this node type exists only for compatibility with the NSX/Content
Library plugin.
type: boolean
default: true
connection_config:
default: {}
type: cloudify.datatypes.vsphere.Config
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: vsphere.cloudify_vsphere.datastore.create
inputs: {}
delete:
implementation: vsphere.cloudify_vsphere.datastore.delete
inputs: {}
cloudify.vsphere.nodes.Cluster:
derived_from: cloudify.nodes.Root
properties:
name:
description: >
The name of the cluster.
use_external_resource:
description: >
Whether to use a cluster that already exists on vSphere.
Currently, clusters cannot be created or deleted,
and this node type exists only for compatibility with the NSX plugin.
type: boolean
default: true
connection_config:
default: {}
type: cloudify.datatypes.vsphere.Config
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: vsphere.cloudify_vsphere.cluster.create
inputs: {}
delete:
implementation: vsphere.cloudify_vsphere.cluster.delete
inputs: {}
cloudify.vsphere.nodes.ResourcePool:
derived_from: cloudify.nodes.Root
properties:
name:
description: >
The name of the resource_pool.
use_external_resource:
description: >
Whether to use a resource pool that already exists on vSphere.
type: boolean
default: false
host_name:
description: >
The name of the host to create the resource pool
default: ""
cluster_name:
description: >
The name of the cluster to create the resource pool
default: ""
pool_spec:
description: |
key-value resource pool configuration. ::
cpuAllocation:
expandableReservation: True or False
limit: max limit
reservation: Amount of resource that is guaranteed available
shares:
level: The allocation level. Valid levels are:
* custom
* high
* low
* normal
shares: The number of shares allocated. Used to determine resource allocation in case of resource contention,
used with custom level only
memoryAllocation:
expandableReservation: True or False
limit: max limit
reservation: Amount of resource that is guaranteed available
shares:
level: The allocation level. Valid levels are:
* custom
* high
* low
* normal
shares: The number of shares allocated. Used to determine resource allocation in case of resource contention,
used with custom level only
default: {}
connection_config:
default: {}
type: cloudify.datatypes.vsphere.Config
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: vsphere.cloudify_vsphere.resource_pool.create
inputs: {}
poststart:
implementation: vsphere.cloudify_vsphere.resource_pool.poststart
inputs: {}
delete:
implementation: vsphere.cloudify_vsphere.resource_pool.delete
inputs: {}
check_drift:
implementation: vsphere.cloudify_vsphere.resource_pool.check_drift
inputs: {}
cloudify.interfaces.operations:
update:
implementation: vsphere.cloudify_vsphere.resource_pool.update_resource_pool
inputs: {}
cloudify.vsphere.nodes.VMFolder:
derived_from: cloudify.nodes.Root
properties:
name:
description: >
The name of the VM folder.
use_external_resource:
description: >
Whether to use a VM folder that already exists on vSphere.
Currently, VM folder cannot be created or deleted,
and this node type exists only for compatibility with the NSX/Content
Library plugin.
type: boolean
default: true
connection_config:
default: {}
type: cloudify.datatypes.vsphere.Config
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: vsphere.cloudify_vsphere.vm_folder.create
inputs: {}
delete:
implementation: vsphere.cloudify_vsphere.vm_folder.delete
inputs: {}
cloudify.vsphere.nodes.Host:
derived_from: cloudify.nodes.Root
properties:
name:
description: >
The name of the hypervisor host.
use_external_resource:
description: >
Whether to use a hypervisor host that already exists on vSphere.
Currently, hypervisor hosts cannot be created or deleted,
and this node type exists only for compatibility with the NSX/Content
Library plugin.
type: boolean
default: true
connection_config:
default: {}
type: cloudify.datatypes.vsphere.Config
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: vsphere.cloudify_vsphere.hypervisor_host.create
inputs: {}
delete:
implementation: vsphere.cloudify_vsphere.hypervisor_host.delete
inputs: {}
# For more information look to https://vdc-repo.vmware.com/vmwb-repository/dcr-public/1cd28284-3b72-4885-9e31-d1c6d9e26686/71ef7304-a6c9-43b3-a3cd-868b2c236c81/doc/operations/com/vmware/vcenter/ovf/library_item.deploy-operation.html
cloudify.vsphere.nodes.ContentLibraryDeployment:
derived_from: cloudify.nodes.Root
properties:
library_name:
description: >
The name of the content library name.
default: ""
template_name:
description: >
The name of the content library item name.
default: ""
target:
description: >
Target settings for install:
resource_pool_id: Identifier of the resource pool to which the
virtual machine or virtual appliance should be attached.
host_id: Identifier of the target host on which the virtual
machine or virtual appliance will run. Optional. If unset,
the server will automatically select a target host from the
resource pool.
folder_id: Identifier of the vCenter folder that should contain
the virtual machine or virtual appliance. The folder must be
virtual machine folder. Optional. If unset, the server will
choose the deployment folder.
default: {}
deployment_spec:
description: >
Deployment settings for install:
name: Name assigned to the deployed target virtual machine or
virtual appliance. Optional. If unset, the server will use
the name from the instance.id.
annotation: Annotation assigned to the deployed target virtual
machine or virtual appliance. Optional. If unset, the server
will use the annotation from the OVF package.
network_mappings: Specification of the target network to use for
sections of type ovf:NetworkSection in the OVF descriptor.
storage_mappings: Specification of the target storage to use for
sections of type vmw:StorageGroupSection in the OVF descriptor.
storage_provisioning: Default storage provisioning type to use for
all sections of type vmw:StorageSection in the OVF descriptor.
storage_profile_id: Default storage profile to use for all sections
of type vmw:StorageSection in the OVF descriptor.
locale: The locale to use for parsing the OVF descriptor.
flags: Flags to be use for deployment.
additional_parameters: Additional OVF parameters that may be needed
for the deployment.
default_datastore_id: Default datastore to use for all sections of
type vmw:StorageSection in the OVF descriptor. Optional.
If unset, the server will choose the default datastore.
default: {}
connection_config:
default: {}
type: cloudify.datatypes.vsphere.Config
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: vsphere.cloudify_vsphere.contentlibrary.deployment.create
inputs: {}
delete:
implementation: vsphere.cloudify_vsphere.contentlibrary.deployment.delete
inputs: {}
cloudify.vsphere.nodes.NIC:
derived_from: cloudify.nodes.Root
properties:
name:
description: >
Network name for connect
switch_distributed:
description: >
determines if this is connected to a distributed port group
default: false
adapter_type:
description: >
Possible: Vmxnet3, Vmxnet2, Sriov, E1000, E1000e
default: Vmxnet3
start_connected:
description: >
Specifies whether or not to connect the device when the virtual
machine starts.
default: true
allow_guest_control:
description: >
Enables guest control over whether the connectable device is
connected.
default: true
network_connected:
description: >
Indicates whether the device is currently connected.
Valid only while the virtual machine is running.
default: true
wake_on_lan_enabled:
description: >
Indicates whether wake-on-LAN is enabled on this virtual network
adapter. Clients can set this property to selectively enable or
disable wake-on-LAN.
default: true
address_type:
description: >
MAC address type. Valid values for address type are:
ManualStatically assigned MAC address.
GeneratedAutomatically generated MAC address.
AssignedMAC address assigned by VirtualCenter.
default: assigned
mac_address:
description: >
MAC address assigned to the virtual network adapter. Clients can
set this property to any of the allowed address types. The server
might override the specified value for "Generated" or "Assigned"
if it does not fall in the right ranges or is determined to be
a duplicate.
default: ""
network_configuration:
default: {}
description: >
Only valid with a relationship cloudify.relationships.vsphere.nic_connected_to_network to a network.
Dictionary with following keys:
'from_relationship': (bool, False),
'external': (bool, False),
'management': (bool, False),
'use_dhcp': (bool, True),
'network': (basestring, None),
'gateway': (basestring, None),
'ip': (basestring, None)
connection_config:
type: cloudify.datatypes.vsphere.Config
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: vsphere.cloudify_vsphere.devices.create_controller
inputs:
name:
default: { get_attribute: [ SELF, name ] }
switch_distributed:
default: { get_attribute: [ SELF, switch_distributed ] }
adapter_type:
default: { get_attribute: [ SELF, adapter_type ] }
start_connected:
default: { get_attribute: [ SELF, start_connected ] }
allow_guest_control:
default: { get_attribute: [ SELF, allow_guest_control ] }
network_connected:
default: { get_attribute: [ SELF, network_connected ] }
wake_on_lan_enabled:
default: { get_attribute: [ SELF, wake_on_lan_enabled ] }
address_type:
default: { get_attribute: [ SELF, address_type ] }
mac_address:
default: { get_attribute: [ SELF, mac_address ] }
network_configuration:
default: { get_attribute: [ SELF, network_configuration ] }
delete:
implementation: vsphere.cloudify_vsphere.devices.delete_controller
cloudify.vsphere.nodes.SCSIController:
derived_from: cloudify.nodes.Root
properties:
busNumber:
description: >
Bus number associated with this controller.
default: 0
label:
description: >
Label for SCSI controller
default: SCSIController
adapterType:
description: >
Possible: paravirtual, lsilogic_sas, lsilogic
default: paravirtual
hotAddRemove:
description: >
All SCSI controllers support hot adding and removing of devices.
This support can't be toggled in the current implementation.
Therefore, this option is ignored when reconfiguring a SCSI
controller and is always set to "true" when reading an existing
configuration.
default: true
sharedBus:
description: >
Mode for sharing the SCSI bus. The modes are physicalSharing,
virtualSharing, and noSharing.
default: noSharing
scsiCtlrUnitNumber:
description: >
The unit number of the SCSI controller. The SCSI controller
sits on its own bus, so this field defines which slot the
controller is using.
default: -1
connection_config:
type: cloudify.datatypes.vsphere.Config
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: vsphere.cloudify_vsphere.devices.create_controller
inputs:
busNumber:
default: { get_attribute: [ SELF, busNumber ] }
hotAddRemove:
default: { get_attribute: [ SELF, hotAddRemove ] }
sharedBus:
default: { get_attribute: [ SELF, sharedBus ] }
scsiCtlrUnitNumber:
default: { get_attribute: [ SELF, scsiCtlrUnitNumber ] }
adapterType:
default: { get_attribute: [ SELF, adapterType ] }
label:
default: { get_attribute: [ SELF, label ] }
delete:
implementation: vsphere.cloudify_vsphere.devices.delete_controller
relationships:
cloudify.vsphere.port_connected_to_network:
derived_from: cloudify.relationships.connected_to
cloudify.vsphere.port_connected_to_server:
derived_from: cloudify.relationships.connected_to
cloudify.vsphere.storage_connected_to_server:
derived_from: cloudify.relationships.connected_to
cloudify.vsphere.nic_connected_to_server:
derived_from: cloudify.relationships.contained_in
source_interfaces:
cloudify.interfaces.relationship_lifecycle:
preconfigure:
implementation: vsphere.cloudify_vsphere.devices.attach_ethernet_card
unlink:
implementation: vsphere.cloudify_vsphere.devices.detach_controller
cloudify.vsphere.controller_connected_to_vm:
derived_from: cloudify.relationships.contained_in
source_interfaces:
cloudify.interfaces.relationship_lifecycle:
preconfigure:
implementation: vsphere.cloudify_vsphere.devices.attach_scsi_controller
unlink:
implementation: vsphere.cloudify_vsphere.devices.detach_controller
cloudify.relationships.vsphere.nic_connected_to_network:
derived_from: cloudify.relationships.contained_in
cloudify.relationships.vsphere.server_connected_to_nic:
derived_from: cloudify.relationships.contained_in
source_interfaces:
cloudify.interfaces.relationship_lifecycle:
establish:
implementation: vsphere.cloudify_vsphere.devices.attach_server_to_ethernet_card
unlink:
implementation: vsphere.cloudify_vsphere.devices.detach_server_from_controller
cloudify.relationships.vsphere.ippool_connected_to_network:
derived_from: cloudify.relationships.depends_on
cloudify.relationships.vsphere.resource_pool_contained_in:
derived_from: cloudify.relationships.contained_in
blueprint_labels:
obj-type:
values:
- vsphere
labels:
obj-type:
values:
- vsphere