- distribution/: public release package (docker-compose + terraform VM + README v1.0) - docker-compose.yml pulls pre-built images from OCIR (no build, no source code) - terraform/: VM stack (ARM Free Tier, LB+WAF+SSL, conditional DNS/Let's Encrypt) - Removed terraform-oke/ and k8s/ from git (private, .gitignore)
23 lines
929 B
HCL
23 lines
929 B
HCL
# -----------------------------------------------------------------------------
|
|
# Block Volume for /data persistence
|
|
# -----------------------------------------------------------------------------
|
|
resource "oci_core_volume" "data" {
|
|
compartment_id = var.compartment_ocid
|
|
availability_domain = data.oci_identity_availability_domains.ads.availability_domains[0].name
|
|
display_name = "cisagent-data-vol"
|
|
size_in_gbs = var.block_volume_size_gb
|
|
vpus_per_gb = var.block_volume_vpus_per_gb
|
|
freeform_tags = var.freeform_tags
|
|
}
|
|
|
|
resource "oci_core_volume_attachment" "data" {
|
|
attachment_type = "paravirtualized"
|
|
instance_id = oci_core_instance.app.id
|
|
volume_id = oci_core_volume.data.id
|
|
display_name = "cisagent-data-vol-attach"
|
|
device = "/dev/oracleoci/oraclevdb"
|
|
|
|
# Ensure instance is fully running before attaching
|
|
depends_on = [oci_core_instance.app]
|
|
}
|