Skip to content

Instantly share code, notes, and snippets.

@djmitche
Forked from glarizza/gist:3185860
Created July 27, 2012 18:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djmitche/3189746 to your computer and use it in GitHub Desktop.
Save djmitche/3189746 to your computer and use it in GitHub Desktop.
User Declaration for OS X 10.7 and 10.8
$password_data = $macosx_productversion_major ? {
'10.7' => { password => 'aaa6c1f945132d2599079fe90c9d20e608e607344b86328c1ef8ad8dc820c1bb5a31fd816b8ae546fed6dcf58ff023794f8250a66935d6d0687b737f24aae2ed' },
'10.8' => {
password => '0590ade19e6953c135ae872ae77618235df7d46c63de7f9a0fcdf2cd9e7d85e4b7ca868101235b6158e05a309805ee4814b027a4be9c23ec2926bc8172269affba5c9a5985e81091fa6898076d297f1faa75fa617551ef1671d7520055c4a0d97b9b9c5805aa322baedbcd8ee9c523811653ac2ea9e9c8d8f1ac519a0f2b595e',
salt => 'somesalthere',
iterations => '12390',
}
}
user { 'test':
ensure => present,
uid => '550',
password => $password_data[$macosx_productversion_major]['password'],
salt => $password_data[$macosx_productversion_major]['salt'],
iterations => $password_data[$macosx_productversion_major]['iterations'],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment