Skip to content

Commit

Permalink
Update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasjackson committed Apr 11, 2024
1 parent 1f42989 commit 18fdc9d
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 2 deletions.
24 changes: 24 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# Change Log

## version v0.10.5

## New Features:
Adds outputs for `exec` resources

Exec resources now have a new parameter `output` which is a map of key value pairs.
Values for output can be set by echoing a key value to the file `${EXEC_OUTPUT}` in
the defined script for either remote or local exec.

```hcl
resource "exec" "install" {
# Add the output
echo "exec=install" >> $EXEC_OUTPUT
echo "foo=bar" >> $EXEC_OUTPUT
EOF
timeout = "30s"
}
output "local_exec_install" {
value = resource.exec.install.output.exec
}
```

## version v0.10.4

## New Features:
Expand Down
26 changes: 25 additions & 1 deletion cmd/changelog.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,33 @@ var changelogCmd = &cobra.Command{
},
}

var changesVersion = "v0.10.4"
var changesVersion = "v0.10.5"

var changes = `
## version v0.10.5
## New Features:
Adds outputs for 'exec' resources
Exec resources now have a new parameter 'output' which is a map of key value pairs.
Values for output can be set by echoing a key value to the file '${EXEC_OUTPUT}' in
the defined script for either remote or local exec.
"""hcl
resource "exec" "install" {
# Add the output
echo "exec=install" >> $EXEC_OUTPUT
echo "foo=bar" >> $EXEC_OUTPUT
EOF
timeout = "30s"
}
output "local_exec_install" {
value = resource.exec.install.output.exec
}
"""
## version v0.10.4
Enable experimental support for nvidia GPUs for container resources
Expand Down
1 change: 0 additions & 1 deletion examples/exec/local.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ resource "exec" "install" {
cd ${data("test")} && unzip ./consul.zip
# Add the output
echo "$EXEC_OUTPUT" >> /tmp/output.var
echo "exec=install" >> $EXEC_OUTPUT
EOF

Expand Down

0 comments on commit 18fdc9d

Please sign in to comment.