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
Right now it's difficult to craft a template that uses an existing VM to install a coder agent. This is mainly because the local-exec provisioner assumes that the provided command will complete prior to considering the resource "created". Since the bootstrap script for installing an agent never completes, the provisioner job in Coder also never finishes. There are presumably some ways to get around it, such as using nohup or disown but given that this is a valid use case for Coder we should make it easier to support.
An idea is to have our own implementation of local-exec that allows for commands to be run as detached.