You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/index.md
+10-3Lines changed: 10 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ For authentication, the provider requires you to supply the following informatio
17
17
- Host
18
18
- Client ID
19
19
- Client Secret
20
-
-Customer or MSP ID (also referred to as the Omada ID)
20
+
-Controller ID (also referred to as the Omada ID)
21
21
22
22
For detailed instructions on how to obtain these from your Software Controller, [see here](https://support.omadanetworks.com/uk/document/109315#_Toc212122902).
23
23
@@ -27,9 +27,11 @@ You may also choose to set these to the following environment variables respecti
27
27
-`OMADA_CLIENT_ID`
28
28
-`OMADA_CLIENT_SECRET`
29
29
-`OMADA_CONTROLLER_ID`
30
+
-`OMADA_TLS_SKIP_VERIFY`
30
31
31
32
-> If you are self-hosting your Software Controller, the host must be resolvable from wherever your Terraform configuration is deployed.
32
-
For example, in your local network you may set your host to `https://192.168.0.10:8043`
33
+
For example, in your local network you may set your host to `https://192.168.0.10:8043`.
34
+
You may also need to set `tls_skip_verify` to `true` if your Software Controller has self-signed certificates. However this is not advisable if you will be deploying the configuration to a production environment.
33
35
34
36
## Example Usage
35
37
@@ -57,6 +59,9 @@ provider "omada" {
57
59
# Alternatively, omit this field and supply it securely
58
60
# with the OMADA_CLIENT_SECRET environment variable
59
61
client_secret = var.client_secret
62
+
63
+
# Explicitly set the TLS verification setting
64
+
tls_skip_verify = false
60
65
}
61
66
```
62
67
@@ -68,4 +73,6 @@ provider "omada" {
68
73
-`client_id` (String) Client ID for the Omada Controller Application. May also be provided via `OMADA_CLIENT_ID` environment variable.
69
74
-`client_secret` (String, Sensitive) Client Secret for the Omada Controller Application. May also be provided via `OMADA_CLIENT_SECRET` environment variable.
70
75
-`controller_id` (String) Unique ID assigned to the Omada Controller. May also be provided via `OMADA_CONTROLLER_ID` environment variable.
71
-
-`host` (String) URI for the Omada Controller API. May also be provided via `OMADA_HOST` environment variable.
76
+
-`host` (String) URI for the Omada Controller API. May also be provided via `OMADA_HOST` environment variable.
77
+
-`tls_skip_verify` (Boolean) When set to true, accepts any certificate presented by the server and any host name in that certificate.
78
+
**It is unadvisable to use this in a production environment, as it makes the provider susceptible to man-in-the-middle attacks.**
"The provider cannot create the Omada API client as there is an unknown configuration value for the TLS verification. "+
145
+
"Either target apply the source of the value first, set the value statically in the configuration, or use the OMADA_TLS_SKIP_VERIFY environment variable.",
0 commit comments