[Lsb-messages] /var/www/bzr/lsb/devel/puppet-lsb r62: Initial user module.

Jeff Licquia licquia at linuxfoundation.org
Thu Jan 26 17:02:15 UTC 2012


------------------------------------------------------------
revno: 62
committer: Jeff Licquia <licquia at linuxfoundation.org>
branch nick: puppet-lsb
timestamp: Thu 2012-01-26 12:02:15 -0500
message:
  Initial user module.
added:
  modules/user/
  modules/user/manifests/
  modules/user/manifests/init.pp
  modules/user/manifests/lfadmin.pp
  modules/user/manifests/licquia.pp
  modules/user/manifests/virtual.pp
-------------- next part --------------
=== added directory 'modules/user'
=== added directory 'modules/user/manifests'
=== added file 'modules/user/manifests/init.pp'
--- a/modules/user/manifests/init.pp	1970-01-01 00:00:00 +0000
+++ b/modules/user/manifests/init.pp	2012-01-26 17:02:15 +0000
@@ -0,0 +1,5 @@
+class user {
+
+    # Nothing here at the moment; mostly a placeholder for other stuff.
+
+}

=== added file 'modules/user/manifests/lfadmin.pp'
--- a/modules/user/manifests/lfadmin.pp	1970-01-01 00:00:00 +0000
+++ b/modules/user/manifests/lfadmin.pp	2012-01-26 17:02:15 +0000
@@ -0,0 +1,37 @@
+class user::lfadmin inherits user::virtual {
+
+    realize(
+        User['lfadmin'],
+    )
+
+    mailalias { 'lfadmin':
+        ensure      => present,
+        recipient   => 'root',
+    }
+
+    ssh_authorized_key { 'eric at linuxfoundation.org':
+        ensure  => present,
+        type    => 'ssh-rsa',
+        key     => 'AAAAB3NzaC1yc2EAAAADAQABAAACAQCsQDo1VbGN5xrpT5nxZ/KCf1f1fgek
+vh1XK8CymAhrp0WDfBWv/A1fnfrvwA4I81BaFmTb9zt+tObmpOKdhLUaTEQPN5ev5tOuEdpXOAHa3uTX
+athW6g7jPOLLmg3mH04iLYn7E/1q0YQ3qeAZfra/rGA5RwBxNZPJF8Lo8XtUjX8qYl4XORoPsUk/yOKn
+noANRpFt8BqnwheRsrPMAApEZ9G4qKObq3ZJo+lVfb8IcFMulGPZG7ef2FTGsaRDaNxjxSQO0Y2jDqK/
+5eC+c9MvoNZfiUjlwyMDrQU8sTEWG3if+pbxL6eoQg7RQUyh2v10g0bYTnD5guni8HbWKtCUEoCk9wvhXH2V9XU+qxPbafBYa4VNNifL6eJ8vWCTRxj1mKiiZKcJZZxSbLY6Uo6QQ9KjBiGf7kuEUE8tzdeaYfUAIxoe44D0qD28pgpTWvBOh7Goio/l2g+bxbNCh9+2oR7p0///bQnUZUD9Od9eTcYRZ5wRnP57VncnfWT2j64DUll6ce4qVqonAb7T+QSRV7ppj9GoA5ksamjfBKR5FU1LgVuyMX2CirKdgGqkzW7DfTIlcelAoBArU504l/wmeR/kpzg2Yb5J+JxDXZMQCPH09As1wBNPEf/gUBQVt3AJwQEUfbEWQlrH8LF6/uBp6O3enpbuB5Ns8KTKgPB8xw==',
+        user    => 'lfadmin',
+    }
+
+    ssh_authorized_key { 'licquia at lfsecure':
+        ensure  => present,
+        type    => 'ssh-rsa',
+        key     => 'AAAAB3NzaC1yc2EAAAADAQABAAABAQDGFfywU/WIFTUmdWna2+3sX4aAmV6sdC2h36x9qDNDdYHwfaAJwBgoyx64D2d4YqTpR1+gF7G1vlPQngnodGdiMqeisRNkP8DHiDShzNDzhycFObeHv5/LwTVfL9PqwRHdTKmkhwM6ZkipFGq9F6GOMw0apAjGDNN/Q6SI9dDxTdj63J5TdN8GoIhtFwsQuGIojSQutqnhEDNj7CKVHGGy875SRyQAGfKar3D1bceAffZVgJKwnINyur8PtgGs2yBZnLPu5c7/tuvWzVO9KW5AJQqFknTTyD2/BvClAGSpJBZS6CadgIy/WseJYVH9GnmgB3v3ibXJcvn2+UVuqx15',
+        user    => 'lfadmin',
+    }
+
+    ssh_authorized_key { 'agrimberg at linuxfoundation.org':
+        ensure  => present,
+        type    => 'ssh-rsa',
+        key     => 'AAAAB3NzaC1yc2EAAAADAQABAAABAQCdH87x3wrYEJmW4vNr/2wdJFGI8VlgIQYMu0kZtVV5CuHMSvpULbgEr44q2YuX+fIznWfsXWMJrvbkGq72f3Kb1o3g4e40AQgtDD6mV7R6SPMsQ5oIchM5OO0rT/j18ry61NY+5qC+0ru05NNKlckJPkjwQQx1mHeC7/Rs29+LaRGhUDPE2tNOi1kMMKljrK0LFQ43Gmy8awNEXkr3XzyHeoiiBsp9l07NxQLwGk/OC6XrNjGpAbZ5Oo97YnhPYmQbKNAPGJ7cpHwtsDTGWGuqHSq/UgyCMUeWAUJwdOz1NC2PPnutPZ5gHPnxpYm3gUkfSL9af7pZ8MEp2j2NE0IP',
+        user    => 'lfadmin',
+    }
+
+}

=== added file 'modules/user/manifests/licquia.pp'
--- a/modules/user/manifests/licquia.pp	1970-01-01 00:00:00 +0000
+++ b/modules/user/manifests/licquia.pp	2012-01-26 17:02:15 +0000
@@ -0,0 +1,19 @@
+class user::licquia inherits user::virtual {
+
+    realize(
+        User['licquia'],
+    )
+
+    mailalias { 'licquia':
+        ensure      => present,
+        recipient   => 'licquia at linuxfoundation.org',
+    }
+
+    ssh_authorized_key { 'licquia at linuxfoundation.org':
+        ensure  => present,
+        type    => 'ssh-rsa',
+        key     => 'AAAAB3NzaC1yc2EAAAADAQABAAABAQDGFfywU/WIFTUmdWna2+3sX4aAmV6sdC2h36x9qDNDdYHwfaAJwBgoyx64D2d4YqTpR1+gF7G1vlPQngnodGdiMqeisRNkP8DHiDShzNDzhycFObeHv5/LwTVfL9PqwRHdTKmkhwM6ZkipFGq9F6GOMw0apAjGDNN/Q6SI9dDxTdj63J5TdN8GoIhtFwsQuGIojSQutqnhEDNj7CKVHGGy875SRyQAGfKar3D1bceAffZVgJKwnINyur8PtgGs2yBZnLPu5c7/tuvWzVO9KW5AJQqFknTTyD2/BvClAGSpJBZS6CadgIy/WseJYVH9GnmgB3v3ibXJcvn2+UVuqx15',
+        user    => 'licquia',
+    }
+
+}

=== added file 'modules/user/manifests/virtual.pp'
--- a/modules/user/manifests/virtual.pp	1970-01-01 00:00:00 +0000
+++ b/modules/user/manifests/virtual.pp	2012-01-26 17:02:15 +0000
@@ -0,0 +1,24 @@
+# Users are declared here as virtual, and then realized for
+# individual user classes.
+class user::virtual inherits user {
+
+    @user { 'lfadmin':
+        ensure      => present,
+        uid         => '1000',
+        comment     => 'Linux Foundation IT',
+        home        => '/home/lfadmin',
+        shell       => '/bin/bash',
+        managehome  => true,
+    }
+
+    @user { 'licquia':
+        ensure      => present,
+        uid         => '1001',
+        gid         => '100',
+        comment     => 'Jeff Licquia',
+        home        => '/home/licquia',
+        shell       => '/bin/bash',
+        managehome  => true,
+    }
+
+}



More information about the lsb-messages mailing list