blob: 55a27066c226f1fcb8a8a6f69902b5a1db3d99b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
class users::virtual inherits user {
# define custom users here
}
class users::backup inherits user {
# define third-party hosted backup users here
}
class users::admin inherits user {
# Reprepro group needed for web nodes
#if !defined(Group["reprepro"]) {
# group { "reprepro":
# ensure => present,
# }
#}
# root user and password
user::manage { "root":
tag => "admin",
homedir => '/root',
password => '<%= root_password %>',
}
# first user config
user::manage { "<%= first_user %>":
tag => "admin",
groups => [ "sudo", ],
password => '<%= first_user_password %>',
sshkey => [ "<%= first_user_sshkey %>" ],
}
}
|