Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextContainer ¶
type ContextContainer struct { Name string Steps StepList User *hcl.Attribute ApplyTo *hcl.Attribute }
ContextContainer connects to a resource and applies all steps to that resource
User - the user that will be used to run the tasks ApplyTo - the servers resources to apply the tasks to
type IncludesStep ¶
IncludesStep brings in other roles and files to make up a full role/context
type InputStep ¶
InputStep load variables from an external source
func (InputStep) PluginName ¶
PluginName returns the plugin name for the InputStep
func (InputStep) ServiceName ¶
ServiceName returns the service name for the inventory
type InventoryStep ¶
InventoryStep fetch server details from an external source
func (InventoryStep) PluginName ¶
func (inventoryStep InventoryStep) PluginName() (string, error)
PluginName returns the plugin name for the inventory
func (InventoryStep) ServiceName ¶
func (inventoryStep InventoryStep) ServiceName() (string, error)
ServiceName returns the service name for the inventory
type PlaybookSteps ¶
type PlaybookSteps struct { StepList StepList RoleList RoleContainers }
PlaybookSteps container for steps and roles
type RoleContainer ¶
RoleContainer container for role steps. This inherites the context from the outer context. Any changes are lost once role has been completed
Name - name of role File - file path that the role was loaded from User - user used to run all tasks with role Steps - list of steps to be ran against selected servers
type RoleContainers ¶
type RoleContainers []RoleContainer
RoleContainers collection of role containers
func (RoleContainers) FindByName ¶
func (roleContainers RoleContainers) FindByName(name string) (RoleContainer, error)
FindByName find a role in container by name.
type ServerStep ¶
ServerStep name and address of a server resource