問題描述
我正在 Oracle 云中自動創(chuàng)建一個(gè)實(shí)例并在其中部署一些應(yīng)用程序.
I am automating creating a instance in oracle cloud and deploy some apps in it.
設(shè)置實(shí)例后,我想添加一個(gè) dns 條目,將新實(shí)例的公共 IP 映射到 easydns.com 中的 FQDN.并且還想在實(shí)例中使用 certbot 為該 FQDN 生成 Let's Encrypt TLS 證書.目前,我正在手動執(zhí)行此操作.
After setting up the instance, I want to add a dns entry that maps the public IP of the new instance to a FQDN in easydns.com. And also want to generate Let's Encrypt TLS certificates for that FQDN using certbot in the instance. Currently, I'm doing this manually.
我想使用 Terraform 或 ansible 自動化第二部分.
I want to automate this second part using Terraform or ansible.
我在 terraform 中找到了一個(gè) EasyDNS DNS Challenge Provider,但我認(rèn)為這是針對 dns 挑戰(zhàn)的,我仍然不知道如何使用它來添加 dns 條目.:https://www.terraform.io/docs/providers/acme/dns_providers/easydns.html
I found a EasyDNS DNS Challenge Provider here in terraform, but i think this is for dns challenge, and i'm still confused how to use it to add the dns entry.: https://www.terraform.io/docs/providers/acme/dns_providers/easydns.html
我可以使用這個(gè)DNS Provider在easydns中添加A記錄嗎?(如果 easydns 支持 RFC 2136,現(xiàn)在不要這樣做):https://registry.terraform.io/providers/hashicorp/dns/latest/文檔
Can i use this DNS Provider to add an A record in easydns? ( Don't now if easydns supports RFC 2136 ) : https://registry.terraform.io/providers/hashicorp/dns/latest/docs
是否有任何類似下面的 Ansible 模塊可以實(shí)現(xiàn)相同的功能?https://docs.ansible.com/ansible/latest/collections/community/general/nsupdate_module.htmlhttps://docs.ansible.com/ansible/latest/collections/community/general/dnsimple_module.html
Is there any Ansible module something like below using which i can achieve the same? https://docs.ansible.com/ansible/latest/collections/community/general/nsupdate_module.html https://docs.ansible.com/ansible/latest/collections/community/general/dnsimple_module.html
或者將 OCI DNS 添加為輔助 dns 或類似的東西是否是一個(gè)不錯(cuò)的選擇?
Or is it a good option to add OCI DNS as secondary dns or something like that?
有人可以幫我嗎?
推薦答案
你說得對.鏈接的提供程序不用于創(chuàng)建 DNS 條目.
You are right. The linked provider is not for creating DNS entries.
您需要為 EasyDNS DNS 條目找到(實(shí)施?)Terraform 提供商.我在任一列表中都看不到:
You need to find (implement?) a Terraform provider for EasyDNS DNS entries. I cannot see one in either of the lists:
- https://www.terraform.io/docs/providers/index.html
- https://www.terraform.io/docs/providers/type/community-index.html
也許有一些低調(diào)的開源項(xiàng)目.或者,您可以詢問供應(yīng)商是否有任何 Terraform 提供程序或計(jì)劃添加它.
Maybe there's some low-profile open-source project. Or you can ask the vendor if they have any Terraform provider or plans to add it.
這篇關(guān)于如何使用terraform在easydns中自動添加dns條目?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!