Class: Ansible::Ruby::Modules::Virt
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Virt
- Defined in:
- lib/ansible/ruby/modules/generated/extras/cloud/misc/virt.rb
Overview
Manages virtual machines supported by I(libvirt).
Instance Method Summary collapse
-
#command ⇒ :create, ...
In addition to state management, various non-idempotent commands are available.
-
#name ⇒ String
Name of the guest VM being managed.
-
#state ⇒ :running, ...
Note that there may be some lag for state requests like C(shutdown) since these refer only to VM states.
-
#uri ⇒ String?
Libvirt connection uri.
-
#xml ⇒ String?
XML document used with the define command.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#command ⇒ :create, ...
Returns in addition to state management, various non-idempotent commands are available. See examples.
19 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/virt.rb', line 19 attribute :command |
#name ⇒ String
Returns name of the guest VM being managed. Note that VM must be previously defined with xml.
11 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/virt.rb', line 11 attribute :name |
#state ⇒ :running, ...
Returns Note that there may be some lag for state requests like C(shutdown) since these refer only to VM states. After starting a guest, it may not be immediately accessible.
15 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/virt.rb', line 15 attribute :state |
#uri ⇒ String?
Returns libvirt connection uri.
23 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/virt.rb', line 23 attribute :uri |
#xml ⇒ String?
Returns XML document used with the define command.
27 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/virt.rb', line 27 attribute :xml |