Skip to content

Instantly share code, notes, and snippets.

@binford2k
Last active May 29, 2020 18:31
Show Gist options
  • Save binford2k/7cd040efb1bfe047d588156efbfe802d to your computer and use it in GitHub Desktop.
Save binford2k/7cd040efb1bfe047d588156efbfe802d to your computer and use it in GitHub Desktop.
<% |
Optional[String] $es_protocol = undef,
Integer $es_major_version = 0
| -%>
<% if $es_protocol {
$_es_protocol = $es_protocol
}
else {
$_es_protocol = $es_major_version ? {
5 => 'https',
default => 'http'
}
}
%>
<% |
Integer $es_major_version = 0,
Optional[String] $es_protocol = $es_major_version ? { 5 => 'https', default => 'http' },
| -%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment