Skip to content

Instantly share code, notes, and snippets.

@palmertime
Last active August 29, 2015 14:03
Show Gist options
  • Save palmertime/55ff161b4a24bec57a1b to your computer and use it in GitHub Desktop.
Save palmertime/55ff161b4a24bec57a1b to your computer and use it in GitHub Desktop.
# 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