Documentation ¶
Index ¶
- func CreateAnsibleHostInventory(inventoryDirPath, certFilePath, cloudService string, ...) error
- func GetAnsibleHostsFromInventory(inventoryDirPath string) ([]string, error)
- func GetHostByNodeID(nodeID string, inventoryDirPath string) (*models.Host, error)
- func GetHostMapfromAnsibleInventory(inventoryDirPath string) (map[string]*models.Host, error)
- func GetInventoryFromAnsibleInventoryFile(inventoryDirPath string) ([]*models.Host, error)
- func UpdateInventoryHostPublicIP(inventoryDirPath string, nodesWoEIP map[string]string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAnsibleHostInventory ¶
func CreateAnsibleHostInventory(inventoryDirPath, certFilePath, cloudService string, publicIPMap map[string]string) error
CreateAnsibleHostInventory creates inventory file for ansible specifies the ip address of the cloud server and the corresponding ssh cert path for the cloud server
func GetAnsibleHostsFromInventory ¶ added in v1.3.1
GetAnsibleHostsFromInventory gets alias of all hosts in an inventory file
func GetHostByNodeID ¶ added in v1.3.4
func GetHostMapfromAnsibleInventory ¶ added in v1.3.3
func GetInventoryFromAnsibleInventoryFile ¶ added in v1.3.3
func UpdateInventoryHostPublicIP ¶ added in v1.3.3
UpdateInventoryHostPublicIP first maps existing ansible inventory host file content then it deletes the inventory file and regenerates a new ansible inventory file where it will fetch public IP of nodes without elastic IP and update its value in the new ansible inventory file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.