Skip to content

Commit

Permalink
Add disable root var
Browse files Browse the repository at this point in the history
  • Loading branch information
x86-39 committed Jul 25, 2023
1 parent 03d27fa commit 7592b22
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ ssh_authorized_keys:
%{endfor}
%{endif}
disable_root: ${var.disable_root}
%{if var.root_password != ""~}
chpasswd:
list: |
Expand Down
5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ variable "password_auth" {
default = false
}

variable "disable_root" {
type = bool
default = true
}

variable "root_password" {
type = string
default = ""
Expand Down

0 comments on commit 7592b22

Please sign in to comment.