Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Commit

Permalink
feat(updates.jenkins.io) add a secondary vnic for private subnet
Browse files Browse the repository at this point in the history
  • Loading branch information
smerleCB committed Jul 7, 2022
1 parent 9cc330b commit 49eeeca
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions updates.jenkins.io.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,17 @@ resource "oci_core_instance" "updates_jenkins_io" {
freeform_tags = local.all_tags
}

resource "oci_core_vnic_attachment" "private_vnic_attachment" {
create_vnic_details {
display_name = "private_vnic for updates.jenkins.io"
freeform_tags = local.all_tags
nsg_ids = [oci_core_network_security_group.updates_jenkins_io.id]
subnet_id = oci_core_subnet.private_subnet.id
}
instance_id = oci_core_instance.updates_jenkins_io.id
display_name = "private_vnic attachment for updates.jenkins.io"
}

resource "oci_core_volume_attachment" "updates_jenkins_io_data" {
# Paravirtualized attachment is expected to automount the data volume (compared to "iscsi")
attachment_type = "paravirtualized"
Expand Down

0 comments on commit 49eeeca

Please sign in to comment.