ssh public key now defined as variable. User can define it under the main deployment file
This commit is contained in:
10
multiple/shared_modules/cloud_init.yaml
Normal file
10
multiple/shared_modules/cloud_init.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
#cloud-config
|
||||
disable_root: true
|
||||
users:
|
||||
- name: groot
|
||||
sudo: ALL=(ALL) NOPASSWD:ALL
|
||||
groups: wheel,sudo,adm
|
||||
shell: /bin/bash
|
||||
ssh_authorized_keys:
|
||||
- ${ssh_key}
|
||||
ssh_pwauth: false
|
@@ -42,8 +42,7 @@ variable "cloudinit_filename" {
|
||||
|
||||
variable "ssh_key" {
|
||||
description = "SSH authorized keys for cloud-init"
|
||||
type = list(string)
|
||||
default = []
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "user_data" {
|
||||
|
Reference in New Issue
Block a user