Documentation ¶
Index ¶
Constants ¶
View Source
const ( TrentoWebApiHost = "TRENTO_WEB_API_HOST" TrentoWebApiPort = "TRENTO_WEB_API_PORT" AnsibleConfigFileEnv = "ANSIBLE_CONFIG" )
View Source
const ( AnsibleMain = "ansible/check.yml" AnsibleMeta = "ansible/meta.yml" AnsibleConfigFile = "ansible/ansible.cfg" AnsibleHostFile = "ansible/ansible_hosts" )
View Source
const (
DefaultUser string = "root"
)
Variables ¶
This section is empty.
Functions ¶
func CreateInventory ¶
func CreateInventory(destination string, content *InventoryContent) error
Types ¶
type AnsibleRunner ¶
func DefaultAnsibleRunner ¶
func DefaultAnsibleRunner() *AnsibleRunner
func NewAnsibleCheckRunner ¶
func NewAnsibleCheckRunner(config *Config) (*AnsibleRunner, error)
func NewAnsibleMetaRunner ¶
func NewAnsibleMetaRunner(config *Config) (*AnsibleRunner, error)
func (*AnsibleRunner) RunPlaybook ¶
func (a *AnsibleRunner) RunPlaybook() error
func (*AnsibleRunner) SetConfigFile ¶
func (a *AnsibleRunner) SetConfigFile(confFile string)
func (*AnsibleRunner) SetInventory ¶
func (a *AnsibleRunner) SetInventory(inventory string) error
func (*AnsibleRunner) SetPlaybook ¶
func (a *AnsibleRunner) SetPlaybook(playbook string) error
func (*AnsibleRunner) SetTrentoApiData ¶
func (a *AnsibleRunner) SetTrentoApiData(host string, port int)
type InventoryContent ¶
func NewClusterInventoryContent ¶
func NewClusterInventoryContent(trentoApi api.TrentoApiService) (*InventoryContent, error)
Click to show internal directories.
Click to hide internal directories.