example-provisioner
The ‘cmd’ scheme has a “host” + path component that indicates the path to the binary to execute. If the host starts with “.” it is interpreted as a relative path, if it starts with “~” it resolves to the home directory.
Example provisioner that runs a bash script.
type: example-provisioner-resource
expected_outputs:
- key
- secretprovisioners.yaml
(view on GitHub)
:
- uri: cmd://bash#example-provisioner
type: example-provisioner-resource
description: Example provisioner that runs a bash script.
class: default
id: specific
# (Optional) additional args that the binary gets run with
# If any of the args are '<mode>' it will be replaced with "provision"
args: ["-c", "echo '{\"resource_outputs\":{\"key\":\"value\",\"secret\":\"🔐💬mysecret_mykey💬🔐\"},\"manifests\":[]}'"]
expected_outputs:
- key
- secret