You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A dedicated lxc-exec provisioner would allow reducing this duplication. It would be really useful, because if you don't set these flags, you're running as root in a pretty bare process environment.
Potential configuration
provisioner "lxc-exec" {
environment_vars = ["HOME=/home/builder"]
user = 1000
group = 1000
working_directory = "/home/builder"
inline = [
"echo I'm run with uid 1000 from /home/builder",
]
}
The
lxc exec
command has many powerful flags, including--uid
and--gid
to set the user and group of the subprocess on the remote container--cwd
to set the working directory--env
for environment variablesTaking advantage of these right now requires the
shell-local
provisioner.Consider this configuration snippet.
A dedicated
lxc-exec
provisioner would allow reducing this duplication. It would be really useful, because if you don't set these flags, you're running as root in a pretty bare process environment.Potential configuration
Potential References
Potential prior art is the Puppet Bolt plugin puppetlabs/bolt#2311
The text was updated successfully, but these errors were encountered: