Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Oehrli committed Jan 11, 2021
1 parent 232ff1e commit 8f39912
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 1 addition & 2 deletions compute.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ resource "oci_core_instance" "bastion" {
user_data = var.bastion_bootstrap != "" ? base64gzip(file(var.bastion_bootstrap)) : base64encode(templatefile("${path.module}/cloudinit/bastion_host.yaml", {
yum_upgrade = var.yum_upgrade
guacamole_user = var.guacamole_user
guacamole_connections = base64gzip(file(local.guacamole_connections))
guacamole_connections = base64gzip(local.guacamole_connections)
authorized_keys = base64gzip(file(local.ssh_public_key_path))
etc_hosts = base64gzip(file(local.hosts_file))
fail2ban_config = base64gzip(templatefile(local.fail2ban_config ,{
Expand All @@ -53,7 +53,6 @@ resource "oci_core_instance" "bastion" {
staging = var.staging
guacamole_enabled = var.guacamole_enabled
guacamole_user = var.guacamole_user
guacadmin_user = var.guacadmin_user
guacadmin_password = var.guacadmin_password
}))
}))
Expand Down
5 changes: 5 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,9 @@ output "bastion_dns_records" {
description = "The DNS records for the bastion server instances."
value = [oci_dns_rrset.bastion.*.items]
}

output "bastion_ssh_access" {
description = "SSH access string for bastion hosts."
value = formatlist("ssh -A opc@%s.${var.tvd_domain}", oci_core_instance.bastion.*.hostname_label)
}
# --- EOF -------------------------------------------------------------------

0 comments on commit 8f39912

Please sign in to comment.