Module: Rubineti::Cluster
- Defined in:
- lib/rubineti/compute/cluster.rb
Instance Method Summary collapse
-
#cluster_features ⇒ Object
Returns a list of features supported by the RAPI server.
-
#cluster_info ⇒ Object
Returns a list of cluster information.
-
#cluster_os_list ⇒ Object
Return a list of all OSes.
-
#cluster_redistribute_config ⇒ Object
Redistribute configuration to all nodes.
-
#cluster_tags_create(params = {}) ⇒ Object
Adds a set of tags.
-
#cluster_tags_delete(params = {}) ⇒ Object
Delete tags.
-
#cluster_tags_list ⇒ Object
Returns the cluster tags.
-
#cluster_version ⇒ Object
Returns the cluster API version.
Instance Method Details
#cluster_features ⇒ Object
Returns a list of features supported by the RAPI server.
6 7 8 9 |
# File 'lib/rubineti/compute/cluster.rb', line 6 def cluster_features warn "WARNING: Cluster#cluster_features not implemented." # get "/#{Ganeti::Version}/features" end |
#cluster_info ⇒ Object
Returns a list of cluster information.
14 15 16 |
# File 'lib/rubineti/compute/cluster.rb', line 14 def cluster_info get "/#{Ganeti::Version}/info" end |
#cluster_os_list ⇒ Object
Return a list of all OSes.
70 71 72 |
# File 'lib/rubineti/compute/cluster.rb', line 70 def cluster_os_list get "/#{Ganeti::Version}/os" end |
#cluster_redistribute_config ⇒ Object
Redistribute configuration to all nodes. Returns a job_id.
22 23 24 |
# File 'lib/rubineti/compute/cluster.rb', line 22 def cluster_redistribute_config put "/#{Ganeti::Version}/redistribute-config" end |
#cluster_tags_create(params = {}) ⇒ Object
Adds a set of tags. Returns a job_id.
If the optional dry-run parameter (?dry-run=1) is provided, the job will not be actually executed, only the pre-execution checks will be done.
34 35 36 37 |
# File 'lib/rubineti/compute/cluster.rb', line 34 def params = {} warn "WARNING: Cluster#cluster_tags_create not implemented." # put "/#{Ganeti::Version}/tags", params end |
#cluster_tags_delete(params = {}) ⇒ Object
Delete tags. Returns a job_id.
If the optional dry-run parameter (?dry-run=1) is provided, the job will not be actually executed, only the pre-execution checks will be done.
47 48 49 50 |
# File 'lib/rubineti/compute/cluster.rb', line 47 def params = {} warn "WARNING: Cluster#cluster_tags_delete not implemented." # delete "/#{Ganeti::Version}/tags", params end |
#cluster_tags_list ⇒ Object
Returns the cluster tags.
55 56 57 58 |
# File 'lib/rubineti/compute/cluster.rb', line 55 def warn "WARNING: Cluster#cluster_tags_list not implemented." # get "/#{Ganeti::Version}/tags" end |
#cluster_version ⇒ Object
Returns the cluster API version.
63 64 65 |
# File 'lib/rubineti/compute/cluster.rb', line 63 def cluster_version get "/version" end |