Adds sample designate templates

Adds sample templates for creating domain and various
types of record in designate.

implements blueprint heat-designate-resoure

Change-Id: Ifc6902ceeb4506d79b1dbaa1927c8bb8dd044590
This commit is contained in:
Kanagaraj Manickam 2015-07-14 16:05:02 +05:30
parent 1a80f43830
commit 195b6e83df
2 changed files with 105 additions and 0 deletions

View File

@ -0,0 +1,38 @@
heat_template_version: 2015-04-30
description: Sample designate domain template
parameters:
name:
type: string
description: Domain name
default: test1-domain.com.
email:
type: string
description: Domain description
default: abc@xyz.com
ttl:
type: number
description: Time to live in seconds
default: 3600
description:
type: string
description: Domain description
default: Sample test domain
resources:
sample_domain:
type: OS::Designate::Domain
properties:
name: {get_param: name}
email: {get_param: email}
ttl: {get_param: ttl}
description: {get_param: description}
outputs:
serial:
value: {get_attr: [sample_domain, serial]}
description: Domain serial number

View File

@ -0,0 +1,67 @@
heat_template_version: 2015-04-30
description: >
Designate sample template used to create records under the domain
'designate-example.com'. This same template can be used to create
different record types supported by designate. To note, Only for
MX and SRV records, priority will be considered, otherwise, it
will be ignored. To findout the data format for the given record
type, please refer RFC 1035.
parameters:
name:
type: string
description: Record name
default: test.designate-example.com.
type:
type: string
description: Record type
default: MX
ttl:
type: number
description: Time to live in seconds
default: 3600
description:
type: string
description: Record description
default: sample dns MX record
data:
type: string
description: Record data
default: sample.mailserver.com.
priority:
type: number
description: Record priority
default: 10
domain_name:
type: string
description: Domain id or name
default: designate-example.com.
domain_email:
type: string
description: Domain email-id
default: admin@designate-example.com
resources:
sample_domain:
type: OS::Designate::Domain
properties:
name: {get_param: domain_name}
email: {get_param: domain_email}
sample_record:
type: OS::Designate::Record
properties:
name: {get_param: name}
type: {get_param: type}
description: {get_param: description}
data: {get_param: data}
domain: {get_resource: sample_domain}
ttl: {get_param: ttl}
priority: {get_param: priority}