config

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnsibleConfig added in v0.1.1

type AnsibleConfig struct {
	InventoryFile string `yaml:"inventory-file"`
	PlaybookFile  string `yaml:"playbook-file"`
}

type BackendType

type BackendType string
const (
	Local               BackendType = "local"
	Remote              BackendType = "remote"
	TerraformMinVersion             = "1.9.0"
)

type Configuration

type Configuration struct {
	TemplateRepo   string                 `yaml:"template-repo,omitempty"`
	TempateVersion string                 `yaml:"template-version,omitempty"`
	TemplateDir    string                 `yaml:"template-dir,omitempty"`
	Terraform      *Terraform             `yaml:"terraform,omitempty"`
	Ansible        *AnsibleConfig         `yaml:"ansible,omitempty"`
	Variables      map[string]interface{} `yaml:"variables"`
}

func LoadConfig

func LoadConfig(path string) (*Configuration, error)

type LocalBackend

type LocalBackend struct {
	Path      string `yaml:"path"`
	Workspace string `yaml:"workspace"`
}

type Terraform

type Terraform struct {
	Backend   *TerraformBackend              `yaml:"backend,omitempty"`
	Providers *tfprovider.TerraformProviders `yaml:"providers"`
	DataDir   string
}

type TerraformBackend

type TerraformBackend struct {
	Type  BackendType   `yaml:"type"`
	Local *LocalBackend `yaml:"local,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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