dmacvicar / terraform-provider-libvirt

Terraform provider to provision infrastructure with Linux's KVM using libvirt
Apache License 2.0
1.54k stars 457 forks source link

Cloud-init `chpasswd#users` not supported (upstream API deprecation of `chpasswd#list`) #980

Open dzintars opened 1 year ago

dzintars commented 1 year ago

System Information

Linux distribution

Fedora 35

Terraform version

Terraform v1.3.1
on linux_amd6

Provider and libvirt versions

0.7.0

Cloud-init chpasswd#users not supported

libvirt_cloudinit_disk resource.

It looks like list is deprecated in favor to users https://cloudinit.readthedocs.io/en/latest/topics/modules.html#set-passwords

Setup

This config still works without issues:

#cloud-config

users:
  - name: ansible
    groups: users, wheel
    shell: /bin/bash
chpasswd:
  expire: false
  list: |
    ansible:test

This config does not work:

#cloud-config

users:
  - name: ansible
    groups: users, wheel
    shell: /bin/bash
chpasswd:
  expire: false
  users:
    - name: ansible
      password: test
      type: text