mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-11 05:17:41 +03:00
feature #661: Update conf file
This commit is contained in:
parent
cc4da0210d
commit
f9583e415b
@ -17,12 +17,14 @@
|
|||||||
require 'one_helper'
|
require 'one_helper'
|
||||||
|
|
||||||
class OneHostHelper < OpenNebulaHelper::OneHelper
|
class OneHostHelper < OpenNebulaHelper::OneHelper
|
||||||
TABLE_CONF_FILE="#{OpenNebulaHelper::TABLE_CONF_PATH}/onehost.yaml"
|
|
||||||
|
|
||||||
def self.rname
|
def self.rname
|
||||||
"HOST"
|
"HOST"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def self.conf_file
|
||||||
|
"onehost.yaml"
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def factory(id=nil)
|
def factory(id=nil)
|
||||||
|
@ -17,12 +17,14 @@
|
|||||||
require 'one_helper'
|
require 'one_helper'
|
||||||
|
|
||||||
class OneImageHelper < OpenNebulaHelper::OneHelper
|
class OneImageHelper < OpenNebulaHelper::OneHelper
|
||||||
TABLE_CONF_FILE="#{OpenNebulaHelper::TABLE_CONF_PATH}/oneimage.yaml"
|
|
||||||
|
|
||||||
def self.rname
|
def self.rname
|
||||||
"IMAGE"
|
"IMAGE"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def self.conf_file
|
||||||
|
"oneimage.yaml"
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def factory(id=nil)
|
def factory(id=nil)
|
||||||
|
@ -17,12 +17,14 @@
|
|||||||
require 'one_helper'
|
require 'one_helper'
|
||||||
|
|
||||||
class OneTemplateHelper < OpenNebulaHelper::OneHelper
|
class OneTemplateHelper < OpenNebulaHelper::OneHelper
|
||||||
TABLE_CONF_FILE="#{OpenNebulaHelper::TABLE_CONF_PATH}/onetemplate.yaml"
|
|
||||||
|
|
||||||
def self.rname
|
def self.rname
|
||||||
"TEMPLATE"
|
"TEMPLATE"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def self.conf_file
|
||||||
|
"onetemplate.yaml"
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def factory(id=nil)
|
def factory(id=nil)
|
||||||
|
@ -17,12 +17,14 @@
|
|||||||
require 'one_helper'
|
require 'one_helper'
|
||||||
|
|
||||||
class OneUserHelper < OpenNebulaHelper::OneHelper
|
class OneUserHelper < OpenNebulaHelper::OneHelper
|
||||||
TABLE_CONF_FILE="#{OpenNebulaHelper::TABLE_CONF_PATH}/oneuser.yaml"
|
|
||||||
|
|
||||||
def self.rname
|
def self.rname
|
||||||
"USER"
|
"USER"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def self.conf_file
|
||||||
|
"oneuser.yaml"
|
||||||
|
end
|
||||||
|
|
||||||
def self.password_to_str_desc
|
def self.password_to_str_desc
|
||||||
"TBD"
|
"TBD"
|
||||||
end
|
end
|
||||||
|
@ -17,12 +17,14 @@
|
|||||||
require 'one_helper'
|
require 'one_helper'
|
||||||
|
|
||||||
class OneVMHelper < OpenNebulaHelper::OneHelper
|
class OneVMHelper < OpenNebulaHelper::OneHelper
|
||||||
TABLE_CONF_FILE="#{OpenNebulaHelper::TABLE_CONF_PATH}/onevm.yaml"
|
|
||||||
|
|
||||||
def self.rname
|
def self.rname
|
||||||
"VM"
|
"VM"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def self.conf_file
|
||||||
|
"onevm.yaml"
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def factory(id=nil)
|
def factory(id=nil)
|
||||||
|
@ -17,12 +17,14 @@
|
|||||||
require 'one_helper'
|
require 'one_helper'
|
||||||
|
|
||||||
class OneVNetHelper < OpenNebulaHelper::OneHelper
|
class OneVNetHelper < OpenNebulaHelper::OneHelper
|
||||||
TABLE_CONF_FILE="#{OpenNebulaHelper::TABLE_CONF_PATH}/onevnet.yaml"
|
|
||||||
|
|
||||||
def self.rname
|
def self.rname
|
||||||
"VNET"
|
"VNET"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def self.conf_file
|
||||||
|
"onevnet.yaml"
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def factory(id=nil)
|
def factory(id=nil)
|
||||||
|
Loading…
Reference in New Issue
Block a user