Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to use token credentials for two separte PVE nodes #236

Open
braham2019 opened this issue Mar 22, 2024 · 1 comment
Open

how to use token credentials for two separte PVE nodes #236

braham2019 opened this issue Mar 22, 2024 · 1 comment

Comments

@braham2019
Copy link

I have added a second Proxmox node to my setup. The first one is working fine using token authentication:

default:
    user: monitoring@pam
    token_name: "somename"
    token_value: "somevalue"
    verify_ssl: false

But the second one (they are not part of a cluster) has a different token secret (albeit the token_name and token_value are the same).

As expected it gives an error when trying this.

proxmoxer.core.ResourceException: 401 Unauthorized: invalid token value! - {'errors': b''}

How can I pass those separate credentials to that particular node ? Is there a way to create an entry for that in pve.yml ?

@danpoltawski
Copy link

I was looking for the same thing, looks like you can do this with the module request param:

Specify the module request parameter, to choose which module to use from the config file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants