Last active
August 29, 2015 14:03
-
-
Save palmertime/55ff161b4a24bec57a1b to your computer and use it in GitHub Desktop.
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
# Class: useradm | |
# | |
# This module manages local user account | |
# | |
# Parameters: none | |
# | |
# Actions: | |
# | |
# Requires: see Modulefile | |
# | |
# Sample Usage: | |
# | |
class useradm { | |
$users = hiera_hash('users', false) | |
if $users != false { | |
$defaults = { | |
ensure => 'present', | |
gid => '2004', | |
managehome => true, | |
shell => '/bin/bash', | |
} | |
create_resources(user, $users, $defaults) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment