Skip to content

Instantly share code, notes, and snippets.

@laidback
Created December 11, 2017 22:37
Show Gist options
  • Select an option

  • Save laidback/0fe4cc457274db0fd26d25eb15e9fcf5 to your computer and use it in GitHub Desktop.

Select an option

Save laidback/0fe4cc457274db0fd26d25eb15e9fcf5 to your computer and use it in GitHub Desktop.
# some converge rest api
curl http://127.0.0.1:4774/api/v1/resources/modules/hello.hcl
curl http://127.0.0.1:4774/api/v1/resources/binary -H "Accept: text/plain" | shasum
# download converge binary
curl http://127.0.0.1:4774/api/v1/resources/binary -H "Accept: text/plain" -O
# use the binary
chmod +x binary
./binary
curl http://127.0.0.1:4774/api/v1/resources/binary -H "Accept: text/plain" -O
curl http://127.0.0.1:4774/api/v1/resources/modules/hello.hcl
./binary `curl http://127.0.0.1:4774/api/v1/resources/modules/hello.hcl`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment