Proxmox and Ansible - Creation of user accounts

chrisanzalone007

Active Member
Jul 15, 2017
5
0
41
40
So - now that I've played with KVM, and Proxmox - I've decided to start replacing KVM hypervisors with Proxmox at work.

We use Ansible to deploy our machines, and i'm stuck on one thing.

We manage our user accounts through ansible - which were all created successfully, but it appears Proxmox requires it's own user creation.

Has anyone run into this before? I'm very weak with programming, and i'm struggling to find a method.

Open to ideas! But - I do want to keep it simple.
 
yes if you want to authenticate with pam users, you have to also create the users in our tools
you can use the tool 'pveum'

e.g.

Code:
pveum useradd <username>@<authenticationrealm>

in case of the user 'test' on 'pam' it would be
Code:
pveum useradd test@pam

you can of course also use the api instead
 
Thank you for the reply.
I ended up using a template file in ansible to build the user.cfg file with usernames and acl. The passwords created in Linux as part of our base install playbook passed right through.

Working perfect!