Class: Ansible::Ruby::Modules::Virt
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Virt
- Defined in:
- lib/ansible/ruby/modules/generated/cloud/misc/virt.rb
Overview
Manages virtual machines supported by I(libvirt).
Instance Method Summary collapse
-
#autostart ⇒ Symbol?
Start VM at host startup.
-
#command ⇒ :create, ...
In addition to state management, various non-idempotent commands are available.
-
#name ⇒ String?
Name of the guest VM being managed.
-
#state ⇒ :destroyed, ...
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 ⇒ Object?
XML document used with the define command.,Must be raw XML content using C(lookup).
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
#autostart ⇒ Symbol?
Returns start VM at host startup.
24 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/virt.rb', line 24 attribute :autostart |
#command ⇒ :create, ...
Returns In addition to state management, various non-idempotent commands are available.
20 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/virt.rb', line 20 attribute :command |
#name ⇒ String?
Returns name of the guest VM being managed. Note that VM must be previously defined with xml.,This option is required unless I(command) is C(list_vms).
12 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/virt.rb', line 12 attribute :name |
#state ⇒ :destroyed, ...
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.
16 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/virt.rb', line 16 attribute :state |
#uri ⇒ String?
Returns libvirt connection uri.
28 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/virt.rb', line 28 attribute :uri |
#xml ⇒ Object?
Returns XML document used with the define command.,Must be raw XML content using C(lookup). XML cannot be reference to a file.
32 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/virt.rb', line 32 attribute :xml |