Initial commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"ignition": {
|
||||
"version": "0.3.0"
|
||||
},
|
||||
"passwd": {
|
||||
"users": [
|
||||
{
|
||||
"name": "{{ vm_user }}",
|
||||
"password_hash": "{{ vm_password | password_hash('sha512') }}",
|
||||
"ssh_public_keys": [
|
||||
"{{ lookup('file', vm_ssh_public_key) }}"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"storage": {
|
||||
"files": [
|
||||
{
|
||||
"path": "/etc/ssh/sshd_config.d/permit_root_login.conf",
|
||||
"contents": {
|
||||
"source": "data:text/plain;charset=utf-8,PermitRootLogin yes"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
#cloud-config
|
||||
users:
|
||||
- name: {{ vm_user }}
|
||||
passwd: {{ vm_password | password_hash('sha512') }}
|
||||
ssh_authorized_keys:
|
||||
- {{ lookup('file', vm_ssh_public_key) }}
|
||||
sudo: ALL=(ALL) NOPASSWD:ALL
|
||||
lock_passwd: false
|
||||
Reference in New Issue
Block a user