aboutsummaryrefslogtreecommitdiff
path: root/manifests/classes/users.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/classes/users.pp')
-rw-r--r--manifests/classes/users.pp30
1 files changed, 30 insertions, 0 deletions
diff --git a/manifests/classes/users.pp b/manifests/classes/users.pp
new file mode 100644
index 0000000..a7aba1b
--- /dev/null
+++ b/manifests/classes/users.pp
@@ -0,0 +1,30 @@
+class users::virtual inherits user {
+ # define custom users here
+}
+
+class users::backup inherits user {
+ # define third-party hosted backup users here
+}
+
+class users::email inherits user {
+ # define third-party hosted email tunnels here
+}
+
+class users::admin inherits user {
+
+ # root user and password
+ user::manage { "root":
+ tag => "admin",
+ homedir => '/root',
+ password => '$root_pass',
+ }
+
+ # first user config
+ user::manage { "$first_user":
+ tag => "admin",
+ groups => [ "sudo", ],
+ password => '$first_user_password',
+ sshkey => [ "$first_user_sshkey" ],
+ }
+
+}