Documentation
¶
Index ¶
- func CheckIsInstalled() error
- func CreateAnsibleHostInventory(inventoryPath, ip, certFilePath string) error
- func RunAnsibleCopyStakingFilesPlaybook(ansibleDir, nodeInstanceDirPath, inventoryPath string) error
- func RunAnsiblePlaybookCheckAvalancheGoVersion(ansibleDir, avalancheGoPath, inventoryPath string) error
- func RunAnsiblePlaybookCheckBootstrapped(ansibleDir, isBootstrappedPath, inventoryPath string) error
- func RunAnsiblePlaybookExportSubnet(ansibleDir, inventoryPath, exportPath, cloudServerSubnetPath string) error
- func RunAnsiblePlaybookGetNodeID(ansibleDir, nodeIDPath, inventoryPath string) error
- func RunAnsiblePlaybookSubnetSyncStatus(ansibleDir, subnetSyncPath, blockchainID, inventoryPath string) error
- func RunAnsiblePlaybookTrackSubnet(ansibleDir, subnetName, importPath, inventoryPath string) error
- func RunAnsibleSetupNodePlaybook(configPath, ansibleDir, inventoryPath, avalancheGoVersion 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 ¶
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 RunAnsibleCopyStakingFilesPlaybook ¶
func RunAnsibleCopyStakingFilesPlaybook(ansibleDir, nodeInstanceDirPath, inventoryPath string) error
RunAnsibleCopyStakingFilesPlaybook 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
func RunAnsiblePlaybookCheckAvalancheGoVersion ¶
func RunAnsiblePlaybookCheckAvalancheGoVersion(ansibleDir, avalancheGoPath, inventoryPath string) error
RunAnsiblePlaybookCheckBootstrapped checks if node is bootstrapped to primary network
func RunAnsiblePlaybookCheckBootstrapped ¶
func RunAnsiblePlaybookCheckBootstrapped(ansibleDir, isBootstrappedPath, inventoryPath string) error
RunAnsiblePlaybookCheckBootstrapped checks if node is bootstrapped to primary network
func RunAnsiblePlaybookExportSubnet ¶
func RunAnsiblePlaybookExportSubnet(ansibleDir, inventoryPath, exportPath, cloudServerSubnetPath string) error
RunAnsiblePlaybookExportSubnet exports deployed Subnet from local machine to cloud server
func RunAnsiblePlaybookGetNodeID ¶
RunAnsiblePlaybookGetNodeID gets node ID of cloud server
func RunAnsiblePlaybookSubnetSyncStatus ¶
func RunAnsiblePlaybookSubnetSyncStatus(ansibleDir, subnetSyncPath, blockchainID, inventoryPath string) error
RunAnsiblePlaybookSubnetSyncStatus checks if node is synced to subnet
func RunAnsiblePlaybookTrackSubnet ¶
RunAnsiblePlaybookTrackSubnet runs avalanche subnet join <subnetName> in cloud server
func RunAnsibleSetupNodePlaybook ¶
func RunAnsibleSetupNodePlaybook(configPath, ansibleDir, inventoryPath, avalancheGoVersion string) error
RunAnsibleSetupNodePlaybook installs avalanche go and avalanche-cli. It also copies the user's metric preferences in configFilePath from local machine to cloud server
func WriteCfgFile ¶
func WritePlaybookFiles ¶
Types ¶
This section is empty.