Last active
December 4, 2017 22:50
-
-
Save big-samantha/4e8c584c28f19a045a39a671d6529795 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 has_key($params, 'unix_user') { | |
$unix_user_real = str2bool($params['unix_user']) | |
case $unix_user_real { | |
false: {} | |
default: { | |
@account::user { $user_name: | |
ensure => present, | |
shell => $shell, | |
uid => $uid, | |
group => $group, | |
comment => $comment, | |
purgekeys => true, | |
} | |
} | |
} | |
} | |
else { | |
@account::user { $user_name: | |
ensure => present, | |
shell => $shell, | |
uid => $uid, | |
group => $group, | |
comment => $comment, | |
purgekeys => true, | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment