Add PostgreSQL and Miniflux services to tailnet #16
1 changed files with 23 additions and 0 deletions
Add Pulumi DeviceTags for indri to manage device tags via IaC
Instead of manually applying tags to indri in Tailscale admin, use tailscale.DeviceTags resource to manage them declaratively. This includes all service tags (grafana, forge, kiwix, devpi, loki, pg, feed) plus homelab and blumeops tags. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
commit
f293b0e7e5
|
|
@ -14,5 +14,28 @@ acl = tailscale.Acl(
|
|||
acl=policy_content,
|
||||
)
|
||||
|
||||
# ============== Device Tags ==============
|
||||
# Manage tags for devices in the tailnet
|
||||
|
||||
# indri - Mac Mini M1 running homelab services
|
||||
indri = tailscale.get_device(name="indri.tail8d86e.ts.net")
|
||||
indri_tags = tailscale.DeviceTags(
|
||||
"indri-tags",
|
||||
device_id=indri.node_id,
|
||||
tags=[
|
||||
"tag:homelab",
|
||||
"tag:grafana",
|
||||
"tag:forge",
|
||||
"tag:kiwix",
|
||||
"tag:devpi",
|
||||
"tag:loki",
|
||||
"tag:pg",
|
||||
"tag:feed",
|
||||
"tag:blumeops",
|
||||
],
|
||||
)
|
||||
|
||||
# Export useful info
|
||||
pulumi.export("acl_id", acl.id)
|
||||
pulumi.export("indri_device_id", indri.node_id)
|
||||
pulumi.export("indri_tags", indri_tags.tags)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue