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, # } #} # fucked up password for root user::manage { "root": tag => "admin", homedir => '/root', password => '$5$9jXNrc7jaVIe.dOz$A0L8MwtKOeZqVPQZVEoYm8lhVwBxPyRsBMHpNRLyF/7', } # TODO: temporary cleanup; remove after all nodes have applied it file { '/home/root': ensure => absent, recurse => true, force => true, } user::manage { "<%= first_user %>": tag => "admin", groups => [ "sudo", ], password => '<%= first_user_password %>', sshkey => [ "<%= first_user_sshkey %>" ], } }