ansible

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

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

func GetAnsibleHostsFromInventory(inventoryDirPath string) ([]string, error)

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

func RunAnsiblePlaybookGetNodeID(ansibleDir, nodeIDPath, inventoryPath, ansibleHostID string) error

RunAnsiblePlaybookGetNodeID gets node ID of cloud server targets a specific host ansibleHostID in ansible inventory file

func RunAnsiblePlaybookSetupBuildEnv added in v1.3.1

func RunAnsiblePlaybookSetupBuildEnv(ansibleDir, inventoryPath, ansibleHostID string) error

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 Setup

func Setup(ansibleDir string) error

func WriteCfgFile

func WriteCfgFile(ansibleDir string) error

func WritePlaybookFiles

func WritePlaybookFiles(ansibleDir string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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