Skip to content

Instantly share code, notes, and snippets.

@ripienaar
Last active August 29, 2015 14:18
Show Gist options
  • Select an option

  • Save ripienaar/873d44a8944390134529 to your computer and use it in GitHub Desktop.

Select an option

Save ripienaar/873d44a8944390134529 to your computer and use it in GitHub Desktop.
x: development_value
if $environment == "production" {
$x = "production_value"
} elsif $environment == "development" {
$x = "development_value"
} else {
$x = "default"
}
$x = hiera("something", "default")
:hierarchy:
- %{::environment}
x: production_value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment