Sha256: bc973f5c3fc17853143aa60dd9a29b53549e6790b74aeb26b99c40cdfc325e73

Contents?: true

Size: 1.67 KB

Versions: 2

Compression:

Stored size: 1.67 KB

Contents

module Rubineti
  module Cluster
    ##
    # Returns a list of features supported by the RAPI server.

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

    ##
    # Returns a list of cluster information.

    def cluster_info
      get "/#{Ganeti::Version}/info"
    end

    ##
    # Redistribute configuration to all nodes.
    # Returns a job_id.

    def cluster_redistribute_config
      put "/#{Ganeti::Version}/redistribute-config"
    end

    ##
    # 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.

    def cluster_tags_create params = {}
      warn "WARNING: Cluster#cluster_tags_create not implemented."
      # put "/#{Ganeti::Version}/tags", params
    end

    ##
    # 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.

    def cluster_tags_delete params = {}
      warn "WARNING: Cluster#cluster_tags_delete not implemented."
      # delete "/#{Ganeti::Version}/tags", params
    end

    ##
    # Returns the cluster tags.

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

    ##
    # Returns the cluster API version.

    def cluster_version
      get "/version"
    end

    ##
    # Return a list of all OSes.

    def cluster_os_list
      get "/#{Ganeti::Version}/os"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubineti-1.1.0 lib/rubineti/compute/cluster.rb
rubineti-1.0.2 lib/rubineti/compute/cluster.rb