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
The following arguments are supported in the provider block:
26
39
27
40
*`pm_api_url` - (Required; or use environment variable `PM_API_URL`) This is the target Proxmox API endpoint.
28
-
*`pm_user` - (Required; or use environment variable `PM_USER`) The user, maybe required to include @pam.
29
-
*`pm_password` - (Required; sensitive; or use environment variable `PM_PASS`) The password.
30
-
*`pm_otp` - (Optional; or use environment variable `PM_OTP`) The 2FA OTP code.
31
-
*`pm_tls_insecure` - (Optional) Disable TLS verification while connecting.
41
+
*`pm_user` - (Optional; or use environment variable `PM_USER`) The user, remember to include the authentication realm such as myuser@pam or myuser@pve.
42
+
*`pm_password` - (Optional; sensitive; or use environment variable `PM_PASS`) The password.
43
+
*`pm_api_token_id` - (Optional; or use environment variable `PM_API_TOKEN_ID`) This is an [API token](https://pve.proxmox.com/pve-docs/pveum-plain.html) you have previously created for a specific user.
44
+
*`pm_api_token_secret` - (Optional; or use environment variable `PM_API_TOKEN_SECRET`) This is a uuid that is only available when initially creating the token.
45
+
*`pm_otp` - (Optional; or use environment variable `PM_OTP`) The 2FA OTP code.
46
+
*`pm_tls_insecure` - (Optional) Disable TLS verification while connecting to the proxmox server.
*`pm_log_enable` - (Optional; defaults to false) Enable debug logging, see the section below for logging details.
34
49
*`pm_log_levels` - (Optional) A map of log sources and levels.
@@ -42,10 +57,12 @@ Additionally, one can set the `PM_OTP_PROMPT` environment variable to prompt for
42
57
The provider is able to output detailed logs upon request. Note that this feature is intended for development purposes, but could also be used to help investigate bugs. For example: the following code when placed into the provider "proxmox" block will enable loging to the file "terraform-plugin-proxmox.log". All log sources will default to the "debug" level, and any stdout/stderr from sublibraries (proxmox-api-go) will be silenced (set to non-empty string to enable).
Description: "By default, every TLS connection is verified to be secure. This option allows terraform to proceed and operate on servers considered insecure. For example if you're connecting to a remote host and you do not have the CA cert that issued the proxmox api url's certificate.",
75
89
},
76
90
"pm_log_enable": {
77
-
Type: schema.TypeBool,
78
-
Optional: true,
79
-
Default: false,
91
+
Type: schema.TypeBool,
92
+
Optional: true,
93
+
Default: false,
94
+
Description: "Enable provider logging to get proxmox API logs",
80
95
},
81
96
"pm_log_levels": {
82
-
Type: schema.TypeMap,
83
-
Optional: true,
97
+
Type: schema.TypeMap,
98
+
Optional: true,
99
+
Description: "Configure the logging level to display; trace, debug, info, warn, etc",
0 commit comments