Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save frozenfoxx/086c25fd60e80c60225cbb77e078c239 to your computer and use it in GitHub Desktop.
Save frozenfoxx/086c25fd60e80c60225cbb77e078c239 to your computer and use it in GitHub Desktop.
puppet variable set on os and version
if $facts['os']['family'] == 'Darwin' {
if versioncmp($facts['os']['macosx']['version']['major'], '10.11') >= 0 {
$var = '/etc/ssh'
} else {
$var = '/etc'
}
} else {
$var = '/etc/ssh'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment