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
|`pm_api_url`|`PM_API_URL`|`string`||**Required** This is the target Proxmox API endpoint. |
111
-
|`pm_user`|`PM_USER`|`string`|| The user, remember to include the authentication realm such as myuser@pam or myuser@pve. |
112
-
|`pm_password`|`PM_PASS`|`string`||**Sensitive** The password. |
113
-
|`pm_api_token_id`|`PM_API_TOKEN_ID`|`string`|| This is an [API token](https://pve.proxmox.com/pve-docs/pveum-plain.html) you have previously created for a specific user. |
114
-
|`pm_api_token_secret`|`PM_API_TOKEN_SECRET`|`string`||**Sensitive** This uuid is only available when the token was initially created. |
115
-
|`pm_otp`|`PM_OTP`|`string`|| The 2FA OTP code. |
116
-
|`pm_tls_insecure`||`bool`|`false`| Disable TLS verification while connecting to the proxmox server. |
117
-
|`pm_parallel`||`uint`|`1`| Allowed simultaneous Proxmox processes (e.g. creating resources). Setting this greater than 1 is currently not recommended when creating LXC containers with dynamic id allocation. For Qemu the threading issue has been resolved.|
118
-
|`pm_log_enable`||`bool`|`false`| Enable debug logging, see the section below for logging details. |
119
-
|`pm_log_levels`||`map`|| A map of log sources and levels. |
120
-
|`pm_log_file`||`string`|`terraform-plugin-proxmox.log`| The log file the provider will write logs to. |
121
-
|`pm_timeout`||`uint`|`300`| Timeout value (seconds) for proxmox API calls. |
122
-
|`pm_debug`||`bool`|`false`| Enable verbose output in proxmox-api-go. |
123
-
|`pm_proxy_server`||`string`|| Send provider api call to a proxy server for easy debugging. |
108
+
| Argument | environment variable | Type | Default Value | Description |
|`pm_api_url`|`PM_API_URL`|`string`||**Required** This is the target Proxmox API endpoint.|
111
+
|`pm_user`|`PM_USER`|`string`|| The user, remember to include the authentication realm such as myuser@pam or myuser@pve.|
112
+
|`pm_password`|`PM_PASS`|`string`||**Sensitive** The password.|
113
+
|`pm_api_token_id`|`PM_API_TOKEN_ID`|`string`|| This is an [API token](https://pve.proxmox.com/pve-docs/pveum-plain.html) you have previously created for a specific user.|
114
+
|`pm_api_token_secret`|`PM_API_TOKEN_SECRET`|`string`||**Sensitive** This uuid is only available when the token was initially created.|
115
+
|`pm_otp`|`PM_OTP`|`string`|| The 2FA OTP code.|
116
+
|`pm_tls_insecure`||`bool`|`false`| Disable TLS verification while connecting to the proxmox server.|
117
+
|`pm_parallel`||`uint`|`1`| Allowed simultaneous Proxmox processes (e.g. creating resources). Setting this greater than 1 is currently not recommended when creating LXC containers with dynamic id allocation. For Qemu the threading issue has been resolved.|
118
+
|`pm_log_enable`||`bool`|`false`| Enable debug logging, see the section below for logging details.|
119
+
|`pm_log_levels`||`map`|| A map of log sources and levels.|
120
+
|`pm_log_file`||`string`|`terraform-plugin-proxmox.log`| The log file the provider will write logs to.|
121
+
|`pm_timeout`||`uint`|`300`| Timeout value (seconds) for proxmox API calls.|
122
+
|`pm_debug`||`bool`|`false`| Enable verbose output in proxmox-api-go.|
123
+
|`pm_proxy_server`||`string`|| Send provider api call to a proxy server for easy debugging.|
124
+
|`pm_minimum_permission_check`||`bool`|`true`| Enable minimum permission check. This will check if the user has the minimum permissions required to use the provider.|
125
+
|`pm_minimum_permission_list`||`list`|| A list of permissions to check. Allows overwriting of the default permissions.|
124
126
125
127
Additionally, one can set the `PM_OTP_PROMPT` environment variable to prompt for OTP 2FA code (if required).
returnnil, fmt.Errorf("permissions for user/token "+userID.ToString()+" are not sufficient, please provide also the following permissions that are missing: %v", permDiff)
289
+
}
290
+
}
281
291
282
-
// actually configure logging
283
-
// note that if enable is false here, the configuration will squash all output
returnnil, fmt.Errorf("invalid logging level %v for %v. Be sure to use a string", level, logger)
300
+
}
302
301
}
303
-
err=fmt.Errorf("permissions for user/token %s are not sufficient, please provide also the following permissions that are missing: %v", userID.ToString(), permDiff)
304
-
returnnil, err
302
+
303
+
// actually configure logging
304
+
// note that if enable is false here, the configuration will squash all output
0 commit comments