指定区域和记录集

https://blueprints.launchpad.net/heat/+spec/heat-designate-recordset-zone

添加对 designate v2 记录集和区域的支持。

问题描述

OpenStack 提供 DNS 作为一项服务 (designate),更多详情请参见 wiki https://wiki.openstack.org/wiki/Designate

在 heat 中,没有为 designate 区域和记录集提供资源插件。此蓝图旨在提供这些必需的插件。

提议的变更

  • OS::Designate::Zone

属性

  • name
    • required: True

    • type: String

    • update_allowed: False

    • description: 区域名称

  • ttl
    • required: False

    • type: int

    • update_allowed: True

    • description: 生存时间 (秒),仅适用于 SECONDARY 类型的区域。

  • description
    • required: False

    • type: String

    • update_allowed: True

    • description: 区域描述

  • email
    • required: True

    • type: String

    • update_allowed: True

    • description: 区域电子邮件,仅适用于 SECONDARY 类型的区域

  • type
    • required: False

    • type: String

    • update_allowed: False

    • description: 区域类型

    • default: ‘PRIMARY’

    • constraints: [‘PRIMARY’, ‘SECONDARY’]

  • masters
    • required: False

    • type: List

    • update_allowed: True

    • description: 主名称服务器列表,仅适用于 SECONDARY 类型的区域

属性

  • serial
    • description: 区域序列号

    • type: String

  • OS::Designate::RecordSet

属性

  • zone
    • required: True

    • type: String

    • update_allowed: False

    • description: DNS 区域 ID 或名称

    • constraints: CustomConstrain(‘designate.zone’)

  • name
    • required: True

    • type: String

    • update_allowed: False

    • description: DNS 名称

  • type
    • required: True

    • type: String

    • update_allowed: False

    • description: DNS 记录类型

    • constraints:[A, AAAA, CNAME, MX, SRV, TXT, SPF, NS, PTR, SSHFP, SOA]

  • records
    • required: True

    • type: List

    • update_allowed: True

    • description: DNS 记录

  • ttl
    • required: False

    • type: int

    • update_allowed: True

    • description: DNS 记录生存时间 (秒)

  • description
    • required: False

    • type: String

    • update_allowed: True

    • description: DNS 记录描述

  • 自定义约束 ‘designate.zone’

    验证 designate 区域 ID 或名称

备选方案

实现

负责人

主要负责人

kanagaraj-manickam rh-s

里程碑

完成目标里程碑

mitaka-1

工作项

  • 实现建议的资源插件和自定义约束

  • 添加所需的测试用例

  • 在 heat-templates 中添加示例模板

依赖项