aboutsummaryrefslogtreecommitdiff
path: root/puppet/manifests/classes/users.pp
blob: 7ebc9a86d2b2b1631d8d3e32e4f713c9f5749d1d (plain)
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
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 {

  # Reprepro group needed for web nodes
  #if !defined(Group["reprepro"]) {
  #  group { "reprepro":
  #    ensure => present,
  #  }
  #}

  # root user and password (default 'vagrant' passphrase)
  user::manage { "root":
    tag      => "admin",
    homedir  => '/root',
    password => '$5$aosRByu9U0$Cc7l2vpjV4sRLlao2JmG0lxOnD2crNLU7gZfn2eayu.',
  }

  # first user config (default 'vagrant' passphrase and pubkey)
  user::manage { "vagrant":
    tag      => "admin",
    groups   => [ "sudo", ],
    password => '$5$NCuDu81a$iHr7tZiGX0tKooq6N0bEwE7QDhRqfI9/yyD7WU1GiFB',
    sshkey   => [ "AAAAB3NzaC1yc2EAAAABIwAAAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzIw+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoPkcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NOTd0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcWyLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQ==" ],
  }

}