Documentation ¶
Index ¶
- func CheckVersions(versions []Version) error
- type API
- type AnsibleInventory
- type AnsibleInventoryHost
- type AnsibleInventoryUnit
- type Config
- type Firewall
- type FirewallRule
- type Ingress
- type Network
- type Node
- type PrometheusStack
- type Provisioner
- func (p Provisioner) ApplyStage(name string) error
- func (p *Provisioner) BootstrapStage() error
- func (p Provisioner) CheckRequirements() error
- func (p *Provisioner) InstallStage() error
- func (p Provisioner) ListStages() []string
- func (p Provisioner) PrintSSHConfig() error
- func (p *Provisioner) ProvisionStage() error
- func (p *Provisioner) SetupStage() error
- type ServiceBase
- type Services
- type Version
- type Volume
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckVersions ¶
Types ¶
type AnsibleInventory ¶
type AnsibleInventory map[string]AnsibleInventoryUnit
type AnsibleInventoryHost ¶
type AnsibleInventoryUnit ¶
type AnsibleInventoryUnit struct { Hosts map[string]AnsibleInventoryHost `json:"hosts,omitempty"` Children AnsibleInventory `json:"children,omitempty"` Vars map[string]interface{} `json:"vars,omitempty"` }
type Config ¶
type Config struct { Name string `json:"name"` SSHKeys []string `json:"sshKeys"` Location string `json:"location"` Network Network `json:"network"` API API `json:"api"` Ingress Ingress `json:"ingress"` Firewall Firewall `json:"firewall"` Nodes map[string]Node `json:"nodes"` Services Services `json:"services"` }
func (*Config) GrafanaPassword ¶
func (*Config) SetDefaults ¶
func (c *Config) SetDefaults()
type Firewall ¶
type Firewall struct {
Allow map[string]FirewallRule `json:"allow"`
}
type FirewallRule ¶
type Node ¶
type Node struct { Type string `json:"type"` Role string `json:"role"` ServerType string `json:"serverType"` PrivateIP string `json:"privateIp"` PublicIP string `json:"publicIp"` Ingress bool `json:"ingress"` IngressOnly bool `json:"ingressOnly"` Backups bool `json:"backups"` Volumes map[string]Volume `json:"volumes"` }
type PrometheusStack ¶
type PrometheusStack struct { ServiceBase GrafanaHost string `json:"grafanaHost"` }
type Provisioner ¶
func New ¶
func New(configPath string, dryRun bool) Provisioner
func (Provisioner) ApplyStage ¶
func (p Provisioner) ApplyStage(name string) error
func (*Provisioner) BootstrapStage ¶
func (p *Provisioner) BootstrapStage() error
func (Provisioner) CheckRequirements ¶
func (p Provisioner) CheckRequirements() error
func (*Provisioner) InstallStage ¶
func (p *Provisioner) InstallStage() error
func (Provisioner) ListStages ¶
func (p Provisioner) ListStages() []string
func (Provisioner) PrintSSHConfig ¶
func (p Provisioner) PrintSSHConfig() error
func (*Provisioner) ProvisionStage ¶
func (p *Provisioner) ProvisionStage() error
func (*Provisioner) SetupStage ¶
func (p *Provisioner) SetupStage() error
type ServiceBase ¶
type Services ¶
type Services struct { CertManager ServiceBase `json:"certManager"` NginxIngress ServiceBase `json:"nginxIngress"` PrometheusStack PrometheusStack `json:"prometheusStack"` LVMLocalPV ServiceBase `json:"lvmLocalPv"` }
Click to show internal directories.
Click to hide internal directories.