Class: Ansible::Ruby::Modules::Vmware_host_ntp
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Vmware_host_ntp
- Defined in:
- lib/ansible/ruby/modules/generated/cloud/vmware/vmware_host_ntp.rb
Overview
This module can be used to manage NTP configuration information about an ESXi host. User can specify an ESXi hostname or Cluster name. In case of cluster name, all ESXi hosts are updated.
Instance Method Summary collapse
-
#cluster_name ⇒ String?
Name of the cluster.,NTP settings are applied to every ESXi host system in the given cluster.,If C(esxi_hostname) is not given, this parameter is required.
-
#esxi_hostname ⇒ String?
ESXi hostname.,NTP settings are applied to this ESXi host system.,If C(cluster_name) is not given, this parameter is required.
-
#ntp_servers ⇒ Array<String>, String
IP or FQDN of NTP server/s.,This accepts a list of NTP servers.
-
#state ⇒ :present, ...
Present: Add NTP server/s, if it specified server/s are absent else do nothing.,absent: Remove NTP server/s, if specified server/s are present else do nothing.
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
#cluster_name ⇒ String?
Returns Name of the cluster.,NTP settings are applied to every ESXi host system in the given cluster.,If C(esxi_hostname) is not given, this parameter is required.
13 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_host_ntp.rb', line 13 attribute :cluster_name |
#esxi_hostname ⇒ String?
Returns ESXi hostname.,NTP settings are applied to this ESXi host system.,If C(cluster_name) is not given, this parameter is required.
17 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_host_ntp.rb', line 17 attribute :esxi_hostname |
#ntp_servers ⇒ Array<String>, String
Returns IP or FQDN of NTP server/s.,This accepts a list of NTP servers. For multiple servers, please look at the examples.
21 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_host_ntp.rb', line 21 attribute :ntp_servers |
#state ⇒ :present, ...
Returns present: Add NTP server/s, if it specified server/s are absent else do nothing.,absent: Remove NTP server/s, if specified server/s are present else do nothing.
25 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_host_ntp.rb', line 25 attribute :state |