Skip to content

Commit

Permalink
docs: Document how to configure an exit node
Browse files Browse the repository at this point in the history
Even though it makes sense, it took quite a bit of figuring-out to do,
so hopefully this saves someone else some time.

Signed-off-by: Manuel Hutter <[email protected]>
  • Loading branch information
mhutter committed Jan 26, 2024
1 parent f65978c commit 15e91d9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/resources/device_subnet_routes.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ resource "tailscale_device_subnet_routes" "sample_routes" {
"2.0.0.0/24"
]
}
resource "tailscale_device_subnet_routes" "sample_exit_node" {
device_id = data.tailscale_device.sample_device.id
routes = [
# Configure as an exit node
"0.0.0.0/0",
"::/0"
]
}
```

<!-- schema generated by tfplugindocs -->
Expand Down
9 changes: 9 additions & 0 deletions examples/resources/tailscale_device_subnet_routes/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,12 @@ resource "tailscale_device_subnet_routes" "sample_routes" {
"2.0.0.0/24"
]
}

resource "tailscale_device_subnet_routes" "sample_exit_node" {
device_id = data.tailscale_device.sample_device.id
routes = [
# Configure as an exit node
"0.0.0.0/0",
"::/0"
]
}

0 comments on commit 15e91d9

Please sign in to comment.