Module: Rubineti::Cluster

Defined in:
lib/rubineti/compute/cluster.rb

Instance Method Summary collapse

Instance Method Details

#cluster_featuresObject

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_infoObject

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_listObject

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_configObject

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 cluster_tags_create 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 cluster_tags_delete params = {}
  warn "WARNING: Cluster#cluster_tags_delete not implemented."
  # delete "/#{Ganeti::Version}/tags", params
end

#cluster_tags_listObject

Returns the cluster tags.



55
56
57
58
# File 'lib/rubineti/compute/cluster.rb', line 55

def cluster_tags_list
  warn "WARNING: Cluster#cluster_tags_list not implemented."
  # get "/#{Ganeti::Version}/tags"
end

#cluster_versionObject

Returns the cluster API version.



63
64
65
# File 'lib/rubineti/compute/cluster.rb', line 63

def cluster_version
  get "/version"
end