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
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, #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.
18 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/virt.rb', line 18 attribute :command |
#name ⇒ String
Returns name of the guest VM being managed. Note that VM must be previously defined with xml.
10 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/virt.rb', line 10 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.
14 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/virt.rb', line 14 attribute :state |
#uri ⇒ String?
Returns libvirt connection uri.
22 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/virt.rb', line 22 attribute :uri |
#xml ⇒ String?
Returns XML document used with the define command.
26 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/virt.rb', line 26 attribute :xml |