Documentation ¶
Index ¶
- Constants
- type ParametersBuilder
- type PlayBookResults
- type Playbook
- func (playbook Playbook) BuildCustomParameters(customParams config.ClusterParams, pathToBuild string) string
- func (playbook Playbook) OverrideParametersWithCustoms(awsCredentials config.AwsSettings)
- func (playbook Playbook) ParseDefaultEnvFile(pathToEnvironmentFile string)
- func (playbook *Playbook) RenderTemplate(pathToScript string, pathToEnvironmentFile string, pathToCustomEnvFile string, ...)
- func (playbook Playbook) Run(infraCtx *context.InfraContext) PlayBookResults
- type PlaybookRunner
Constants ¶
View Source
const PlaybookRunnerProg = "ansible-playbook"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ParametersBuilder ¶
type ParametersBuilder interface { BuildCustomParameters(customParams config.ClusterParams, pathToBuild string) string RenderTemplate(pathToScript string, pathToEnvironmentFile string, pathToCustomEnvFile string, ctx *context.InfraContext) string OverrideParametersWithCustoms(awsCredentials config.AwsSettings) ParseDefaultEnvFile(pathToEnvironmentFile string) }
type PlayBookResults ¶
type Playbook ¶
type Playbook struct { // Name of playbook Name string //Path to Playbook Path string OverrideParametersPath string RenderedTemplatePath string OutputLocation string }
func (Playbook) BuildCustomParameters ¶
func (playbook Playbook) BuildCustomParameters(customParams config.ClusterParams, pathToBuild string) string
BuildCustomParameters This Function gets the input customParams , and set them as environment variables , and make an environment file , which each pair prefixed by "export" keyword.
func (Playbook) OverrideParametersWithCustoms ¶
func (playbook Playbook) OverrideParametersWithCustoms(awsCredentials config.AwsSettings)
func (Playbook) ParseDefaultEnvFile ¶
ParseDefaultEnvFile This function parse (key,value) pairs from environment file prefixed with "export", in order to set them as environment variables in this application, and not only in script.
func (*Playbook) RenderTemplate ¶
func (Playbook) Run ¶
func (playbook Playbook) Run(infraCtx *context.InfraContext) PlayBookResults
type PlaybookRunner ¶
type PlaybookRunner interface {
Run(*context.InfraContext) PlayBookResults
}
Click to show internal directories.
Click to hide internal directories.