ansible

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2020 License: Apache-2.0 Imports: 17 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 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.

Jump to

Keyboard shortcuts

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