Documentation ¶
Index ¶
- Variables
- func AdminOrchCmd(homedir string, caaspdir string, s *CAASPOut, option string, command string) (string, string)
- func CheckRebootNeeded(IP string, a *CAASPOut, homedir string, caaspdir string, ...)
- func CheckSaltMinions(homedir string, caaspdir string)
- func CheckVelumUp(page string) float64
- func CheckVersions()
- func CmdRun(dir, openstackAPIauth, command string) (string, string)
- func CreateAcc(nodes *CAASPOut)
- func Download(url string) error
- func FirstSetup(nodes *CAASPOut)
- func InstallUI(nodes *CAASPOut, Cluster *CaaSPCluster)
- func NiceBufRunner(cmd *exec.Cmd) (string, string)
- func RunScript(command string, env EnvOS) (string, string)
- func TfInit(dir string)
- func VelumUpdater(homedir string, caaspdir string, nodes *CAASPOut)
- type Admin
- type CAASPOut
- type CaaSPCluster
- type EnvOS
- type Machines
- type OSAPI
- type PackageData
- type SESOut
- type SaltCluster
Constants ¶
This section is empty.
Variables ¶
View Source
var CulsterTempl = `` /* 379-byte string literal not displayed */
Functions ¶
func AdminOrchCmd ¶
func CheckRebootNeeded ¶
func CheckSaltMinions ¶
func CheckVelumUp ¶
CheckVelumUp returns Velum worm up time in Seconds
func CheckVersions ¶
func CheckVersions()
func FirstSetup ¶
func FirstSetup(nodes *CAASPOut)
func InstallUI ¶
func InstallUI(nodes *CAASPOut, Cluster *CaaSPCluster)
InstallUI handles Velum interactions
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 }
var Cluster CaaSPCluster
func NodesAdder ¶
func NodesAdder(dir string, append string, nodes *CAASPOut, Firsttime bool) *CaaSPCluster
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
func (*SaltCluster) SSHCmd ¶
func (s *CAASPOut) SSHCommand(cmd ...string) *exec.Cmd { arg := append( []string{"-o", "StrictHostKeyChecking=no", "-o", "UserKnownHostsFile /dev/null", "-i", "/app/caasp-openstack-terraform/id_caasp", fmt.Sprintf("root@%s", s.IPAdminExt.Value), }, cmd..., ) return exec.Command("ssh", arg...) }
-------------------HERE
Click to show internal directories.
Click to hide internal directories.