Class: Ansible::Ruby::Modules::Cs_template
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Cs_template
- Defined in:
- lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_template.rb
Overview
Register templates from an URL. Create templates from a ROOT volume of a stopped VM or its snapshot. Update (since version 2.7), extract and delete templates.
Instance Method Summary collapse
-
#account ⇒ Object?
Account the template, snapshot or VM is related to.
-
#bits ⇒ 32, ...
32 or 64 bits support.
-
#checksum ⇒ Object?
The MD5 checksum value of this template.,If set, we search by checksum instead of name.
-
#cross_zones ⇒ Boolean?
Whether the template should be synced or removed across zones.,Only used if C(state) is present or absent.
-
#details ⇒ Object?
Template details in key/value pairs.
-
#display_text ⇒ String?
Display text of the template.
-
#domain ⇒ Object?
Domain the template, snapshot or VM is related to.
-
#format ⇒ :QCOW2, ...
The format for the template.,Only considered if I(state=present).
-
#hypervisor ⇒ :KVM, ...
Name the hypervisor to be used for creating the new template.,Relevant when using I(state=present).
-
#is_dynamically_scalable ⇒ Object?
Register the template having XS/VMWare tools installed in order to support dynamic scaling of VM CPU/memory.,Only used if C(state) is present.
-
#is_extractable ⇒ Object?
Allows the template or its derivatives to be extractable.
-
#is_featured ⇒ Object?
Register the template to be featured.,Only used if C(state) is present.
-
#is_public ⇒ Boolean?
Register the template to be publicly available to all users.,Only used if C(state) is present.
-
#is_ready ⇒ Object?
Note: this flag was not implemented and therefore marked as deprecated.,Deprecated, will be removed in version 2.11.
-
#is_routing ⇒ Object?
Sets the template type to routing, i.e.
-
#mode ⇒ :http_download, ...
Mode for the template extraction.,Only used if I(state=extracted).
-
#name ⇒ String
Name of the template.
-
#os_type ⇒ String?
OS type that best represents the OS of this template.
-
#password_enabled ⇒ Boolean?
Enable template password reset support.
-
#poll_async ⇒ Boolean?
Poll async jobs until job has finished.
-
#project ⇒ Object?
Name of the project the template to be registered in.
-
#requires_hvm ⇒ Object?
Whether the template requires HVM or not.,Only considered while creating the template.
-
#snapshot ⇒ String?
Name of the snapshot, created from the VM ROOT volume, the template will be created from.,C(vm) is required together with this argument.
-
#sshkey_enabled ⇒ Object?
True if the template supports the sshkey upload feature.,Only considered if C(url) is used (API limitation).
-
#state ⇒ :present, ...
State of the template.
-
#tags ⇒ Object?
List of tags.
-
#template_filter ⇒ :all, ...
Name of the filter used to search for the template.,The filter C(all) was added in 2.7.
-
#template_find_options ⇒ :display_text, ...
Options to find a template uniquely.,More than one allowed.
-
#template_tag ⇒ Object?
The tag for this template.
-
#url ⇒ String?
URL of where the template is hosted on I(state=present).,URL to which the template would be extracted on I(state=extracted).,Mutually exclusive with C(vm).
-
#vm ⇒ String?
VM name the template will be created from its volume or alternatively from a snapshot.,VM must be in stopped state if created from its volume.,Mutually exclusive with C(url).
-
#zone ⇒ String?
Name of the zone you wish the template to be registered or deleted from.,If not specified, first found zone will be used.
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
#account ⇒ Object?
Returns Account the template, snapshot or VM is related to.
61 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_template.rb', line 61 attribute :account |
#bits ⇒ 32, ...
Returns 32 or 64 bits support.
109 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_template.rb', line 109 attribute :bits |
#checksum ⇒ Object?
Returns The MD5 checksum value of this template.,If set, we search by checksum instead of name.
34 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_template.rb', line 34 attribute :checksum |
#cross_zones ⇒ Boolean?
Returns Whether the template should be synced or removed across zones.,Only used if C(state) is present or absent.
50 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_template.rb', line 50 attribute :cross_zones |
#details ⇒ Object?
Returns Template details in key/value pairs.
106 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_template.rb', line 106 attribute :details |
#display_text ⇒ String?
Returns Display text of the template.
113 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_template.rb', line 113 attribute :display_text |
#domain ⇒ Object?
Returns Domain the template, snapshot or VM is related to.
58 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_template.rb', line 58 attribute :domain |
#format ⇒ :QCOW2, ...
Returns The format for the template.,Only considered if I(state=present).
99 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_template.rb', line 99 attribute :format |
#hypervisor ⇒ :KVM, ...
Returns Name the hypervisor to be used for creating the new template.,Relevant when using I(state=present).
79 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_template.rb', line 79 attribute :hypervisor |
#is_dynamically_scalable ⇒ Object?
Returns Register the template having XS/VMWare tools installed in order to support dynamic scaling of VM CPU/memory.,Only used if C(state) is present.
47 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_template.rb', line 47 attribute :is_dynamically_scalable |
#is_extractable ⇒ Object?
Returns Allows the template or its derivatives to be extractable.
103 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_template.rb', line 103 attribute :is_extractable |
#is_featured ⇒ Object?
Returns Register the template to be featured.,Only used if C(state) is present.
44 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_template.rb', line 44 attribute :is_featured |
#is_public ⇒ Boolean?
Returns Register the template to be publicly available to all users.,Only used if C(state) is present.
40 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_template.rb', line 40 attribute :is_public |
#is_ready ⇒ Object?
Returns Note: this flag was not implemented and therefore marked as deprecated.,Deprecated, will be removed in version 2.11.
37 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_template.rb', line 37 attribute :is_ready |
#is_routing ⇒ Object?
Returns Sets the template type to routing, i.e. if template is used to deploy routers.,Only considered if C(url) is used.
96 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_template.rb', line 96 attribute :is_routing |
#mode ⇒ :http_download, ...
Returns Mode for the template extraction.,Only used if I(state=extracted).
54 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_template.rb', line 54 attribute :mode |
#name ⇒ String
Returns Name of the template.
14 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_template.rb', line 14 attribute :name |
#os_type ⇒ String?
Returns OS type that best represents the OS of this template.
30 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_template.rb', line 30 attribute :os_type |
#password_enabled ⇒ Boolean?
Returns Enable template password reset support.
86 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_template.rb', line 86 attribute :password_enabled |
#poll_async ⇒ Boolean?
Returns Poll async jobs until job has finished.
121 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_template.rb', line 121 attribute :poll_async |
#project ⇒ Object?
Returns Name of the project the template to be registered in.
64 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_template.rb', line 64 attribute :project |
#requires_hvm ⇒ Object?
Returns Whether the template requires HVM or not.,Only considered while creating the template.
83 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_template.rb', line 83 attribute :requires_hvm |
#snapshot ⇒ String?
Returns Name of the snapshot, created from the VM ROOT volume, the template will be created from.,C(vm) is required together with this argument.
26 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_template.rb', line 26 attribute :snapshot |
#sshkey_enabled ⇒ Object?
Returns True if the template supports the sshkey upload feature.,Only considered if C(url) is used (API limitation).
93 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_template.rb', line 93 attribute :sshkey_enabled |
#state ⇒ :present, ...
Returns State of the template.
117 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_template.rb', line 117 attribute :state |
#tags ⇒ Object?
Returns List of tags. Tags are a list of dictionaries having keys C(key) and C(value).,To delete all tags, set a empty list e.g. C(tags: []).
125 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_template.rb', line 125 attribute :tags |
#template_filter ⇒ :all, ...
Returns Name of the filter used to search for the template.,The filter C(all) was added in 2.7.
71 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_template.rb', line 71 attribute :template_filter |
#template_find_options ⇒ :display_text, ...
Returns Options to find a template uniquely.,More than one allowed.
75 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_template.rb', line 75 attribute :template_find_options |
#template_tag ⇒ Object?
Returns The tag for this template.
90 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_template.rb', line 90 attribute :template_tag |
#url ⇒ String?
Returns URL of where the template is hosted on I(state=present).,URL to which the template would be extracted on I(state=extracted).,Mutually exclusive with C(vm).
18 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_template.rb', line 18 attribute :url |
#vm ⇒ String?
Returns VM name the template will be created from its volume or alternatively from a snapshot.,VM must be in stopped state if created from its volume.,Mutually exclusive with C(url).
22 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_template.rb', line 22 attribute :vm |
#zone ⇒ String?
Returns Name of the zone you wish the template to be registered or deleted from.,If not specified, first found zone will be used.
67 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_template.rb', line 67 attribute :zone |