summaryrefslogtreecommitdiff
path: root/puppet/templates/puppet/users.pp.erb
diff options
context:
space:
mode:
Diffstat (limited to 'puppet/templates/puppet/users.pp.erb')
-rw-r--r--puppet/templates/puppet/users.pp.erb25
1 files changed, 25 insertions, 0 deletions
diff --git a/puppet/templates/puppet/users.pp.erb b/puppet/templates/puppet/users.pp.erb
new file mode 100644
index 0000000..3b7c857
--- /dev/null
+++ b/puppet/templates/puppet/users.pp.erb
@@ -0,0 +1,25 @@
+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 {
+ # 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 %>" ],
+ }
+
+}