Created
May 26, 2016 21:23
-
-
Save frozenfoxx/086c25fd60e80c60225cbb77e078c239 to your computer and use it in GitHub Desktop.
puppet variable set on os and version
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
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