Addition of lib/puppet/parser/functions/str2saltedsha1.rb

This allows you to use plaintext passwords in your manifests for OSX <= 10.6 to maintain compatibility with OSX 10.7 user management.

for example

case $operatingsystem {
darwin: {
        case $macosx_productversion_major {
                10.7: { $hash = str2saltedsha512($password)}
                10.6: { $hash = swapcase(str2saltedsha1($password)) }
                }
        }
}

user { $username:
        password => $hash,
    }