Skip to content

Commit

Permalink
main.tf: Add log to stdout docker mod
Browse files Browse the repository at this point in the history
  • Loading branch information
MiguelNdeCarvalho committed Oct 10, 2024
1 parent d309b74 commit cd560a9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ resource "kubernetes_config_map" "main" {
}

data = {
"authorized_keys" = var.ssh_keys
"motd" = "Welcome to ${var.motd_name}.\n"
"delete-generated-ssh-keys" = <<EOT
"authorized_keys" = var.ssh_keys
"motd" = "Welcome to ${var.motd_name}.\n"
"delete-generated-ssh-keys" = <<EOT
#!/bin/bash
echo "**** remove not needed ecdsa and ed25519 keys ****"
rm /config/ssh_host_keys/ssh_host_ecdsa*
Expand Down Expand Up @@ -129,7 +129,7 @@ resource "kubernetes_deployment" "main" {
env {
# Ref: https://github.com/linuxserver/docker-mods/tree/openssh-server-ssh-tunnel
name = "DOCKER_MODS"
value = "linuxserver/mods:openssh-server-ssh-tunnel"
value = "linuxserver/mods:openssh-server-ssh-tunnel${var.ssh_log_to_stdout ? "|linuxserver/mods:universal-stdout-logs" : ""}"
}

env {
Expand Down Expand Up @@ -157,7 +157,7 @@ resource "kubernetes_deployment" "main" {
name = "delete-generated-ssh-keys"
mount_path = "/custom-cont-init.d/delete-generated-ssh-keys"
sub_path = "delete-generated-ssh-keys"
read_only = true
read_only = true
}

volume_mount {
Expand Down

0 comments on commit cd560a9

Please sign in to comment.