Documentation ¶
Index ¶
- func CheckIsInstalled() error
- func CreateAnsibleHostInventory(inventoryDirPath, certFilePath string, publicIPs, instanceIDs []string) error
- func GetAnsibleHostsFromInventory(inventoryDirPath string) ([]string, error)
- func RunAnsiblePlaybookCheckAvalancheGoVersion(ansibleDir, avalancheGoPath, inventoryPath, ansibleHostID string) error
- func RunAnsiblePlaybookCheckBootstrapped(ansibleDir, isBootstrappedPath, inventoryPath, ansibleHostID string) error
- func RunAnsiblePlaybookCopyStakingFiles(ansibleDir, ansibleHostID, nodeInstanceDirPath, inventoryPath string) error
- func RunAnsiblePlaybookExportSubnet(...) error
- func RunAnsiblePlaybookGetNodeID(ansibleDir, nodeIDPath, inventoryPath, ansibleHostID string) error
- func RunAnsiblePlaybookSetupBuildEnv(ansibleDir, inventoryPath, ansibleHostID string) error
- func RunAnsiblePlaybookSetupCLIFromSource(ansibleDir, inventoryPath, cliBranch, ansibleHostID string) error
- func RunAnsiblePlaybookSetupNode(configPath, ansibleDir, inventoryPath, avalancheGoVersion string) error
- func RunAnsiblePlaybookSubnetSyncStatus(ansibleDir, subnetSyncPath, blockchainID, inventoryPath, ansibleHostID string) error
- func RunAnsiblePlaybookTrackSubnet(ansibleDir, subnetName, importPath, inventoryPath, ansibleHostID string) error
- func RunAnsiblePlaybookUpdateSubnet(ansibleDir, subnetName, importPath, inventoryPath, ansibleHostID string) error
- func Setup(ansibleDir string) error
- func WriteCfgFile(ansibleDir string) error
- func WritePlaybookFiles(ansibleDir string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIsInstalled ¶
func CheckIsInstalled() error
func CreateAnsibleHostInventory ¶
func CreateAnsibleHostInventory(inventoryDirPath, certFilePath string, publicIPs, instanceIDs []string) error
CreateAnsibleHostInventory creates inventory file to be used for Ansible playbook commands 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 RunAnsiblePlaybookCheckAvalancheGoVersion ¶
func RunAnsiblePlaybookCheckAvalancheGoVersion(ansibleDir, avalancheGoPath, inventoryPath, ansibleHostID string) error
RunAnsiblePlaybookCheckAvalancheGoVersion checks if node is bootstrapped to primary network targets a specific host ansibleHostID in ansible inventory file
func RunAnsiblePlaybookCheckBootstrapped ¶
func RunAnsiblePlaybookCheckBootstrapped(ansibleDir, isBootstrappedPath, inventoryPath, ansibleHostID string) error
RunAnsiblePlaybookCheckBootstrapped checks if node is bootstrapped to primary network targets a specific host ansibleHostID in ansible inventory file
func RunAnsiblePlaybookCopyStakingFiles ¶ added in v1.3.1
func RunAnsiblePlaybookCopyStakingFiles(ansibleDir, ansibleHostID, nodeInstanceDirPath, inventoryPath string) error
RunAnsiblePlaybookCopyStakingFiles copies staker.crt and staker.key into local machine so users can back up their node these files are stored in .avalanche-cli/nodes/<nodeID> dir targets a specific host ansibleHostID in ansible inventory file
func RunAnsiblePlaybookExportSubnet ¶
func RunAnsiblePlaybookExportSubnet(ansibleDir, inventoryPath, exportPath, cloudServerSubnetPath, ansibleHostID string) error
RunAnsiblePlaybookExportSubnet exports deployed Subnet from local machine to cloud server targets a specific host ansibleHostID in ansible inventory file
func RunAnsiblePlaybookGetNodeID ¶
RunAnsiblePlaybookGetNodeID gets node ID of cloud server targets a specific host ansibleHostID in ansible inventory file
func RunAnsiblePlaybookSetupBuildEnv ¶ added in v1.3.1
RunAnsiblePlaybookSetupBuildEnv installs gcc, golang, rust
func RunAnsiblePlaybookSetupCLIFromSource ¶ added in v1.3.1
func RunAnsiblePlaybookSetupCLIFromSource(ansibleDir, inventoryPath, cliBranch, ansibleHostID string) error
RunAnsiblePlaybookSetupCLIFromSource installs any CLI branch from source
func RunAnsiblePlaybookSetupNode ¶ added in v1.3.1
func RunAnsiblePlaybookSetupNode(configPath, ansibleDir, inventoryPath, avalancheGoVersion string) error
RunAnsiblePlaybookSetupNode installs avalanche go and avalanche-cli. It also copies the user's metric preferences in configFilePath from local machine to cloud server targets all hosts in ansible inventory file
func RunAnsiblePlaybookSubnetSyncStatus ¶
func RunAnsiblePlaybookSubnetSyncStatus(ansibleDir, subnetSyncPath, blockchainID, inventoryPath, ansibleHostID string) error
RunAnsiblePlaybookSubnetSyncStatus checks if node is synced to subnet targets a specific host ansibleHostID in ansible inventory file
func RunAnsiblePlaybookTrackSubnet ¶
func RunAnsiblePlaybookTrackSubnet(ansibleDir, subnetName, importPath, inventoryPath, ansibleHostID string) error
RunAnsiblePlaybookTrackSubnet runs avalanche subnet join <subnetName> in cloud server targets a specific host ansibleHostID in ansible inventory file
func RunAnsiblePlaybookUpdateSubnet ¶ added in v1.3.1
func RunAnsiblePlaybookUpdateSubnet(ansibleDir, subnetName, importPath, inventoryPath, ansibleHostID string) error
RunAnsiblePlaybookUpdateSubnet runs avalanche subnet join <subnetName> in cloud server using update subnet info
func WriteCfgFile ¶
func WritePlaybookFiles ¶
Types ¶
This section is empty.