Skip to content
New issue

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

Unable to assign custom DHCP Options to a subnet #50

Closed
PeterJamesHarrison opened this issue Mar 31, 2017 · 1 comment · Fixed by #59
Closed

Unable to assign custom DHCP Options to a subnet #50

PeterJamesHarrison opened this issue Mar 31, 2017 · 1 comment · Fixed by #59
Assignees
Labels

Comments

@PeterJamesHarrison
Copy link

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:

  • baremetal_core_subnet.WebSubnetAD1: : invalid or unknown key: dhcp_options_id
@craigcarl-oracle
Copy link
Contributor

Confirmed

mikejihbe added a commit to MustWin/terraform-provider-baremetal that referenced this issue Apr 4, 2017
mikejihbe added a commit to MustWin/terraform-provider-baremetal that referenced this issue Apr 11, 2017
craigcarl-oracle added a commit that referenced this issue Apr 13, 2017
Closes #50, closes #44, closes #49, closes #34, closes #12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants