Skip to content

Commit 2a6311c

Browse files
authored
feat: Support disabled DNS record assignment for bastion instance (#53)
Signed-off-by: Devon Crouse <[email protected]> Signed-off-by: Devon Crouse <[email protected]>
1 parent de6d2bb commit 2a6311c

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

CHANGELOG.adoc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@ All notable changes to this project are documented in this file.
77

88
The format is based on {uri-changelog}[Keep a Changelog].
99

10-
= v3.1.4 (unreleased)
11-
* feat: Support disabled DNS record assignment for bastion subnet by @devoncrouse
10+
= v3.1.5 (December 1, 2022)
11+
* feat: Support disabled DNS record assignment for bastion instance by @devoncrouse in #53
12+
13+
= v3.1.4 (December 1, 2022)
14+
* feat: Support disabled DNS record assignment for bastion subnet by @devoncrouse in #52
1215

1316
= v3.1.3 (October 7, 2022)
1417
* fix: Ignore lifecycle changes, and use consistent fallback shape by @devoncrouse in #51

compute.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019, 2021 Oracle Corporation and/or affiliates. All rights reserved.
1+
# Copyright 2019, 2022 Oracle Corporation and/or affiliates. All rights reserved.
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
33

44
resource "oci_core_instance" "bastion" {
@@ -21,7 +21,7 @@ resource "oci_core_instance" "bastion" {
2121
create_vnic_details {
2222
assign_public_ip = var.bastion_type == "public" ? true : false
2323
display_name = var.label_prefix == "none" ? "bastion-vnic" : "${var.label_prefix}-bastion-vnic"
24-
hostname_label = "bastion"
24+
hostname_label = var.assign_dns ? "bastion" : null
2525
subnet_id = oci_core_subnet.bastion.id
2626
}
2727

0 commit comments

Comments
 (0)