output "compartment_id" { value = local.target_compartment_id } output "vcn_id" { value = local.network_vcn_id } output "public_subnet_id" { value = local.public_subnet_id } output "email_subnet_id" { value = local.email_subnet_id } output "private_subnet_id" { value = try(oci_core_subnet.private[0].id, null) } output "edge_instance_id" { value = try(oci_core_instance.edge[0].id, data.oci_core_instance.existing_edge[0].id, null) } output "edge_public_ip" { value = try(oci_core_instance.edge[0].public_ip, data.oci_core_instance.existing_edge[0].public_ip, null) } output "email_instance_id" { value = try(oci_core_instance.email[0].id, try(data.oci_core_instance.existing_email[0].id, try(data.oci_core_instance.monitoring_email[0].id, null))) } output "email_public_ip" { value = try(oci_core_instance.email[0].public_ip, try(data.oci_core_instance.existing_email[0].public_ip, try(data.oci_core_instance.monitoring_email[0].public_ip, null))) } output "bastion_id" { value = try(oci_bastion_bastion.homelab[0].id, var.bastion_existing_id, null) } output "bastion_target_subnet_id" { value = try(oci_bastion_bastion.homelab[0].target_subnet_id, local.bastion_target_subnet_id, null) } output "backup_bucket_id" { value = try(oci_objectstorage_bucket.homelab_backups[0].id, null) } output "backup_bucket_name" { value = try(oci_objectstorage_bucket.homelab_backups[0].name, null) } output "backup_bucket_namespace" { value = try(oci_objectstorage_bucket.homelab_backups[0].namespace, null) } output "monitoring_topic_id" { value = try(oci_ons_notification_topic.monitoring[0].id, null) } output "monitoring_email_subscription_id" { value = try(oci_ons_subscription.monitoring_email[0].id, null) } output "monitoring_edge_alarm_ids" { value = { cpu_high = try(oci_monitoring_alarm.edge_cpu_high[0].id, null) unavailable = try(oci_monitoring_alarm.edge_unavailable[0].id, null) } } output "monitoring_email_alarm_ids" { value = { cpu_high = try(oci_monitoring_alarm.email_cpu_high[0].id, null) unavailable = try(oci_monitoring_alarm.email_unavailable[0].id, null) } } output "next_steps" { value = [ "Set LAB_EDGE_HOST to edge_public_ip and run ./jeannie edge to configure the edge proxy.", "Install and harden the selected mail server on email_public_ip before opening mail ports.", "Reserve the email public IP and request OCI reverse DNS/PTR before production mail.", "Request OCI SMTP port 25 access; it is restricted by default for newer tenancies.", "Add DNS A/AAAA, MX, SPF, DKIM, and DMARC records only after choosing the mail domain.", "OCI VM CPU and availability alarms are delivered through the monitoring Notifications topic; confirm the email subscription if configured.", ] }