Class: Ansible::Ruby::Modules::Ovirt_affinity_group

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_affinity_group.rb,
lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_affinity_groups.rb

Overview

This module manage affinity groups in oVirt/RHV. It can also manage assignments of those groups to VMs.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

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

#clusterString?

Returns Name of the cluster of the affinity group.

Returns:

  • (String, nil)

    Name of the cluster of the affinity group.



20
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_affinity_group.rb', line 20

attribute :cluster

#descriptionObject?

Returns Description of the affinity group.

Returns:

  • (Object, nil)

    Description of the affinity group.



24
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_affinity_group.rb', line 24

attribute :description

#host_enforcingSymbol?

Returns If I(yes) VM cannot start on host if it does not satisfy the C(host_rule).,This parameter is support since oVirt/RHV 4.1 version.

Returns:

  • (Symbol, nil)

    If I(yes) VM cannot start on host if it does not satisfy the C(host_rule).,This parameter is support since oVirt/RHV 4.1 version.



27
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_affinity_group.rb', line 27

attribute :host_enforcing

#host_rule:negative, ...

Returns If I(positive) I(all) VMs in this group should run on the this host.,If I(negative) I(no) VMs in this group should run on the this host.,This parameter is support since oVirt/RHV 4.1 version.

Returns:

  • (:negative, :positive, nil)

    If I(positive) I(all) VMs in this group should run on the this host.,If I(negative) I(no) VMs in this group should run on the this host.,This parameter is support since oVirt/RHV 4.1 version.



31
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_affinity_group.rb', line 31

attribute :host_rule

#hostsArray<String>, ...

Returns List of the hosts names, which should have assigned this affinity group.,This parameter is support since oVirt/RHV 4.1 version.

Returns:

  • (Array<String>, String, nil)

    List of the hosts names, which should have assigned this affinity group.,This parameter is support since oVirt/RHV 4.1 version.



47
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_affinity_group.rb', line 47

attribute :hosts

#nameString

Returns Name of the affinity group to manage.

Returns:

  • (String)

    Name of the affinity group to manage.



12
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_affinity_group.rb', line 12

attribute :name

#state:absent, ...

Returns Should the affinity group be present or absent.

Returns:

  • (:absent, :present, nil)

    Should the affinity group be present or absent.



16
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_affinity_group.rb', line 16

attribute :state

#vm_enforcingSymbol?

Returns If I(yes) VM cannot start if it does not satisfy the C(vm_rule).

Returns:

  • (Symbol, nil)

    If I(yes) VM cannot start if it does not satisfy the C(vm_rule).



35
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_affinity_group.rb', line 35

attribute :vm_enforcing

#vm_rule:disabled, ...

Returns If I(positive) I(all) VMs in this group should run on the host defined by C(host_rule).,If I(negative) I(no) VMs in this group should run on the host defined by C(host_rule).,If I(disabled) this affinity group doesn’t take effect.

Returns:

  • (:disabled, :negative, :positive, nil)

    If I(positive) I(all) VMs in this group should run on the host defined by C(host_rule).,If I(negative) I(no) VMs in this group should run on the host defined by C(host_rule).,If I(disabled) this affinity group doesn’t take effect.



39
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_affinity_group.rb', line 39

attribute :vm_rule

#vmsArray<String>, ...

Returns List of the VMs names, which should have assigned this affinity group.

Returns:

  • (Array<String>, String, nil)

    List of the VMs names, which should have assigned this affinity group.



43
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_affinity_group.rb', line 43

attribute :vms