Commit 6f3ba94
committed
resource_dns_configuration: add
It's not presently possible to determine the tailnet/MagicDNS name
without a `tailscale_device(s)` data source and some string
manipulation.
Ideally, there'd be an API for this directy, but in lieu of that this
commit moves the device list/error (or 0 device) handling/string
manipulation into the provider; so that the terraform config can more
cleanly and naturally read from:
tailscale_dns_configuration.x.magic_dns_name
to get the name like 'hyperactive-sloth.ts.net' directly.
Signed-off-by: Oliver Ford <[email protected]>magic_dns_name attr1 parent 73e7c60 commit 6f3ba94
File tree
2 files changed
+36
-3
lines changed- docs/resources
- tailscale
2 files changed
+36
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
102 | 107 | | |
103 | 108 | | |
104 | 109 | | |
| |||
135 | 140 | | |
136 | 141 | | |
137 | 142 | | |
138 | | - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
139 | 168 | | |
140 | 169 | | |
141 | 170 | | |
142 | 171 | | |
143 | 172 | | |
144 | | - | |
145 | | - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
146 | 178 | | |
147 | 179 | | |
148 | 180 | | |
| |||
0 commit comments