Documentation ¶
Index ¶
- func EDPMVarMap(varName string, tr *TripleoRole) interface{}
- func GetConfigMapping(configs embed.FS) error
- func GetServiceVars(role *TripleoRole, service string) map[string]interface{}
- func InitEDPMVarMap(configs embed.FS) error
- func ProcessConfigSettings(cdl *ConfigDownload) error
- func ProcessGetDeploySteps(cdl *ConfigDownload) error
- func SetConfigSetting(role *TripleoRole, key string, value interface{}) error
- type ArgDef
- type ArgDefs
- type ArgsType
- type Block
- type ConfigDownload
- func (cdl *ConfigDownload) Process(outDir string, configs embed.FS, serviceMap string) error
- func (cdl *ConfigDownload) ProcessConfigSettings(cfgSet map[string]interface{}, serviceMap string) error
- func (cdl *ConfigDownload) ProcessDeployStepsOne() error
- func (cdl *ConfigDownload) ProcessGlobalVars(globalVars *GlobalVars) error
- func (cdl *ConfigDownload) ProcessGroupVars(primaryRole string) (map[string]interface{}, error)
- func (cdl *ConfigDownload) ProcessPasswords(configs embed.FS, globalVars map[string]interface{}) error
- func (cdl *ConfigDownload) ProcessTripleoAnsibleInventory() error
- func (cdl *ConfigDownload) ProcessTripleoOvercloudBaremetalDeployment() error
- func (cdl *ConfigDownload) ProcessTripleoOvercloudEnvironment() error
- func (cdl *ConfigDownload) ProcessTripleoOvercloudNetworkData(networkData *TripleoOvercloudNetworkData) error
- func (cdl *ConfigDownload) ProcessTripleoOvercloudRolesData(tord *TripleoOvercloudRolesData) error
- func (cdl *ConfigDownload) SaveConfigSettings(outDir string) error
- type ConfigMapDefs
- type ConfigMapEntry
- type ConfigSettings
- type DeployStepsTasksStep
- type DownloadMap
- type Endpoints
- type GlobalVars
- type IncludeRole
- type KeystoneResources
- type Kustomize
- type KustomizeFile
- type NetworkVirtualIP
- type Networks
- type OSPNetwork
- type OSPNetworkSubnet
- type OSPNetworkSubnetPool
- type OSPService
- type OSPServicePasswords
- type PasswordMapping
- type Patches
- type Replacements
- type RoleType
- type Select
- type ServiceMapping
- type Source
- type TOBDAnsiblePlaybooks
- type TOBDDefaults
- type TOBDExtraVars
- type TOBDInstances
- type TOBDNetworkConfig
- type TOBDNetworks
- type TOBDRoleGrowvolsArgs
- type TOEControlPlaneVipData
- type TOEControlPlaneVipDataFixedIP
- type TOEControlPlaneVipDataNetwork
- type TOEControlPlaneVipDataSubnet
- type TOECtlplaneHostRoute
- type TOECtlplaneNetwork
- type TOECtlplaneNetworkAttributes
- type TOECtlplaneSubnet
- type TOEDeployedNetworkEnvironment
- type TOEDeployedNetworkEnvironmentHostRoute
- type TOEDeployedNetworkEnvironmentNetAttributes
- type TOEDeployedNetworkEnvironmentNetwork
- type TOEDeployedNetworkEnvironmentSubnet
- type TOEParameterDefaults
- type TONDAllocationPool
- type TONDInternalAPISubnet1
- type TONDRoutesIpv6
- type TONDSubnet
- type Target
- type Targets
- type TripleoHost
- type TripleoHostNetwork
- type TripleoOvercloudBaremetalDeployment
- type TripleoOvercloudEnvironment
- type TripleoOvercloudNetworkData
- type TripleoOvercloudNetworkDataEntry
- type TripleoOvercloudRolesData
- type TripleoOvercloudRolesDataEntry
- type TripleoRole
- type TripleoRoleNetwork
- type TripleoRoutes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EDPMVarMap ¶
func EDPMVarMap(varName string, tr *TripleoRole) interface{}
func GetConfigMapping ¶
func GetServiceVars ¶
func GetServiceVars(role *TripleoRole, service string) map[string]interface{}
func InitEDPMVarMap ¶
func ProcessConfigSettings ¶
func ProcessConfigSettings(cdl *ConfigDownload) error
func ProcessGetDeploySteps ¶
func ProcessGetDeploySteps(cdl *ConfigDownload) error
func SetConfigSetting ¶
func SetConfigSetting(role *TripleoRole, key string, value interface{}) error
Types ¶
type ArgDef ¶
type ArgDef struct { Name string `yaml:"name"` Role string `yaml:"role,omitempty"` Type string `yaml:"type"` Required bool `yaml:"required,omitempty"` Default interface{} `yaml:"default,omitempty"` Description string `yaml:"description,omitempty"` Elements string `yaml:"elements,omitempty"` VersionAdded string `yaml:"version_added,omitempty"` }
func (*ArgDef) ParseArgDef ¶
type ArgDefs ¶
func (*ArgDefs) ParseArgDefFile ¶
type ConfigDownload ¶
type ConfigDownload struct { Networks map[string]*OSPNetwork EnabledServices map[string]*OSPService Hosts map[string]*TripleoHost Roles map[string]*TripleoRole PrimaryRoleName string Passwords map[string]string ConfigSettings ConfigSettings }
func NewConfigDownload ¶
func NewConfigDownload() *ConfigDownload
func (*ConfigDownload) ProcessConfigSettings ¶
func (cdl *ConfigDownload) ProcessConfigSettings(cfgSet map[string]interface{}, serviceMap string) error
func (*ConfigDownload) ProcessDeployStepsOne ¶
func (cdl *ConfigDownload) ProcessDeployStepsOne() error
func (*ConfigDownload) ProcessGlobalVars ¶
func (cdl *ConfigDownload) ProcessGlobalVars(globalVars *GlobalVars) error
Must be run first
func (*ConfigDownload) ProcessGroupVars ¶
func (cdl *ConfigDownload) ProcessGroupVars(primaryRole string) (map[string]interface{}, error)
func (*ConfigDownload) ProcessPasswords ¶
func (cdl *ConfigDownload) ProcessPasswords(configs embed.FS, globalVars map[string]interface{}) error
func (*ConfigDownload) ProcessTripleoAnsibleInventory ¶
func (cdl *ConfigDownload) ProcessTripleoAnsibleInventory() error
func (*ConfigDownload) ProcessTripleoOvercloudBaremetalDeployment ¶
func (cdl *ConfigDownload) ProcessTripleoOvercloudBaremetalDeployment() error
func (*ConfigDownload) ProcessTripleoOvercloudEnvironment ¶
func (cdl *ConfigDownload) ProcessTripleoOvercloudEnvironment() error
Extract Control Plane information from the TripleoOvercloudEnvironment The Control Plane network is defined as part of the undercloud
func (*ConfigDownload) ProcessTripleoOvercloudNetworkData ¶
func (cdl *ConfigDownload) ProcessTripleoOvercloudNetworkData(networkData *TripleoOvercloudNetworkData) error
func (*ConfigDownload) ProcessTripleoOvercloudRolesData ¶
func (cdl *ConfigDownload) ProcessTripleoOvercloudRolesData(tord *TripleoOvercloudRolesData) error
func (*ConfigDownload) SaveConfigSettings ¶
func (cdl *ConfigDownload) SaveConfigSettings(outDir string) error
type ConfigMapDefs ¶
type ConfigMapDefs []ConfigMapEntry
type ConfigMapEntry ¶
type ConfigSettings ¶
type DeployStepsTasksStep ¶
type DeployStepsTasksStep []struct { IncludeRole *IncludeRole `yaml:"include_role,omitempty"` Name string `yaml:"name"` Vars map[string]interface{} `yaml:"vars,omitempty"` When string `yaml:"when"` Block []Block `yaml:"block,omitempty"` }
type DownloadMap ¶
type DownloadMap map[string]interface{}
func NewDownloadMap ¶
func NewDownloadMap() DownloadMap
func (*DownloadMap) ParseDownloadFile ¶
func (dm *DownloadMap) ParseDownloadFile(path string) error
func (*DownloadMap) ProcessDir ¶
func (dm *DownloadMap) ProcessDir(baseDir string)
type GlobalVars ¶
type GlobalVars struct { AllNodesExtraMapData map[string]interface{} `yaml:"all_nodes_extra_map_data"` CloudDomain string `yaml:"cloud_domain"` CloudNames map[string]string `yaml:"cloud_names"` ContainerCLI string `yaml:"container_cli"` ControlVirtualIP string `yaml:"control_virtual_ip"` DeployArtifactFiles []interface{} `yaml:"deploy_artifact_files"` DeployArtifactUrls []interface{} `yaml:"deploy_artifact_urls"` DeployIdentifier string `yaml:"deploy_identifier"` DeployStepsMax int64 `yaml:"deploy_steps_max"` EnableInternalTLS bool `yaml:"enable_internal_tls"` EnabledNetworks []string `yaml:"enabled_networks"` EnabledServices []string `yaml:"enabled_services"` ExtraHostsEntries []string `yaml:"extra_hosts_entries"` HideSensitiveLogs bool `yaml:"hide_sensitive_logs"` HostsEntry []string `yaml:"hosts_entry"` KeystoneResources map[string]KeystoneResources `yaml:"keystone_resources"` NetCIDRMap map[string][]string `yaml:"net_cidr_map"` NetVipMap map[string]string `yaml:"net_vip_map"` NetworkSafeDefaults bool `yaml:"network_safe_defaults"` NetworkVirtualIPS map[string]NetworkVirtualIP `yaml:"network_virtual_ips"` Networks map[string]Networks `yaml:"networks"` NovaAdditionalCell bool `yaml:"nova_additional_cell"` PingTestGatewayIPS map[string][]string `yaml:"ping_test_gateway_ips"` PingTestIPS map[string]string `yaml:"ping_test_ips"` PrimaryRoleName string `yaml:"primary_role_name"` ServiceNetMap map[string]string `yaml:"service_net_map"` UndercloudHostsEntries []string `yaml:"undercloud_hosts_entries"` ValidateControllersICMP bool `yaml:"validate_controllers_icmp"` ValidateFQDN bool `yaml:"validate_fqdn"` ValidateGatewaysICMP bool `yaml:"validate_gateways_icmp"` VipHostsEntries []string `yaml:"vip_hosts_entries"` }
func GetGlobalVars ¶
func GetGlobalVars() (*GlobalVars, error)
type IncludeRole ¶
type KeystoneResources ¶
type KustomizeFile ¶
type KustomizeFile struct { Path string `yaml:"path"` Data Kustomize `yaml:"data"` Resources map[string]interface{} `yaml:"resources"` }
func NewKustomizeFile ¶
func NewKustomizeFile() *KustomizeFile
type NetworkVirtualIP ¶
type OSPNetwork ¶
type OSPNetwork struct { Name string `json:"name"` NameLower string `json:"name_lower"` DnsDomain string `json:"domain,omitempty"` CloudName string `json:"cloud_name,omitempty"` Mtu int `json:"mtu"` IpV6 bool `json:"ipv6"` Vip netip.Addr `json:"vip"` Subnets []OSPNetworkSubnet `json:"subnets,omitempty"` PrefixLen int `json:"prefix_len"` VlanId int `json:"vlan_id"` HostRoutes []TripleoRoutes `json:"host_routes"` IsCtrlPlane bool `json:"is_ctrl_plane"` }
type OSPNetworkSubnet ¶
type OSPNetworkSubnet struct { Name string `json:"name"` IpSubnet netip.Prefix `json:"ip_subnet"` Ipv6Subnet netip.Prefix `json:"ipv6_subnet,omitempty"` GatewayIp netip.Addr `json:"gateway_ip,omitempty"` GatewayIpV6 netip.Addr `json:"gateway_ip_v6,omitempty"` AllocationPools []OSPNetworkSubnetPool `json:"allocationRanges,omitempty"` Ipv6AllocationPools []OSPNetworkSubnetPool `json:"ipv6_allocationRanges,omitempty"` Routes []TripleoRoutes `json:"routes,omitempty"` RoutesIpv6 []TripleoRoutes `json:"routes_ipv6,omitempty"` Vlan int `json:"vlan,omitempty"` }
type OSPNetworkSubnetPool ¶
type OSPService ¶
type OSPServicePasswords ¶
type PasswordMapping ¶
type Replacements ¶
type RoleType ¶
type RoleType string
const ( RoleTypeController RoleType = "controller" RoleTypeCompute RoleType = "compute" RoleTypeCephStorage RoleType = "ceph-storage" RoleTypeBlockStorage RoleType = "block-storage" RoleTypeObjectStorage RoleType = "object-storage" RoleTypeNetworker RoleType = "networker" Unknown RoleType = "unknown" )
type ServiceMapping ¶
type TOBDAnsiblePlaybooks ¶
type TOBDDefaults ¶
type TOBDDefaults struct { NetworkConfig TOBDNetworkConfig `yaml:"network_config"` ResourceClass string `yaml:"resource_class"` }
type TOBDExtraVars ¶
type TOBDExtraVars struct {
RoleGrowvolsArgs TOBDRoleGrowvolsArgs `yaml:"role_growvols_args"`
}
type TOBDInstances ¶
type TOBDInstances struct { Hostname string `yaml:"hostname"` Name string `yaml:"name"` Networks []TOBDNetworks `yaml:"networks"` }
type TOBDNetworkConfig ¶
type TOBDNetworks ¶
type TOBDRoleGrowvolsArgs ¶
type TOBDRoleGrowvolsArgs struct {
Default string `yaml:"default"`
}
type TOEControlPlaneVipData ¶
type TOEControlPlaneVipData struct { FixedIPS []TOEControlPlaneVipDataFixedIP `json:"fixed_ips"` Name string `json:"name"` Network TOEControlPlaneVipDataNetwork `json:"network"` Subnets []TOEControlPlaneVipDataSubnet `json:"subnets"` }
type TOEControlPlaneVipDataFixedIP ¶
type TOEControlPlaneVipDataFixedIP struct {
IPAddress string `json:"ip_address"`
}
type TOEControlPlaneVipDataNetwork ¶
type TOEControlPlaneVipDataNetwork struct {
Tags []string `json:"tags"`
}
type TOEControlPlaneVipDataSubnet ¶
type TOEControlPlaneVipDataSubnet struct {
IPVersion int64 `json:"ip_version"`
}
type TOECtlplaneHostRoute ¶
type TOECtlplaneNetwork ¶
type TOECtlplaneNetworkAttributes ¶
type TOECtlplaneNetworkAttributes struct { Network TOECtlplaneNetwork `yaml:"network"` Subnets map[string]TOECtlplaneSubnet `yaml:"subnets"` }
type TOECtlplaneSubnet ¶
type TOECtlplaneSubnet struct { CIDR string `yaml:"cidr"` DNSNameservers []interface{} `yaml:"dns_nameservers"` GatewayIP string `yaml:"gateway_ip"` HostRoutes []TOECtlplaneHostRoute `yaml:"host_routes"` IPVersion int64 `yaml:"ip_version"` Name string `yaml:"name"` }
type TOEDeployedNetworkEnvironmentNetAttributes ¶
type TOEDeployedNetworkEnvironmentNetAttributes struct { Network TOEDeployedNetworkEnvironmentNetwork `yaml:"network"` Subnets map[string]TOEDeployedNetworkEnvironmentSubnet `yaml:"subnets"` }
type TOEDeployedNetworkEnvironmentSubnet ¶
type TOEDeployedNetworkEnvironmentSubnet struct { CIDR string `yaml:"cidr"` DNSNameservers []interface{} `yaml:"dns_nameservers"` GatewayIP interface{} `yaml:"gateway_ip"` HostRoutes []TOEDeployedNetworkEnvironmentHostRoute `yaml:"host_routes"` IPVersion int64 `yaml:"ip_version"` Name string `yaml:"name"` Tags []string `yaml:"tags"` }
type TOEParameterDefaults ¶
type TOEParameterDefaults struct { CtlplaneNetworkAttributes TOECtlplaneNetworkAttributes `yaml:"CtlplaneNetworkAttributes"` DeployedNetworkEnvironment TOEDeployedNetworkEnvironment `yaml:"DeployedNetworkEnvironment"` ControlPlaneVipData TOEControlPlaneVipData `yaml:"ControlPlaneVipData"` Params map[string]interface{} `yaml:",inline"` }
type TONDAllocationPool ¶
type TONDInternalAPISubnet1 ¶
type TONDInternalAPISubnet1 struct { Ipv6Subnet string `yaml:"ipv6_subnet"` Ipv6AllocationPools []interface{} `yaml:"ipv6_allocation_pools"` }
type TONDRoutesIpv6 ¶
type TONDSubnet ¶
type TONDSubnet struct { Enabled bool `yaml:"enabled"` VLAN int64 `yaml:"vlan"` AllocationPools []TONDAllocationPool `yaml:"allocation_pools"` GatewayIp string `yaml:"gateway_ip"` GatewayIpV6 string `yaml:"gateway_ipv6"` Routes []TONDRoutesIpv6 `yaml:"routes,omitempty"` IpSubnet string `yaml:"ip_subnet"` Ipv6Subnet string `yaml:"ipv6_subnet"` Ipv6AllocationPools []TONDAllocationPool `yaml:"ipv6_allocation_pools"` RoutesIpv6 []TONDRoutesIpv6 `yaml:"routes_ipv6,omitempty"` }
type TripleoHost ¶
type TripleoHost struct { Name string CanonicalName string AnsibleHost string DefaultRouteNetwork []string Networks map[string]*TripleoHostNetwork TripleoRole *TripleoRole Vars map[string]interface{} }
type TripleoHostNetwork ¶
type TripleoHostNetwork struct { Name string IP netip.Addr Hostname string SubnetName string NetworkName string BaseSubnet *OSPNetworkSubnet RoleNetwork *TripleoRoleNetwork }
type TripleoOvercloudBaremetalDeployment ¶
type TripleoOvercloudBaremetalDeployment []struct { AnsiblePlaybooks []TOBDAnsiblePlaybooks `yaml:"ansible_playbooks"` Count int `yaml:"count"` Defaults TOBDDefaults `yaml:"defaults"` Instances []TOBDInstances `yaml:"instances"` Name string `yaml:"name"` }
func GetTripleoOvercloudBaremetalDeployment ¶
func GetTripleoOvercloudBaremetalDeployment(path string) (*TripleoOvercloudBaremetalDeployment, error)
type TripleoOvercloudEnvironment ¶
type TripleoOvercloudEnvironment struct { EncryptedParamNames []string `yaml:"encrypted_param_names"` EventSinks []string `yaml:"event_sinks"` Parameters map[string]interface{} `yaml:"parameters"` ParmaterDefaults TOEParameterDefaults `yaml:"parameter_defaults"` ResourceRegistry map[string]interface{} `yaml:"resource_registry"` }
func GetTripleoOvercloudEnvironment ¶
func GetTripleoOvercloudEnvironment(path string) (*TripleoOvercloudEnvironment, error)
type TripleoOvercloudNetworkData ¶
type TripleoOvercloudNetworkData []TripleoOvercloudNetworkDataEntry
func GetTripleoOvercloudNetworkData ¶
func GetTripleoOvercloudNetworkData() (*TripleoOvercloudNetworkData, error)
type TripleoOvercloudNetworkDataEntry ¶
type TripleoOvercloudNetworkDataEntry struct { Name string `yaml:"name"` NameLower string `yaml:"name_lower"` Vip bool `yaml:"vip"` DNSDomain string `yaml:"dns_domain,omitempty"` MTU int `yaml:"mtu"` Ipv6 bool `yaml:"ipv6"` Subnets map[string]TONDSubnet `yaml:"subnets"` Enabled bool `yaml:"enabled"` }
type TripleoOvercloudRolesData ¶
type TripleoOvercloudRolesData []TripleoOvercloudRolesDataEntry
func GetTripleoOvercloudRolesData ¶
func GetTripleoOvercloudRolesData(path string) (*TripleoOvercloudRolesData, error)
type TripleoOvercloudRolesDataEntry ¶
type TripleoOvercloudRolesDataEntry struct { HostnameFormatDefault *string `json:"HostnameFormatDefault,omitempty"` RoleParametersDefault map[string]interface{} `json:"RoleParametersDefault"` ServicesDefault []string `json:"ServicesDefault"` DefaultRouteNetworks []string `json:"default_route_networks,omitempty"` DeprecatedNICConfigName *string `json:"deprecated_nic_config_name,omitempty"` DeprecatedParamFlavor *string `json:"deprecated_param_flavor,omitempty"` DeprecatedParamImage *string `json:"deprecated_param_image,omitempty"` Description string `json:"description"` Name string `json:"name"` Networks map[string]interface{} `json:"networks"` Tags []string `json:"tags"` UpdateSerial int64 `json:"update_serial"` UsesDeprecatedParams *bool `json:"uses_deprecated_params,omitempty"` }
type TripleoRole ¶
type TripleoRole struct { Name string ConfigSettings map[string]interface{} RoleTags []string Hosts []*TripleoHost Networks map[string]*TripleoRoleNetwork GrowvolsArgs map[string]interface{} Vars map[string]interface{} }
func NewTripleoRole ¶
func NewTripleoRole() *TripleoRole
type TripleoRoleNetwork ¶
type TripleoRoleNetwork struct { Name string `json:"name"` NameLower string `json:"name_lower"` DnsDomain string `json:"domain,omitempty"` CloudName string `json:"cloud_name,omitempty"` Mtu int `json:"mtu"` IpV6 bool `json:"ipv6"` Vip netip.Addr `json:"vip"` GatewayIp netip.Addr `json:"gateway_ip"` Subnets []string `json:"subnets,omitempty"` PrefixLen int `json:"prefix_len"` VlanId int `json:"vlan_id"` HostRoutes []TripleoRoutes `json:"host_routes"` IsRoleNet bool `json:"is_role_net"` }
type TripleoRoutes ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.