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, nodesWithDynamicIP 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, cloudConfigMap models.CloudConfig) 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 ¶
GetAnsibleHostsFromInventory gets alias of all hosts in an inventory file
func GetHostByNodeID ¶
func UpdateInventoryHostPublicIP ¶
func UpdateInventoryHostPublicIP(inventoryDirPath string, nodesWithDynamicIP map[string]string) error
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.