Documentation
¶
Index ¶
- Variables
- func ImportConfig(name string, clsMeta *meta.ClusterMeta, sshTimeout int64) error
- func ParseAndImportInventory(dir, ansCfgFile string, clsMeta *meta.ClusterMeta, inv *aini.InventoryData, ...) error
- func ReadInventory(dir, inventoryFileName string) (string, *meta.ClusterMeta, *aini.InventoryData, error)
- func SSHKeyPath() string
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 ImportConfig ¶
func ImportConfig(name string, clsMeta *meta.ClusterMeta, sshTimeout int64) error
ImportConfig copies config files from cluster which deployed through tidb-ansible
func ParseAndImportInventory ¶ added in v0.4.9
func ParseAndImportInventory(dir, ansCfgFile string, clsMeta *meta.ClusterMeta, inv *aini.InventoryData, sshTimeout int64) error
ParseAndImportInventory builds a basic ClusterMeta from the main Ansible inventory
func ReadInventory ¶ added in v0.4.9
func ReadInventory(dir, inventoryFileName string) (string, *meta.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.
Click to show internal directories.
Click to hide internal directories.