{% load i18n %}

{% trans "Use Jinja2 template syntax, values: " %}

{% trans "Filters: hash - sha512 hash method" %}

{% trans "Use this commands, to clean cloud-init setup (for save as template example):" %}

cloud-init clean
userdel -p -f cloud   # delete default user
Example:
{% verbatim %}
#cloud-config
users:
  - default
  - name: {{sysuser}} 
    sudo: ['ALL=(ALL) NOPASSWD:ALL']
    groups: sudo
    shell: /bin/bash
    ssh_pwauth: True
    chpasswd: { expire: False }
    lock-passwd: false
    passwd: "{{ password | hash }}"
    ssh_authorized_keys:
      - {{ ssh.keys['my-key'] }}
{% for u in acl.operators %}
  - name: {{u}} 
    shell: /bin/bash
{% endfor %}
{% endverbatim %}