Пример #1
0
// Keystone method deploy the Keystone components.
//  Args: {"HostName": string, }
func (o *OpenStack) Keystone(r *http.Request, args *Args, result *Result) error {
	i := provisioning.OpenStack(args)
	*result = i.Keystone()
	return nil
}
Пример #2
0
// PrepareBasicEnvirionment prepares OpenStack basic environment.
func (o *OpenStack) PrepareBasicEnvirionment(r *http.Request, args *Args, result *Result) error {
	i := provisioning.OpenStack(args)
	*result = i.PrepareBasicEnvirionment()
	return nil
}
Пример #3
0
// RabbtmqCluster deploy RabbitMQ Cluster.
//  Args: {"HostName": string}
func (o *OpenStack) RabbtmqCluster(r *http.Request, args *Args, result *Result) error {
	i := provisioning.OpenStack(args)
	*result = i.RabbtmqCluster()
	return nil
}
Пример #4
0
// LoadBalancer deploy a HAProxy and Keepalived for OpenStack HA.
//  Args: {"HostName": string, "RouterID": string, "State": string, "Priority": int}
func (o *OpenStack) LoadBalancer(r *http.Request, args *Args, result *Result) error {
	i := provisioning.OpenStack(args)
	*result = i.LoadBalancer()
	return nil
}
Пример #5
0
// LBOptimize optimizing load balancer.
func (o *OpenStack) LBOptimize(r *http.Request, args *Args, result *Result) error {
	i := provisioning.OpenStack(args)
	*result = i.LBOptimize()
	return nil
}
Пример #6
0
// GetCephKey add Ceph initial monitors and gather the keys.
func (o *OpenStack) GetCephKey(r *http.Request, args *Args, result *Result) error {
	i := provisioning.OpenStack(args)
	*result = i.GetCephKey()
	return nil
}
Пример #7
0
// KvmToDocker converts kvm to docker(OPTIONAL).
func (o *OpenStack) KvmToDocker(r *http.Request, args *Args, result *Result) error {
	i := provisioning.OpenStack(args)
	*result = i.KvmToDocker()
	return nil
}
Пример #8
0
// Dashboard deploy Horizon.
func (o *OpenStack) Dashboard(r *http.Request, args *Args, result *Result) error {
	i := provisioning.OpenStack(args)
	*result = i.Dashboard()
	return nil
}
Пример #9
0
// NovaNetwork deploy legacy networking nova-network(FLATdhcp Only).
//  Args: {"HostName": string, "MyIP": string}
func (o *OpenStack) NovaNetwork(r *http.Request, args *Args, result *Result) error {
	i := provisioning.OpenStack(args)
	*result = i.NovaNetwork()
	return nil
}
Пример #10
0
// RestartCephDeps restart volume service dependency to take effect for ceph backend.
func (o *OpenStack) RestartCephDeps(r *http.Request, args *Args, result *Result) error {
	i := provisioning.OpenStack(args)
	*result = i.RestartCephDeps()
	return nil
}
Пример #11
0
// ConfigureStorageNetwork takes playback-nic to set up the storage network.
//  Args: {"PlaybackNic.Purge": bool, "PlaybackNic.Public": bool, "PlaybackNic.Private": bool, "PlaybackNic.Host": string, "PlaybackNic.User": string, "PlaybackNic.Address": string, "PlaybackNic.NIC": string, "PlaybackNic.Netmask": string, "PlaybackNic.Gateway": string}
func (o *OpenStack) ConfigureStorageNetwork(r *http.Request, args *Args, result *Result) error {
	i := provisioning.OpenStack(args)
	*result = i.ConfigureStorageNetwork()
	return nil
}
Пример #12
0
// CinderVolume deploy cinder-volume on controller node(ceph backend).
//  Args: {"HostName": string}
func (o *OpenStack) CinderVolume(r *http.Request, args *Args, result *Result) error {
	i := provisioning.OpenStack(args)
	*result = i.CinderVolume()
	return nil
}
Пример #13
0
// CephUserPool creates the cinder ceph user and pool name.
func (o *OpenStack) CephUserPool(r *http.Request, args *Args, result *Result) error {
	i := provisioning.OpenStack(args)
	*result = i.CephUserPool()
	return nil
}
Пример #14
0
// AddCephMon add the Ceph monitors.
//  Args: {"Node": string}
func (o *OpenStack) AddCephMon(r *http.Request, args *Args, result *Result) error {
	i := provisioning.OpenStack(args)
	*result = i.AddCephMon()
	return nil
}
Пример #15
0
// FormatDiskForSwift formats devices for Swift Storage (sdb1 and sdc1).
//  Args: {"HostName": string}
func (o *OpenStack) FormatDiskForSwift(r *http.Request, args *Args, result *Result) error {
	i := provisioning.OpenStack(args)
	*result = i.FormatDiskForSwift()
	return nil
}
Пример #16
0
// AutoStart fix the service can not auto start when sys booting.
func (o *OpenStack) AutoStart(r *http.Request, args *Args, result *Result) error {
	i := provisioning.OpenStack(args)
	*result = i.AutoStart()
	return nil
}
Пример #17
0
// SwiftProxy deploy Swift proxy HA.
//  Args: {"HostName": string}
func (o *OpenStack) SwiftProxy(r *http.Request, args *Args, result *Result) error {
	i := provisioning.OpenStack(args)
	*result = i.SwiftProxy()
	return nil
}
Пример #18
0
// DistSwiftRingConf destribute Swift ring configuration files.
func (o *OpenStack) DistSwiftRingConf(r *http.Request, args *Args, result *Result) error {
	i := provisioning.OpenStack(args)
	*result = i.DistSwiftRingConf()
	return nil
}