ansible

package
v1.3.1-0...-83f5247 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2021 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// AnsibleInventoryFile is the default inventory file name
	AnsibleInventoryFile = "inventory.ini"
	// AnsibleConfigFile is the default ansible config file name
	AnsibleConfigFile = "ansible.cfg"
)

Functions

func GetHostPort

func GetHostPort(host *aini.Host, cfg *ini.File) int

GetHostPort tries to read the SSH port of the host

func ImportConfig

func ImportConfig(name string, clsMeta *spec.ClusterMeta, sshTimeout uint64, sshType executor.SSHType) error

ImportConfig copies config files from cluster which deployed through tidb-ansible

func LoadConfig

func LoadConfig(clsName string, cls *spec.ClusterMeta) error

LoadConfig files to clusterMeta, include tidbservers, tikvservers, pdservers pumpservers and drainerservers

func ParseAndImportInventory

func ParseAndImportInventory(dir, ansCfgFile string, clsMeta *spec.ClusterMeta, inv *aini.InventoryData, sshTimeout uint64, sshType executor.SSHType) error

ParseAndImportInventory builds a basic ClusterMeta from the main Ansible inventory

func ReadInventory

func ReadInventory(dir, inventoryFileName string) (string, *spec.ClusterMeta, *aini.InventoryData, error)

ReadInventory reads the inventory files of a TiDB cluster deployed by TiDB-Ansible

func SSHKeyPath

func SSHKeyPath() string

SSHKeyPath gets the path to default SSH private key, this is the key Ansible uses to connect deployment servers

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL