Skip to content

Instantly share code, notes, and snippets.

@glarizza
Created July 27, 2012 02:27
Show Gist options
  • Save glarizza/3185860 to your computer and use it in GitHub Desktop.
Save glarizza/3185860 to your computer and use it in GitHub Desktop.
User Declaration for OS X 10.7 and 10.8
$password = $macosx_productversion_major ? {
'10.7' => 'aaa6c1f945132d2599079fe90c9d20e608e607344b86328c1ef8ad8dc820c1bb5a31fd816b8ae546fed6dcf58ff023794f8250a66935d6d0687b737f24aae2ed',
'10.8' => '0590ade19e6953c135ae872ae77618235df7d46c63de7f9a0fcdf2cd9e7d85e4b7ca868101235b6158e05a309805ee4814b027a4be9c23ec2926bc8172269affba5c9a5985e81091fa6898076d297f1faa75fa617551ef1671d7520055c4a0d97b9b9c5805aa322baedbcd8ee9c523811653ac2ea9e9c8d8f1ac519a0f2b595e',
default => 'SHA1 Style 10.5 and 10.6 Hash',
}
user { 'test':
ensure => present,
uid => '550',
password => $password,
salt => $macosx_productversion_major ? {
'10.8' => 'somesalthere',
default => undef,
},
iterations => $macosx_productversion_major ? {
'10.8' => '10000',
default => undef,
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment