template.yaml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. ---
  2. kind: terraform
  3. metadata:
  4. name: Cloudflare DNS Record
  5. description: |-
  6. Create Cloudflare DNS records (A, AAAA, CNAME, TXT, MX) with configurable settings.
  7. Supports all common DNS record types with proxy status and TTL configuration.
  8. Project: https://www.cloudflare.com/
  9. Documentation: https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/resources/dns_record
  10. version: 5.12.0
  11. author: Christian Lempa
  12. date: "2025-11-11"
  13. tags: []
  14. icon:
  15. provider: selfh
  16. id: cloudflare
  17. draft: false
  18. spec:
  19. comment:
  20. title: Comment
  21. toggle: comment_enabled
  22. vars:
  23. comment_enabled:
  24. description: Add comment to DNS record
  25. type: bool
  26. default: false
  27. comment_text:
  28. description: Comment for the DNS record
  29. type: str
  30. default: Managed by Terraform
  31. general:
  32. vars:
  33. resource_name:
  34. description: Terraform resource name (alphanumeric and underscores only)
  35. type: str
  36. default: dns_record
  37. zone_id_value:
  38. description: Cloudflare Zone ID
  39. type: str
  40. mx:
  41. title: MX Record Settings
  42. toggle: mx_enabled
  43. vars:
  44. mx_enabled:
  45. description: Configure MX record priority
  46. type: bool
  47. default: false
  48. priority:
  49. description: MX record priority (lower = higher priority)
  50. type: int
  51. default: 10
  52. record:
  53. title: DNS Record
  54. required: true
  55. vars:
  56. content:
  57. description: DNS record content (IP, hostname, or text)
  58. type: str
  59. default: 192.0.2.1
  60. name:
  61. description: DNS record name (use @ for root domain)
  62. type: str
  63. default: www
  64. proxied:
  65. description: Enable Cloudflare proxy (orange cloud)
  66. type: bool
  67. default: true
  68. record_type:
  69. description: DNS record type
  70. type: enum
  71. default: A
  72. config:
  73. options: [A, AAAA, CNAME, TXT, MX]
  74. ttl:
  75. description: Time to live (1 = automatic, or 60-86400 seconds)
  76. type: int
  77. default: 1