Skip to content

Instantly share code, notes, and snippets.

@FransUrbo
Created September 6, 2016 18:41
Show Gist options
  • Save FransUrbo/6a47c1ce35c35d2015a9432694fbcd1f to your computer and use it in GitHub Desktop.
Save FransUrbo/6a47c1ce35c35d2015a9432694fbcd1f to your computer and use it in GitHub Desktop.
heat test reverse designate entry
heat_template_version: 2016-04-08
description: Test reverse entry
parameters:
name:
type: string
description: Hostname to attach to IP
default: test
domain:
type: string
description: Domainname to attach hostname to
default: bayour.net.
ip:
type: string
description: IP address of the record
default: 10.0.5.78
resources:
reverse:
type: OS::Designate::Record
properties:
name: { list_join: ['.', [ { str_split: ['.', { get_param: ip }, 3] }, { str_split: ['.', { get_param: ip }, 2] }, { str_split: ['.', { get_param: ip }, 1] }, { str_split: ['\
.', { get_param: ip }, 0] }, 'in-addr.arpa.' ] ] }
domain: { list_join: ['.', [ { str_split: ['.', { get_param: ip }, 2] }, { str_split: ['.', { get_param: ip }, 1] }, { str_split: ['.', { get_param: ip }, 0] }, 'in-addr.arpa\
.' ] ] }
data: { list_join: ['.', [ { get_param: name }, { get_param: domain } ] ] }
type: PTR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment