Open dmlemos opened 7 years ago
$ cat setup.hcl
param "dir" { default = "dir1" } file.directory "dir" { destination = "{{param `dir`}}" } file.owner "dir" { destination = "{{lookup `file.directory.dir.destination`}}" group = "root" recursive = true depends = ["file.directory.dir"] }
$ converge plan --local setup.hcl
Error
2017-06-17T16:46:11+01:00 |WARN| setting session-local token token=xxx 2017-06-17T16:46:11+01:00 |WARN| no SSL config in use, server will accept unencrypted connections component=rpc 2017-06-17T16:46:11+01:00 |INFO| serving GRPC addr=http://127.0.0.1:47740 component=rpc 2017-06-17T16:46:11+01:00 |INFO| serving REST addr=http://127.0.0.1:47740 component=rpc 2017-06-17T16:46:11+01:00 |WARN| skipping module verification component=client 2017-06-17T16:46:11+01:00 |WARN| root/file.owner.dir no status for node root/file.directory.dir status-reference=root/file.directory.dir 2017-06-17T16:46:11+01:00 |INFO| got status component=client file=setup.hcl id=root/param.dir run=STARTED stage=PLAN 2017-06-17T16:46:11+01:00 |INFO| got status component=client file=setup.hcl id=root/file.directory.dir run=STARTED stage=PLAN 2017-06-17T16:46:11+01:00 |INFO| got status component=client file=setup.hcl id=root/file.owner.dir run=STARTED stage=PLAN 2017-06-17T16:46:11+01:00 |ERROR| planning failed component=rpc error=1 error(s) occurred: * root/file.owner.dir: user: LookupGroup requires cgo function=executor.Plan location=setup.hcl runID=dd893439-bd88-4c9f-a9bd-b66d2ca198c5 2017-06-17T16:46:11+01:00 |FATAL| could not get responses component=client error=error getting status response: rpc error: code = 2 desc = planning setup.hcl: 1 error(s) occurred: * root/file.owner.dir: user: LookupGroup requires cgo file=setup.hcl
OS: macOS 10.12.5
$ cat setup.hcl
$ converge plan --local setup.hcl
Error
OS: macOS 10.12.5