Settings

Theme

Show HN: Use Terraform to manage to your TrueNAS apps

github.com

2 points by deevus 22 days ago · 3 comments

Reader

deevusOP 22 days ago

I have two TrueNAS SCALE/Community Edition servers and have been using Ansible to manage deployment of apps to them for a while now. As part of that I have been "reverse engineering" the `midclt` command line app that TrueNAS ships with and uses for its Web UI over websockets.

I don't really like Ansible, so I thought I would give creating a Terraform Provider a shot, with the help of Claude Code.

You can create custom apps, and so far I have migrated a couple of my own applications from Ansible to Terraform.

mmastrac 21 days ago

Huh, literally setting this up today but using registry.terraform.io/baladithyab/truenas. It works for a few things, but I wasn't able to get user management going.

The other providers are built on the OpenAPI APIs which appear to be brittle and incomplete. I guess this is the websocket version in command-line form?

I'd definitely be interested in switching over if you can flesh this out!

  • deevusOP 17 days ago

    Yep I spent a lot of time trawling through the midclt and webui source code to understand how to work with it. Are you using this in a professional context or homelab only?

    All of the existing terraform providers for TrueNAS can't create apps with the latest version that uses docker, not kubernetes.

    Please tell me what you need by creating issues on the repo

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection