Skip to content

Instantly share code, notes, and snippets.

@bmorelli25
Last active January 14, 2019 23:39
Show Gist options
  • Save bmorelli25/42bacb9f4d1eb6674f6537bdbc8434f4 to your computer and use it in GitHub Desktop.
Save bmorelli25/42bacb9f4d1eb6674f6537bdbc8434f4 to your computer and use it in GitHub Desktop.

All three options below produce the same output regardless of which attributes are set

Option 1 Uses "," (or) in ifndef to check for two attributes

Loads the initial setup, including Elasticsearch template, {kib} index pattern, and {kib} dashboards (when available).

Option 2 Nested statements

Loads the initial setup, including Elasticsearch template, {kib} index pattern, and {kib} dashboards (when available).

Option 3* Weird but fun. Using attributes allows a default to be overwritten

Loads the initial setup, including Elasticsearch template, {kib} index pattern, and {kib} dashboards (when available).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment