We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Able to create custom DNS DHCP options, but not able to use dhcp_options_id attribute in the resource "baremetal_core_subnet"
resource "baremetal_core_dhcp_options" "DHCP-Options" { compartment_id = "${var.compartment_ocid}" vcn_id = "${baremetal_core_virtual_network.CompleteVCN.id}" display_name = "Custom dhcp-1" options { type = "DomainNameServer" server_type = "CustomDnsServer" custom_dns_servers = [ "10.1.1.1","10.1.1.2","10.1.1.2" ] } }
resource "baremetal_core_subnet" "WebSubnetAD1" { availability_domain = "${var.ADs[0]}" cidr_block = "10.45.1.0/24" display_name = "WebSubnetAD1" dhcp_options_id = "${baremetal_core_dhcp_options.DHCP-Options.id}" compartment_id = "${var.compartment_ocid}" vcn_id = "${baremetal_core_virtual_network.CompleteVCN.id}" route_table_id = "${baremetal_core_route_table.RouteForComplete.id}" security_list_ids = ["${baremetal_core_security_list.WebSubnet.id}"] }
$ terraform plan work/terraform There are warnings and/or errors related to your configuration. Please fix these before continuing.
Errors:
The text was updated successfully, but these errors were encountered:
Confirmed
Sorry, something went wrong.
Add dhcpOptionsID and dnsLabel to the subnet resource. Closes oracle#50
41fb28f
1a5c825
Merge pull request #59 from MustWin/master
d5ed903
Closes #50, closes #44, closes #49, closes #34, closes #12
craigcarl-oracle
Successfully merging a pull request may close this issue.
Able to create custom DNS DHCP options, but not able to use dhcp_options_id attribute in the resource "baremetal_core_subnet"
resource "baremetal_core_dhcp_options" "DHCP-Options" {
compartment_id = "${var.compartment_ocid}"
vcn_id = "${baremetal_core_virtual_network.CompleteVCN.id}"
display_name = "Custom dhcp-1"
options {
type = "DomainNameServer"
server_type = "CustomDnsServer"
custom_dns_servers = [ "10.1.1.1","10.1.1.2","10.1.1.2" ]
}
}
resource "baremetal_core_subnet" "WebSubnetAD1" {
availability_domain = "${var.ADs[0]}"
cidr_block = "10.45.1.0/24"
display_name = "WebSubnetAD1"
dhcp_options_id = "${baremetal_core_dhcp_options.DHCP-Options.id}"
compartment_id = "${var.compartment_ocid}"
vcn_id = "${baremetal_core_virtual_network.CompleteVCN.id}"
route_table_id = "${baremetal_core_route_table.RouteForComplete.id}"
security_list_ids = ["${baremetal_core_security_list.WebSubnet.id}"]
}
$ terraform plan work/terraform
There are warnings and/or errors related to your configuration. Please
fix these before continuing.
Errors:
The text was updated successfully, but these errors were encountered: