Skip to content

feat: Add examples/templates/do-linux for Digital Ocean Droplets #1749

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
May 27, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: Improve SSH key message
  • Loading branch information
mafredri committed May 27, 2022
commit a075df303161865658302b6cc2aee86d0a57389a
9 changes: 8 additions & 1 deletion examples/do-linux/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,18 @@ variable "step3_do_admin_ssh_key" {
description = <<-EOF
Enter admin SSH key ID (some Droplet images require an SSH key to be set):

Note: Leaving this as zero will break Fedora images and notify root passwords via email.
Can be set to zero.

Note: Setting this to zero will break Fedora images and notify root passwords via email.

$ doctl compute ssh-key list
EOF
sensitive = true

validation {
condition = var.step3_do_admin_ssh_key >= 0
error_message = "Invalid Digital Ocean SSH key ID, a number is required."
}
}

variable "droplet_image" {
Expand Down