Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove example where type=null #13115

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Source Variables

It is possible to access the `name` and `type` of your `source` from
It is possible to access the `name` of your `source` from
provisioners and post-processors:

```hcl
Expand All @@ -23,14 +23,14 @@ build {
sources = ["null.first-example"]

provisioner "shell-local" {
inline = ["echo ${source.name} and ${source.type}"]
inline = ["echo ${source.name}"]
}
}

# This will echo something like:
#
# roles.null.consul: consul and null
# roles.null.nomad: nomad and null
# roles.null.vault: vault and null
# roles.null.first-example: first-example and null
# roles.null.consul: consul
# roles.null.nomad: nomad
# roles.null.vault: vault
# roles.null.first-example: first-example
```