Skip to content

Provide a way to install an agent on pre-existing compute (Coder Attach) #12822

@sreya

Description

@sreya

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.

cc @spikecurtis

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions