aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2011-03-17 13:17:11 -0300
committerdrebs <drebs@riseup.net>2011-03-17 13:17:11 -0300
commitbb2e677fbcc781edd18a93904a8e102b2e6f00c1 (patch)
tree9bfee9633f32f31a44b7d76e87ce288a6a52f790 /manifests
parent2716b19991b0fcb8dfba33f801b3a90ad7b97a83 (diff)
downloadpuppet-bootstrap-bb2e677fbcc781edd18a93904a8e102b2e6f00c1.tar.gz
puppet-bootstrap-bb2e677fbcc781edd18a93904a8e102b2e6f00c1.tar.bz2
addin users.pp
Diffstat (limited to 'manifests')
-rw-r--r--manifests/host-stage1.pp3
-rw-r--r--manifests/users.pp64
2 files changed, 67 insertions, 0 deletions
diff --git a/manifests/host-stage1.pp b/manifests/host-stage1.pp
index 2360b20..e026255 100644
--- a/manifests/host-stage1.pp
+++ b/manifests/host-stage1.pp
@@ -2,6 +2,9 @@ import "config.pp"
import "nodo"
import "admin_node.pp"
import "firewall.pp"
+import "users.pp"
+
+include nodo::server
# creates vserver for administrative node
include admin_node
diff --git a/manifests/users.pp b/manifests/users.pp
new file mode 100644
index 0000000..05bd1d8
--- /dev/null
+++ b/manifests/users.pp
@@ -0,0 +1,64 @@
+class users::virtual inherits user {
+ # define custom users here
+
+ # groups
+ #group { [ "group1", "group2" ]:
+ # ensure => present,
+ #}
+
+ #user::manage { "":
+ # tag => "virtual",
+ # password => '',
+ # comment => 'user@host.com',
+ # groups => [ 'group1' ],
+ # sshkey => absent,
+ #}
+
+}
+
+class users::backup inherits user {
+ # define third-party hosted backup users here
+}
+
+class users::email inherits user {
+ # define third-party hosted email tunnels here
+ #user::manage { "mailuser":
+ # password => '*',
+ # groups => [ "group2" ],
+ # sshkey => "",
+ # sshkey_type => "ssh-rsa",
+ # homedir => '',
+ #}
+}
+
+class users::admin inherits user {
+
+ # reprepro group needed for web nodes
+ if !defined(Group["reprepro"]) {
+ group { "reprepro":
+ ensure => present,
+ }
+ }
+
+ # senha escangalhada para o root
+ user::manage { "root":
+ tag => "admin",
+ homedir => '/root',
+ password => '$6$rwKJZHuG1D6v82So$oP60nSPInB408TKQjObBVN5LZyCxcPECz5SfboBnwrVLJOrbSMkd0vUjqqEZHKiBdhyETW/qpbFAer8a4XGFS.',
+ }
+
+ # TODO: temporary cleanup; remove after all nodes have applied it
+ file { '/home/root':
+ ensure => absent,
+ recurse => true,
+ force => true,
+ }
+
+ #user::manage { "user1":
+ # tag => "admin",
+ # groups => [ "sudo", "reprepro", "backupninjas" ],
+ # password => '$5$96ewxsYOOi7XbhDV$hDOleZ1B2A6dUc1ukDHhx4dmYhyAWvqYAf1xczAHmI8',
+ # sshkey => "",
+ #}
+
+}