open-vault/command/agent/config/test-fixtures/config-template-full.hcl
Jason O'Donnell 110f754d97
agent/template: fix exec parsing error for templates (#16231)
* agent/template: fix exec parsing error for templates

* changelog
2022-07-06 21:21:35 +01:00

54 lines
860 B
HCL

pid_file = "./pidfile"
auto_auth {
method {
type = "aws"
namespace = "/my-namespace"
config = {
role = "foobar"
}
}
sink {
type = "file"
config = {
path = "/tmp/file-foo"
}
aad = "foobar"
dh_type = "curve25519"
dh_path = "/tmp/file-foo-dhpath"
}
}
template {
destination = "/path/on/disk/where/template/will/render.txt"
create_dest_dirs = true
contents = "{{ keyOrDefault \"service/redis/maxconns@east-aws\" \"5\" }}"
command = "restart service foo"
command_timeout = "60s"
error_on_missing_key = true
perms = 0655
backup = true
left_delimiter = "<<"
right_delimiter = ">>"
sandbox_path = "/path/on/disk/where"
wait {
min = "5s"
max = "30s"
}
wait {
min = "10s"
max = "40s"
}
exec {
command = ["foo"]
timeout = "10s"
}
}