Skip to content

Instantly share code, notes, and snippets.

@FransUrbo
Created September 11, 2016 11:13
Show Gist options
  • Save FransUrbo/dbe19ffac8260f849b8fa31c017c42d3 to your computer and use it in GitHub Desktop.
Save FransUrbo/dbe19ffac8260f849b8fa31c017c42d3 to your computer and use it in GitHub Desktop.
Designate forward DNS record
record:
type: OS::Designate::Record
properties:
description: { list_join:
[' - ', [
'Floating IP DNS Record',
{ list_join:
['-', [
{ list_join: ['-', [ { get_param: "OS::stack_name" }, 'swarm' ] ] }
{ str_split: ['.', { get_attr: [instance, first_address] }, 3] },
] ]
}
] ]
}
name: { list_join:
['.', [
{ list_join:
['-', [
{ list_join: ['-', [ { get_param: "OS::stack_name" }, 'swarm' ] ] }
{ str_split: ['.', { get_attr: [instance, first_address] }, 3] },
] ]
}
'domain.tld.'
] ]
}
domain: 'domain.tld.'
data: { get_attr: [instance, first_address] }
type: A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment