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
# Used to define/realize users on Puppet-managed systems | |
# | |
class accounts { | |
@accounts::virtual { 'johndoe': | |
uid => 1001, | |
realname => 'John Doe', | |
pass => '<password hash goes here>', | |
} | |
} |
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
# Defined type for creating virtual user accounts | |
# | |
define accounts::virtual ($uid,$realname,$pass) { | |
user { $title: | |
ensure => 'present', | |
uid => $uid, | |
gid => $title, | |
shell => '/bin/bash', | |
home => "/home/${title}", |
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
# Defined type for creating virtual user accounts | |
# | |
define accounts::virtual ($uid,$gid,$realname,$pass,$sshkey="") { | |
@user { $title: | |
ensure => 'present', | |
uid => $uid, | |
gid => $gid, | |
shell => '/bin/bash', | |
home => "/home/${title}", |
NewerOlder