Report abuse

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
34
class user::virtual {

  @user { "seph":
    ensure     => "present",
    uid        => "2001",
    comment    => "seph",
    home       => "/home/seph",
    shell      => "/bin/bash",
    allowdupe  => false,
    managehome => true,
  }

  @ssh_authorized_key { "seph-2008":    
    ensure  => present,    
    key     => "...",
    type    => "ssh-dss",
    name    => "seph@macbook-2008",
    user    => seph,
  }

}


class user::unixadmins inherits user::virtual {
  realize(
    User["seph"],
    ssh_authorized_key["seph-2008"],
  )
  ssh_authorized_key["seph-2008"]
}

node test {
  include user::unixadmins
}