package
0.0.6
Repository: https://github.com/luyomo/ohmytiup.git
Documentation: pkg.go.dev

# Functions

CommentConfig add `#` to the head of each lines for imported configs.
GetHostPort tries to read the SSH port of the host.
ImportConfig copies config files from cluster which deployed through tidb-ansible.
LoadConfig files to clusterMeta, include tidbservers, tikvservers, pdservers pumpservers and drainerservers.
ParseAndImportInventory builds a basic ClusterMeta from the main Ansible inventory.
ReadInventory reads the inventory files of a TiDB cluster deployed by TiDB-Ansible.
SSHKeyPath gets the path to default SSH private key, this is the key Ansible uses to connect deployment servers.

# Variables

AnsibleConfigFile is the default ansible config file name.
AnsibleInventoryFile is the default inventory file name.