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

remote-exec escape sequences #44

Open
montge opened this issue Aug 5, 2019 · 1 comment
Open

remote-exec escape sequences #44

montge opened this issue Aug 5, 2019 · 1 comment
Labels
information needed Issue creator should provide more information/input

Comments

@montge
Copy link

montge commented Aug 5, 2019

I'm working on figuring out the best way to handle escape sequences for remote-exec. While this appears to be valid JSON, in the atom package it doesn't highlight properly.

provisioner "remote-exec" {
    inline = [
"sudo grep -qxF 'HTTP_PROXY=\"myproxy:8080\"' /etc/sysconfig/docker || echo 'HTTP_PROXY=\"http://myproxy:8080\"' | sudo tee -a /etc/sysconfig/docker",
"sudo grep -qxF 'http_proxy=\"${HTTP_PROXY}\"' /etc/sysconfig/docker || echo 'http_proxy=\"${HTTP_PROXY}\"' | sudo tee -a /etc/sysconfig/docker",
]
}

Note I have a open issue on the terraform side to verify how to handle the $ and {}

@cmur2
Copy link
Owner

cmur2 commented Nov 15, 2020

@montge is this still an issue for you? Could you give the link to the issue on terraform side?

@cmur2 cmur2 added the information needed Issue creator should provide more information/input label Nov 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
information needed Issue creator should provide more information/input
Projects
None yet
Development

No branches or pull requests

2 participants