Fixing multiple issues.
This commit is contained in:
parent
6267a7e843
commit
27e08ea2be
@ -6,7 +6,7 @@ import pulumi_command as command
|
||||
import yaml
|
||||
from dotmap import DotMap
|
||||
from jinja2 import Template
|
||||
from passlib import sha512_crypt
|
||||
from passlib.hash import sha512_crypt
|
||||
|
||||
conf = DotMap(yaml.safe_load(open("./input.yaml", "r").read()))
|
||||
|
||||
|
@ -1,2 +1,2 @@
|
||||
instance-id: {{ conf.name }}
|
||||
local-hostname: {{ conf.name }}
|
||||
instance-id: {{ name }}
|
||||
local-hostname: {{ name }}
|
||||
|
@ -1,22 +1,22 @@
|
||||
#cloud-config
|
||||
resize_rootfs: true
|
||||
users:
|
||||
- name: {{ conf.username }}
|
||||
- name: {{ username }}
|
||||
sudo: ALL=(ALL) NOPASSWD:ALL
|
||||
groups: users, admin
|
||||
shell: /bin/bash
|
||||
ssh_authorized_keys:
|
||||
{% for key in conf.sshkeys %}
|
||||
- {{ item }}
|
||||
{% for key in sshkeys %}
|
||||
- "{{ key }}"
|
||||
{% endfor %}
|
||||
hashed_passwd: {{ conf.password }}
|
||||
hashed_passwd: {{ password }}
|
||||
ssh_pwauth: true
|
||||
disable_root: false
|
||||
chpasswd:
|
||||
expire: false
|
||||
list: |
|
||||
root:{{ conf.password }}
|
||||
syntaxerrormmm:{{ conf.password }}
|
||||
root:{{ password }}
|
||||
syntaxerrormmm:{{ password }}
|
||||
#packages:
|
||||
# - qemu-guest-agent
|
||||
#power_state:
|
||||
|
@ -1,6 +1,7 @@
|
||||
pulumi>=3.0.0,<4.0.0
|
||||
pulumi_libvirt>=0.3.0
|
||||
pulumi-command>=0.4.1
|
||||
pyyaml>=6.0
|
||||
Jinja2>=3.1.2
|
||||
dotmap>=1.3.30
|
||||
passlib>=1.7.4
|
||||
|
Loading…
Reference in New Issue
Block a user