Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class users::accounts {
- include users::groups
- @user { "jbouse":
- ensure => "present",
- uid => "1000",
- gid => "1000",
- home => "/home/jbouse",
- shell => "/bin/bash",
- managehome => true,
- require => Group["jbouse"],
- }
- }
- class users::groups {
- @group { "pwadmin":
- ensure => "present",
- gid => "990",
- }
- @group { "jbouse":
- ensure => "present",
- gid => "1000",
- }
- }
- class users::keys {
- @ssh_authorized_key { "jbouse@brisingr":
- ensure => "present",
- type => "ssh-rsa",
- key => "AAAA==",
- user => "jbouse"
- }
- @ssh_authorized_key { "jbouse@solitare":
- ensure => "present",
- type => "ssh-rsa",
- key => "AAAA==",
- user => "jbouse"
- }
- }
- class techops::accounts inherits users::accounts {
- include users::groups
- realize(
- User["jbouse"]
- )
- User["jbouse"] { groups => "admin" }
- }
- class techops::groups inherits users::groups {
- realize(
- Group["admin"],
- Group["jbouse"]
- )
- }
- class techops::keys inherits users::keys {
- realize(
- Ssh_authorized_key["jbouse@brisingr"],
- Ssh_authorized_key["jbouse@solitare"],
- )
- }
Add Comment
Please, Sign In to add comment