Config
The configuration for scripts.
Attributes
Attributes are the properties of a resource that can be used to configure it.
The target resource to execute the script on.
User user
string
(root
)
The user to execute the script as.
Group group
string
(root
)
The group to execute the script as.
WorkingDirectory working_directory
string
(/
)
The working directory to execute the script in.
Timeout timeout
int
(30
)
The timeout in seconds for the script to execute.
SuccessExitCodes success_exit_codes
[]int
([]int{0}
)
The exit codes that are considered successful.
FailureExitCodes failure_exit_codes
[]int
([]int{}
)
The exit codes that are considered expected failures. Any other failure codes will be considered errors.
ParallelExec configures wether conditions or scripts are executed in parallel.
Computed Attributes
These attributes are computed when the config is parsed and applied, and are therefor only known at parsetime or runtime.
Meta ID meta.id
string
The full ID of the resource e.g. `resource.type.name`. This is computed from the full resource path:
Meta Type meta.type
string
The type of the resource. This taken from the type label of the resource definition.
Meta Name meta.name
string
The name of the resource. This taken from the name label of the resource definition.
Examples
"Task"
"Override"
Last updated