Class: Ansible::Ruby::Modules::Vmware_host
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Vmware_host
- Defined in:
- lib/ansible/ruby/modules/generated/cloud/vmware/vmware_host.rb
Overview
This module can be used to add / remove / reconnect an ESXi host to / from vCenter.
Instance Method Summary collapse
-
#add_connected ⇒ Boolean?
If set to C(True), then the host should be connected as soon as it is added.,This parameter is ignored if state is set to a value other than C(present).
-
#cluster_name ⇒ String?
Name of the cluster to add the host.,If C(folder) is not set, then this parameter is required.,Aliases added in version 2.6.
-
#datacenter_name ⇒ String
Name of the datacenter to add the host.,Aliases added in version 2.6.
-
#esxi_hostname ⇒ String
ESXi hostname to manage.
-
#esxi_password ⇒ String?
ESXi password.,Required for adding a host.,Optional for reconnect.,Unused for removing.,No longer a required parameter from version 2.5.
-
#esxi_ssl_thumbprint ⇒ String?
Specifying the hostsystem certificate’s thumbprint.,Use following command to get hostsystem certificate’s thumbprint - ,# openssl x509 -in /etc/vmware/ssl/rui.crt -fingerprint -sha1 -noout.
-
#esxi_username ⇒ String?
ESXi username.,Required for adding a host.,Optional for reconnect.,Unused for removing.,No longer a required parameter from version 2.5.
-
#folder ⇒ String?
Name of the folder under which host to add.,If C(cluster_name) is not set, then this parameter is required.,For example, if there is a datacenter ‘dc1’ under folder called ‘Site1’ then, this value will be ‘/Site1/dc1/host’.,Here ‘host’ is an invisible folder under VMware Web Client.,Another example, if there is a nested folder structure like ‘/myhosts/india/pune’ under datacenter ‘dc2’, then C(folder) value will be ‘/dc2/host/myhosts/india/pune’.,Other Examples: , - ‘/Site2/dc2/Asia-Cluster/host’, - ‘/dc3/Asia-Cluster/host’.
-
#state ⇒ :present, ...
If set to C(present), then add the host if host is absent.,If set to C(present), then do nothing if host already exists.,If set to C(absent), then remove the host if host is present.,If set to C(absent), then do nothing if host already does not exists.,If set to C(add_or_reconnect), then add the host if it’s absent else reconnect it.,If set to C(reconnect), then reconnect the host if it’s present else fail.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#add_connected ⇒ Boolean?
Returns If set to C(True), then the host should be connected as soon as it is added.,This parameter is ignored if state is set to a value other than C(present).
24 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_host.rb', line 24 attribute :add_connected |
#cluster_name ⇒ String?
Returns Name of the cluster to add the host.,If C(folder) is not set, then this parameter is required.,Aliases added in version 2.6.
16 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_host.rb', line 16 attribute :cluster_name |
#datacenter_name ⇒ String
Returns Name of the datacenter to add the host.,Aliases added in version 2.6.
12 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_host.rb', line 12 attribute :datacenter_name |
#esxi_hostname ⇒ String
Returns ESXi hostname to manage.
28 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_host.rb', line 28 attribute :esxi_hostname |
#esxi_password ⇒ String?
Returns ESXi password.,Required for adding a host.,Optional for reconnect.,Unused for removing.,No longer a required parameter from version 2.5.
36 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_host.rb', line 36 attribute :esxi_password |
#esxi_ssl_thumbprint ⇒ String?
Returns Specifying the hostsystem certificate’s thumbprint.,Use following command to get hostsystem certificate’s thumbprint - ,# openssl x509 -in /etc/vmware/ssl/rui.crt -fingerprint -sha1 -noout.
44 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_host.rb', line 44 attribute :esxi_ssl_thumbprint |
#esxi_username ⇒ String?
Returns ESXi username.,Required for adding a host.,Optional for reconnect.,Unused for removing.,No longer a required parameter from version 2.5.
32 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_host.rb', line 32 attribute :esxi_username |
#folder ⇒ String?
Returns Name of the folder under which host to add.,If C(cluster_name) is not set, then this parameter is required.,For example, if there is a datacenter ‘dc1’ under folder called ‘Site1’ then, this value will be ‘/Site1/dc1/host’.,Here ‘host’ is an invisible folder under VMware Web Client.,Another example, if there is a nested folder structure like ‘/myhosts/india/pune’ under datacenter ‘dc2’, then C(folder) value will be ‘/dc2/host/myhosts/india/pune’.,Other Examples: , - ‘/Site2/dc2/Asia-Cluster/host’, - ‘/dc3/Asia-Cluster/host’.
20 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_host.rb', line 20 attribute :folder |
#state ⇒ :present, ...
Returns If set to C(present), then add the host if host is absent.,If set to C(present), then do nothing if host already exists.,If set to C(absent), then remove the host if host is present.,If set to C(absent), then do nothing if host already does not exists.,If set to C(add_or_reconnect), then add the host if it’s absent else reconnect it.,If set to C(reconnect), then reconnect the host if it’s present else fail.
40 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_host.rb', line 40 attribute :state |