Created
September 11, 2016 11:13
-
-
Save FransUrbo/dbe19ffac8260f849b8fa31c017c42d3 to your computer and use it in GitHub Desktop.
Designate forward DNS record
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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