Skip to content

chore(examples): update incus template#24616

Merged
johnstcn merged 5 commits into
mainfrom
cj/examples/update-incus
Apr 22, 2026
Merged

chore(examples): update incus template#24616
johnstcn merged 5 commits into
mainfrom
cj/examples/update-incus

Conversation

@johnstcn
Copy link
Copy Markdown
Member

  • Decoupled provisioner from Incus host by passing agent token/URL via Incus Guest API
  • Added a config watcher service to detect token updates and restart the agent automatically.
  • Updates for compatibility with Incus provider 1.x

- Decoupled provisioner from Incus host by passing agent token/URL via Incus Guest API
- Added a config watcher service to detect token updates and restart the agent automatically.
- Updates for compatibility with Incus provider 1.x
@johnstcn johnstcn requested a review from matifali April 22, 2026 12:54
@johnstcn johnstcn self-assigned this Apr 22, 2026
@johnstcn
Copy link
Copy Markdown
Member Author

/coder-agents-review

Copy link
Copy Markdown
Contributor

@coder-agents-review coder-agents-review Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First-pass review (Netero only). The full review panel has not yet reviewed this PR; these are mechanical findings that should be addressed before the panel spends parallel review time.

The template rewrite is well-structured: decoupling the provisioner from the Incus host via the guest API is a clean architectural improvement, and the watcher service for stale tokens is a pragmatic solution to the provider ordering issue.

2 P0 findings, both lint blockers.

"Three em-dashes on new lines and two en-dashes for numeric ranges. Replace with periods, commas, or hyphens per project convention."

🤖 This review was automatically generated with Coder Agents.

Comment thread examples/templates/incus/README.md Outdated
Comment thread examples/templates/incus/README.md Outdated
Copy link
Copy Markdown
Member

@matifali matifali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few nits but looks good to me

Comment on lines +41 to +44
option {
name = "Ubuntu 22.04 (Jammy)"
value = "images:ubuntu/22.04/cloud"
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe replace with 26.04
Its new LTS

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not in the images: remote (yet)

Comment on lines +141 to +144
# needing the docker group (which would require a new login session).
if [ -S /var/run/docker.sock ]; then
sudo chown $(whoami) /var/run/docker.sock
fi
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is fine but when the user actually connects the group membership would have applied.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not really, you have to do newgrp docker

Comment thread examples/templates/incus/main.tf
Comment thread examples/templates/incus/main.tf Outdated
Comment thread examples/templates/incus/main.tf
@johnstcn johnstcn merged commit 68508e1 into main Apr 22, 2026
27 checks passed
@johnstcn johnstcn deleted the cj/examples/update-incus branch April 22, 2026 19:06
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 22, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants