Add support for custom commands #216
Replies: 2 comments 2 replies
-
What would be the difference between calling the external binary as spot-$CMD and calling it as a part of
This is exactly what I did too, i.e. made several scripts and several small binaries and using it inside the for example, i made a simple script
|
Beta Was this translation helpful? Give feedback.
-
moving to discussion as this is not a bug report |
Beta Was this translation helpful? Give feedback.
-
It would be cool if we could somehow implement custom commands. Maybe something like how docker or Hashicorp tooling supports custom commands - either by calling an external binary named
spot-$CMD
(docker) or running them in a sort of grpc-server manner (hashicorp tools). One could even consider a config file ~somewhere that configured certain commands as calls to particular scripts (so that one binary could implement multiple commands).My goal here would be to slowly implement the commands I use from ansible as golang binaries and use them with spot, which would make it much simpler to run provisioning against a server in packer (since I wouldn't need to worry about how I'm running my provisioning tooling locally, just install the requisite binaries remotely and we're off).
Beta Was this translation helpful? Give feedback.
All reactions