Documentation

Overview

    Package openstack provides an API of JSON-RPC 2.0 for Playback.

    Index

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    This section is empty.

    Types

    type Args

    type Args struct {
    	provisioning.ExtraVars
    }

      Args takes extra-vars of Playback

      type OpenStack

      type OpenStack struct{}

        OpenStack API.

        func (*OpenStack) AddCephMon

        func (o *OpenStack) AddCephMon(r *http.Request, args *Args, result *Result) error

          AddCephMon add the Ceph monitors.

          Args: {"Node": string}
          

          func (*OpenStack) AddOSD

          func (o *OpenStack) AddOSD(r *http.Request, args *Args, result *Result) error

            AddOSD add the Ceph OSDs.

            Args: {"NodeSlice[0]": string, "NodeSlice[1]": string}
            

            func (*OpenStack) AutoStart

            func (o *OpenStack) AutoStart(r *http.Request, args *Args, result *Result) error

              AutoStart fix the service can not auto start when sys booting.

              func (*OpenStack) CephAdmin

              func (o *OpenStack) CephAdmin(r *http.Request, args *Args, result *Result) error

                CephAdmin deploy the Ceph admin node.

                func (*OpenStack) CephClient

                func (o *OpenStack) CephClient(r *http.Request, args *Args, result *Result) error

                  CephClient deploy the Ceph client.

                  Args: {"ClientName": string}
                  

                  func (*OpenStack) CephInitMon

                  func (o *OpenStack) CephInitMon(r *http.Request, args *Args, result *Result) error

                    CephInitMon deploy the Ceph initial monitor.

                    func (*OpenStack) CephUserPool

                    func (o *OpenStack) CephUserPool(r *http.Request, args *Args, result *Result) error

                      CephUserPool creates the cinder ceph user and pool name.

                      func (*OpenStack) CinderAPI

                      func (o *OpenStack) CinderAPI(r *http.Request, args *Args, result *Result) error

                        CinderAPI deploy cinder-api.

                        Args: {"HostName": string}
                        

                        func (*OpenStack) CinderVolume

                        func (o *OpenStack) CinderVolume(r *http.Request, args *Args, result *Result) error

                          CinderVolume deploy cinder-volume on controller node(ceph backend).

                          Args: {"HostName": string}
                          

                          func (*OpenStack) ConfigureStorageNetwork

                          func (o *OpenStack) ConfigureStorageNetwork(r *http.Request, args *Args, result *Result) error

                            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 (*OpenStack) Dashboard

                            func (o *OpenStack) Dashboard(r *http.Request, args *Args, result *Result) error

                              Dashboard deploy Horizon.

                              func (*OpenStack) Designate

                              func (o *OpenStack) Designate(r *http.Request, args *Args, result *Result) error

                                Designate deploy DNS as a Service.

                                func (*OpenStack) DistSwiftRingConf

                                func (o *OpenStack) DistSwiftRingConf(r *http.Request, args *Args, result *Result) error

                                  DistSwiftRingConf destribute Swift ring configuration files.

                                  func (*OpenStack) FinalizeSwift

                                  func (o *OpenStack) FinalizeSwift(r *http.Request, args *Args, result *Result) error

                                    FinalizeSwift finalize Swift installation.

                                    Args: {"Hosts": string}
                                    

                                    func (*OpenStack) FormatDiskForSwift

                                    func (o *OpenStack) FormatDiskForSwift(r *http.Request, args *Args, result *Result) error

                                      FormatDiskForSwift formats devices for Swift Storage (sdb1 and sdc1).

                                      Args: {"HostName": string}
                                      

                                      func (*OpenStack) GetCephKey

                                      func (o *OpenStack) GetCephKey(r *http.Request, args *Args, result *Result) error

                                        GetCephKey add Ceph initial monitors and gather the keys.

                                        func (*OpenStack) Glance

                                        func (o *OpenStack) Glance(r *http.Request, args *Args, result *Result) error

                                          Glance deploy Glance HA. Args: {"HostName": string}

                                          func (*OpenStack) Heat

                                          func (o *OpenStack) Heat(r *http.Request, args *Args, result *Result) error

                                            Heat deploy orchestration components(heat).

                                            Args: {"HostName": string}
                                            

                                            func (*OpenStack) InitSwiftRings

                                            func (o *OpenStack) InitSwiftRings(r *http.Request, args *Args, result *Result) error

                                              InitSwiftRings initial Swift rings.

                                              Args: {"SwiftStorageStorageIP[0]": string, "SwiftStorageStorageIP[1]": string}
                                              

                                              func (*OpenStack) Keystone

                                              func (o *OpenStack) Keystone(r *http.Request, args *Args, result *Result) error

                                                Keystone method deploy the Keystone components.

                                                Args: {"HostName": string, }
                                                

                                                func (*OpenStack) KvmToDocker

                                                func (o *OpenStack) KvmToDocker(r *http.Request, args *Args, result *Result) error

                                                  KvmToDocker converts kvm to docker(OPTIONAL).

                                                  func (*OpenStack) LBOptimize

                                                  func (o *OpenStack) LBOptimize(r *http.Request, args *Args, result *Result) error

                                                    LBOptimize optimizing load balancer.

                                                    func (*OpenStack) LoadBalancer

                                                    func (o *OpenStack) LoadBalancer(r *http.Request, args *Args, result *Result) error

                                                      LoadBalancer deploy a HAProxy and Keepalived for OpenStack HA.

                                                      Args: {"HostName": string, "RouterID": string, "State": string, "Priority": int}
                                                      

                                                      func (*OpenStack) MariadbCluster

                                                      func (o *OpenStack) MariadbCluster(r *http.Request, args *Args, result *Result) error

                                                        MariadbCluster deploy MariaDB Cluster.

                                                        Args: {"HostName": string, "MyIP": string}
                                                        

                                                        func (*OpenStack) NovaComputes

                                                        func (o *OpenStack) NovaComputes(r *http.Request, args *Args, result *Result) error

                                                          NovaComputes deploy Nova computes.

                                                          Args: {"HostName": string, "MyIP": string}
                                                          

                                                          func (*OpenStack) NovaController

                                                          func (o *OpenStack) NovaController(r *http.Request, args *Args, result *Result) error

                                                            NovaController deploy Nova controller.

                                                            Args: {"HostName": string}
                                                            

                                                            func (*OpenStack) NovaNetwork

                                                            func (o *OpenStack) NovaNetwork(r *http.Request, args *Args, result *Result) error

                                                              NovaNetwork deploy legacy networking nova-network(FLATdhcp Only).

                                                              Args: {"HostName": string, "MyIP": string}
                                                              

                                                              func (*OpenStack) PrepareBasicEnvirionment

                                                              func (o *OpenStack) PrepareBasicEnvirionment(r *http.Request, args *Args, result *Result) error

                                                                PrepareBasicEnvirionment prepares OpenStack basic environment.

                                                                func (*OpenStack) RabbtmqCluster

                                                                func (o *OpenStack) RabbtmqCluster(r *http.Request, args *Args, result *Result) error

                                                                  RabbtmqCluster deploy RabbitMQ Cluster.

                                                                  Args: {"HostName": string}
                                                                  

                                                                  func (*OpenStack) RestartCephDeps

                                                                  func (o *OpenStack) RestartCephDeps(r *http.Request, args *Args, result *Result) error

                                                                    RestartCephDeps restart volume service dependency to take effect for ceph backend.

                                                                    func (*OpenStack) SwiftProxy

                                                                    func (o *OpenStack) SwiftProxy(r *http.Request, args *Args, result *Result) error

                                                                      SwiftProxy deploy Swift proxy HA.

                                                                      Args: {"HostName": string}
                                                                      

                                                                      func (*OpenStack) SwiftStorage

                                                                      func (o *OpenStack) SwiftStorage(r *http.Request, args *Args, result *Result) error

                                                                        SwiftStorage deploy Swift storage.

                                                                        Args: {"HostName": string}
                                                                        

                                                                        func (*OpenStack) SyncCephKey

                                                                        func (o *OpenStack) SyncCephKey(r *http.Request, args *Args, result *Result) error

                                                                          SyncCephKey copy the Ceph keys to nodes.

                                                                          Args: {"Node": string}
                                                                          

                                                                          type Result

                                                                          type Result interface{}

                                                                            Result contains the API call results.

                                                                            Source Files

                                                                            Directories

                                                                            Path Synopsis
                                                                            Package client provides a playback api client for ff command line.
                                                                            Package client provides a playback api client for ff command line.
                                                                            Package main is the JSON-RPC 2.0 API server for playback.
                                                                            Package main is the JSON-RPC 2.0 API server for playback.