Documentation ¶
Index ¶
- Constants
- Variables
- func AdminOrchCmd(homedir string, caaspdir string, s *CAASPOut, option string, command string) (string, string)
- func AppendParse(appendnodes string) (int, int)
- func ByHandUpdater(homedir string, caaspdir string, list map[string]SaltCluster)
- func CheckIfIP(IP string)
- func CheckOS() (string, error)
- func CheckRebootNeeded(IP string, a *CAASPOut, homedir string, caaspdir string, ...)
- func CheckSaltMinions(homedir string, caaspdir string) map[string]SaltCluster
- func CheckVelumUp(page string) float64
- func CheckVersions()
- func CmdRun(dir, openstackAPIauth, command string) (string, string)
- func CreateAcc(nodes *CAASPOut)
- func CreateCaasp4(action string) (string, string)
- func Download(url string) error
- func FirstSetup(nodes *CAASPOut)
- func FolderFinder(sysos string, skubarpm bool) (string, string)
- func InstallUI(nodes *CAASPOut, Cluster *CaaSPCluster)
- func NiceBufRunner(cmd *exec.Cmd) (string, string)
- func NiceBuffRunner(cmd *exec.Cmd, workdir string) (string, string)
- func OpenstackExporter(Mkcaasproot string)
- func RunScript(command string, env EnvOS) (string, string)
- func TfInit(dir string)
- func VMWareexporter()
- func VelumUpdater(homedir string, caaspdir string, nodes *CAASPOut)
- type Admin
- type CAASPOut
- type CaaSPCluster
- type CriticalChain
- type EnvOS
- type K8s
- type MKCaaSPCfg
- type Machines
- type Node
- type OSAPI
- type PackageData
- type SESOut
- type SaltCluster
- type Setup
- type SkubaCluster
- func (cluster *SkubaCluster) BootstrapMaster(mode string) (string, string)
- func (cluster *SkubaCluster) CheckSkuba() (string, string)
- func (cluster *SkubaCluster) ClusterCheckBuilder(mode string) map[string]Node
- func (cluster *SkubaCluster) CopyAdminConf() (string, string)
- func (cluster *SkubaCluster) EnvOSExporter() []string
- func (cluster *SkubaCluster) JoinWorkers() (string, string)
- func (cluster *SkubaCluster) NodesAdderV4()
- func (cluster *SkubaCluster) RebootNodes(flagg string) (string, string)
- func (cluster *SkubaCluster) RefreshSkubaCluster()
- func (cluster *SkubaCluster) RunGinkgo() (string, string)
- func (cluster *SkubaCluster) SkubaInit() (string, string)
- func (cluster *SkubaCluster) TFParser() error
- type StringOrSlice
- type Systemd
- type TFOutput
- type TFOutput_openstack
- type TFOutput_vmware
- type TFTag
- type TFTagLoadBalancer
- type TFTag_variable
- type VMWare
Constants ¶
const ( VmwareVarsTempl = `` /* 3559-byte string literal not displayed */ OpenstackVarsTempl = `` /* 4040-byte string literal not displayed */ )
Variables ¶
var ( Homedir string Mkcaasproot string Config *MKCaaSPCfg //CaaSP4CFG(Mkcaasproot) Skubaroot string Vmwaretfdir string Openstacktfdir string Myclusterdir string Testworkdir string ENV2 = os.Environ() Workdir string )
var CulsterTempl = `` /* 379-byte string literal not displayed */
Functions ¶
func AdminOrchCmd ¶
func AppendParse ¶
func ByHandUpdater ¶
func ByHandUpdater(homedir string, caaspdir string, list map[string]SaltCluster)
func CheckIfIP ¶
func CheckIfIP(IP string)
/-----------------------WORKS ONLY FOR IPV4--------------------------------------
func CheckRebootNeeded ¶
func CheckSaltMinions ¶
func CheckSaltMinions(homedir string, caaspdir string) map[string]SaltCluster
func CheckVelumUp ¶
CheckVelumUp returns Velum worm up time in Seconds
func CheckVersions ¶
func CheckVersions()
func CreateCaasp4 ¶
func FirstSetup ¶
func FirstSetup(nodes *CAASPOut)
func InstallUI ¶
func InstallUI(nodes *CAASPOut, Cluster *CaaSPCluster)
InstallUI handles Velum interactions
func OpenstackExporter ¶
func OpenstackExporter(Mkcaasproot string)
func VMWareexporter ¶
func VMWareexporter()
func VelumUpdater ¶
Types ¶
type CAASPOut ¶
type CAASPOut struct { IPAdminExt *Admin `json:"ip_admin_external"` IPAdminInt *Admin `json:"ip_admin_internal"` IPMastersExt Machines `json:"ip_masters"` IPWorkersExt Machines `json:"ip_workers"` }
CAASPOut is holding caasp terraform output json variables
func CAASPOutReturner ¶
type CaaSPCluster ¶
type CaaSPCluster struct { ImageName string IntNet string ExtNet string AdmSize string MastSize string MastCount int WorkSize string WorkCount int DnsDomain string DnsEntry int StackName string Diff int //----it is to indicate how many more new nodes you add when appending new nodes to the cluster }
CaSPCluster is holding all opentsack.tfvars info
var Cluster CaaSPCluster
func NodesAdder ¶
func NodesAdder(dir string, append string, nodes *CAASPOut, Firsttime bool) *CaaSPCluster
type CriticalChain ¶
type MKCaaSPCfg ¶
type MKCaaSPCfg struct { Platform string `json: "platform"` Deploy string `json: "deploy"` Vmware *VMWare `json: "vmware"` Skubaroot string `json: "skubaroot"` ClusterName string `json: "clustername"` }
func CaaSP4CFG ¶
func CaaSP4CFG(mkcaasproot string) (*MKCaaSPCfg, error)
type Node ¶
type Node struct { IP string NodeName string K8sName string Role string Username string Network bool Port22 bool SSH bool ContHealth bool PackHealth bool RepoHealth bool Services bool Systemd Systemd K8sHealth *K8s }
func CheckIPSSH ¶
func CheckNodename ¶
func CheckSystemd ¶
type OSAPI ¶
type OSAPI struct { AuthURL string RegionName string ProjectName string UserDomainName string IdentityAPIVersion string Interface string Username string Password string //[]byte ProjectID string Insecure string }
OSAPI holds openstack API variables
type PackageData ¶
func RpmOutputParser ¶
func RpmOutputParser(output string) *PackageData
type SESOut ¶
type SESOut struct { K8SSC Machines `json:"k8s_StorageClass_internal_ip"` K8SCS Machines `json:"ceph_secret"` IPAdminExt *Admin `json:"external_ip_admin"` IPAdminInt Machines `json:"internal_ip_admin"` IPMonsExt Machines `json:"external_ip_mons"` IPMonsInt Machines `json:"internal_ip_mons"` IPOsdsInt Machines `json:"internal_ip_osds"` }
SESOut is holding ses terraform output json variables
type SaltCluster ¶
SaltCluster connects hashname of all nodes + hostname and IPs all together
type SkubaCluster ¶
type SkubaCluster struct { ClusterName string Diagnosis map[string]Node TF_ostack *TFOutput_openstack TF_vmware *TFOutput_vmware Testdir string Setup Setup `json: setup` }
func (*SkubaCluster) BootstrapMaster ¶
func (cluster *SkubaCluster) BootstrapMaster(mode string) (string, string)
------------------Bootstrapping Masters on CaaSP4 with Skuba---------------
func (*SkubaCluster) CheckSkuba ¶
func (cluster *SkubaCluster) CheckSkuba() (string, string)
func (*SkubaCluster) ClusterCheckBuilder ¶
func (cluster *SkubaCluster) ClusterCheckBuilder(mode string) map[string]Node
func (*SkubaCluster) CopyAdminConf ¶
func (cluster *SkubaCluster) CopyAdminConf() (string, string)
---------copying the admin conf to .kube/conf ...
func (*SkubaCluster) EnvOSExporter ¶
func (cluster *SkubaCluster) EnvOSExporter() []string
func (*SkubaCluster) JoinWorkers ¶
func (cluster *SkubaCluster) JoinWorkers() (string, string)
------------Joining workers with Skuba-------------------------
func (*SkubaCluster) NodesAdderV4 ¶
func (cluster *SkubaCluster) NodesAdderV4()
func (*SkubaCluster) RebootNodes ¶
func (cluster *SkubaCluster) RebootNodes(flagg string) (string, string)
func (*SkubaCluster) RefreshSkubaCluster ¶
func (cluster *SkubaCluster) RefreshSkubaCluster()
func (*SkubaCluster) RunGinkgo ¶
func (cluster *SkubaCluster) RunGinkgo() (string, string)
func (*SkubaCluster) SkubaInit ¶
func (cluster *SkubaCluster) SkubaInit() (string, string)
------------------Initializing CaaSP4 Cluster with Skuba-----------------
func (*SkubaCluster) TFParser ¶
func (cluster *SkubaCluster) TFParser() error
type StringOrSlice ¶
type StringOrSlice interface{}
type Systemd ¶
type Systemd struct { CriticalChain []CriticalChain AnalyzeBlame string AllFine bool }
type TFOutput_openstack ¶
type TFOutput_openstack struct { IP_Load_Balancer *TFTagLoadBalancer `json: ip_load_balancer` IP_Masters *TFTag `json: ip_masters` IP_Workers *TFTag `json: ip_workers` }
type TFOutput_vmware ¶
type TFTagLoadBalancer ¶
type TFTag_variable ¶
type TFTag_variable struct { Sensitive bool `json: sensitive` Type string `json: type` Value StringOrSlice `json: value` }