-
Notifications
You must be signed in to change notification settings - Fork 73
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
Add dns_ptr_record_set
resource
#105
base: main
Are you sure you want to change the base?
Conversation
4a5b72c
to
6d044dd
Compare
e920c45
to
398f3d7
Compare
Will there be any movement on this? Would be useful for me to get this added. |
Apologies, I am working on getting permission to sign the CLA now. |
398f3d7
to
228939f
Compare
913db56
to
b493e35
Compare
@hashicorp-cla my employer would prefer to sign a corporate CLA rather than have me sign on their behalf (as they would need to authorise me to do that). This possibility is mentioned in CLA clause 4: How can we go about executing a corporate CLA? I see this has been asked (but no apparent answer is visible) elsewhere: https://discuss.hashicorp.com/t/corporate-cla-info/11397 |
@jrandall if you email me at dave.parfitt at hashicorp dot com, I can help with the corporate CLA. |
Hello, I'm looking forward to this resource as well. |
Add a
dns_ptr_record_set
resource to manage PTR records as a set. With the existingdns_ptr_record
, if there is an existing reverse DNS entry for an IP, terraform will add an additional one, and then get stuck not being able to work with the state because there are multiple PTR entries (it triggers the issue described in #93).This adds a
dns_ptr_record_set
resource type as suggested by @bodgit in #93 (comment)With this fix, setting the
ptr
record to a single element list will mean that terraform will remove any other extant entries and ensure that the listed entry is the only PTR record for the IP.Theoretically, if someone wanted to manage multiple PTR records, this should also work for that -- I am not aware of a valid use-case for that, but since there are several DNS servers including the popular bind that allows that, it makes sense to manage the PTR records as a set.
Fixes #93