Class: Ansible::Ruby::Modules::Clc_server
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Clc_server
- Defined in:
- lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_server.rb
Overview
An Ansible module to Create, Delete, Start and Stop servers in CenturyLink Cloud.
Instance Method Summary collapse
-
#add_public_ip ⇒ Boolean?
Whether to add a public ip to the server.
-
#additional_disks ⇒ Object?
The list of additional disks for the server.
-
#alert_policy_id ⇒ Object?
The alert policy to assign to the server.
-
#alert_policy_name ⇒ Object?
The alert policy to assign to the server.
-
#alias ⇒ Object?
The account alias to provision the servers under.
-
#anti_affinity_policy_id ⇒ Object?
The anti-affinity policy to assign to the server.
-
#anti_affinity_policy_name ⇒ Object?
The anti-affinity policy to assign to the server.
-
#configuration_id ⇒ Object?
Only required for bare metal servers.
-
#count ⇒ Integer?
The number of servers to build (mutually exclusive with exact_count).
-
#count_group ⇒ String?
Required when exact_count is specified.
-
#cpu ⇒ Integer?
How many CPUs to provision on the server.
-
#cpu_autoscale_policy_id ⇒ Object?
The autoscale policy to assign to the server.
-
#custom_fields ⇒ Object?
The list of custom fields to set on the server.
-
#description ⇒ Object?
The description to set for the server.
-
#exact_count ⇒ Integer?
Run in idempotent mode.
-
#group ⇒ String?
The Server Group to create servers under.
-
#ip_address ⇒ Object?
The IP Address for the server.
-
#location ⇒ Object?
The Datacenter to create servers in.
-
#managed_os ⇒ Boolean?
Whether to create the server as ‘Managed’ or not.
-
#memory ⇒ Integer?
Memory in GB.
-
#name ⇒ String?
A 1 to 6 character identifier to use for the server.
-
#network_id ⇒ Object?
The network UUID on which to create servers.
-
#os_type ⇒ :redHat6_64Bit, ...
Only required for bare metal servers.
-
#packages ⇒ Object?
The list of blue print packages to run on the server after its created.
-
#password ⇒ Object?
Password for the administrator / root user.
-
#primary_dns ⇒ Object?
Primary DNS used by the server.
-
#public_ip_ports ⇒ Object?
A list of ports to allow on the firewall to the servers public ip, if add_public_ip is set to True.
-
#public_ip_protocol ⇒ :TCP, ...
The protocol to use for the public ip if add_public_ip is set to True.
-
#secondary_dns ⇒ Object?
Secondary DNS used by the server.
-
#server_ids ⇒ Object?
Required for started, stopped, and absent states.
-
#source_server_password ⇒ Object?
The password for the source server if a clone is specified.
-
#state ⇒ :present, ...
The state to insure that the provided resources are in.
-
#storage_type ⇒ :standard, ...
The type of storage to attach to the server.
-
#template ⇒ String?
The template to use for server creation.
-
#ttl ⇒ Object?
The time to live for the server in seconds.
-
#type ⇒ :standard, ...
The type of server to create.
-
#wait ⇒ Boolean?
Whether to wait for the provisioning tasks to finish before returning.
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
#add_public_ip ⇒ Boolean?
Returns Whether to add a public ip to the server.
14 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_server.rb', line 14 attribute :add_public_ip |
#additional_disks ⇒ Object?
Returns The list of additional disks for the server.
11 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_server.rb', line 11 attribute :additional_disks |
#alert_policy_id ⇒ Object?
Returns The alert policy to assign to the server. This is mutually exclusive with ‘alert_policy_name’.
27 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_server.rb', line 27 attribute :alert_policy_id |
#alert_policy_name ⇒ Object?
Returns The alert policy to assign to the server. This is mutually exclusive with ‘alert_policy_id’.
30 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_server.rb', line 30 attribute :alert_policy_name |
#alias ⇒ Object?
Returns The account alias to provision the servers under.
18 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_server.rb', line 18 attribute :alias |
#anti_affinity_policy_id ⇒ Object?
Returns The anti-affinity policy to assign to the server. This is mutually exclusive with ‘anti_affinity_policy_name’.
21 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_server.rb', line 21 attribute :anti_affinity_policy_id |
#anti_affinity_policy_name ⇒ Object?
Returns The anti-affinity policy to assign to the server. This is mutually exclusive with ‘anti_affinity_policy_id’.
24 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_server.rb', line 24 attribute :anti_affinity_policy_name |
#configuration_id ⇒ Object?
Returns Only required for bare metal servers. Specifies the identifier for the specific configuration type of bare metal server to deploy.
127 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_server.rb', line 127 attribute :configuration_id |
#count ⇒ Integer?
Returns The number of servers to build (mutually exclusive with exact_count).
33 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_server.rb', line 33 attribute :count |
#count_group ⇒ String?
Returns Required when exact_count is specified. The Server Group use to determine how many severs to deploy.
37 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_server.rb', line 37 attribute :count_group |
#cpu ⇒ Integer?
Returns How many CPUs to provision on the server.
41 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_server.rb', line 41 attribute :cpu |
#cpu_autoscale_policy_id ⇒ Object?
Returns The autoscale policy to assign to the server.
45 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_server.rb', line 45 attribute :cpu_autoscale_policy_id |
#custom_fields ⇒ Object?
Returns The list of custom fields to set on the server.
48 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_server.rb', line 48 attribute :custom_fields |
#description ⇒ Object?
Returns The description to set for the server.
51 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_server.rb', line 51 attribute :description |
#exact_count ⇒ Integer?
Returns Run in idempotent mode. Will insure that this exact number of servers are running in the provided group, creating and deleting them to reach that count. Requires count_group to be set.
54 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_server.rb', line 54 attribute :exact_count |
#group ⇒ String?
Returns The Server Group to create servers under.
58 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_server.rb', line 58 attribute :group |
#ip_address ⇒ Object?
Returns The IP Address for the server. One is assigned if not provided.
62 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_server.rb', line 62 attribute :ip_address |
#location ⇒ Object?
Returns The Datacenter to create servers in.
65 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_server.rb', line 65 attribute :location |
#managed_os ⇒ Boolean?
Returns Whether to create the server as ‘Managed’ or not.
68 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_server.rb', line 68 attribute :managed_os |
#memory ⇒ Integer?
Returns Memory in GB.
72 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_server.rb', line 72 attribute :memory |
#name ⇒ String?
Returns A 1 to 6 character identifier to use for the server. This is required when state is ‘present’.
76 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_server.rb', line 76 attribute :name |
#network_id ⇒ Object?
Returns The network UUID on which to create servers.
80 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_server.rb', line 80 attribute :network_id |
#os_type ⇒ :redHat6_64Bit, ...
Returns Only required for bare metal servers. Specifies the OS to provision with the bare metal server.
130 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_server.rb', line 130 attribute :os_type |
#packages ⇒ Object?
Returns The list of blue print packages to run on the server after its created.
83 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_server.rb', line 83 attribute :packages |
#password ⇒ Object?
Returns Password for the administrator / root user.
86 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_server.rb', line 86 attribute :password |
#primary_dns ⇒ Object?
Returns Primary DNS used by the server.
89 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_server.rb', line 89 attribute :primary_dns |
#public_ip_ports ⇒ Object?
Returns A list of ports to allow on the firewall to the servers public ip, if add_public_ip is set to True.
96 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_server.rb', line 96 attribute :public_ip_ports |
#public_ip_protocol ⇒ :TCP, ...
Returns The protocol to use for the public ip if add_public_ip is set to True.
92 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_server.rb', line 92 attribute :public_ip_protocol |
#secondary_dns ⇒ Object?
Returns Secondary DNS used by the server.
99 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_server.rb', line 99 attribute :secondary_dns |
#server_ids ⇒ Object?
Returns Required for started, stopped, and absent states. A list of server Ids to insure are started, stopped, or absent.
102 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_server.rb', line 102 attribute :server_ids |
#source_server_password ⇒ Object?
Returns The password for the source server if a clone is specified.
105 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_server.rb', line 105 attribute :source_server_password |
#state ⇒ :present, ...
Returns The state to insure that the provided resources are in.
108 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_server.rb', line 108 attribute :state |
#storage_type ⇒ :standard, ...
Returns The type of storage to attach to the server.
112 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_server.rb', line 112 attribute :storage_type |
#template ⇒ String?
Returns The template to use for server creation. Will search for a template if a partial string is provided. This is required when state is ‘present’.
116 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_server.rb', line 116 attribute :template |
#ttl ⇒ Object?
Returns The time to live for the server in seconds. The server will be deleted when this time expires.
120 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_server.rb', line 120 attribute :ttl |
#type ⇒ :standard, ...
Returns The type of server to create.
123 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_server.rb', line 123 attribute :type |
#wait ⇒ Boolean?
Returns Whether to wait for the provisioning tasks to finish before returning.
134 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/centurylink/clc_server.rb', line 134 attribute :wait |