# Class: rhizo_base::users # # This module manages the users on the BSCs. # # Parameters: none # # Actions: # # Requires: see Modulefile # # Sample Usage: # class rhizo_base::users { $password_hash = $rhizo_base::password_hash $pgsql_pwd = $rhizo_base::pgsql_pwd user { 'rhizomatica': ensure => present, gid => 'rhizomatica', home => '/home/rhizomatica', password => Sensitive($password_hash), uid => '1000', purge_ssh_keys => true } group { 'tic': name => 'tic', ensure => present } user { 'tic': ensure => present, uid => '2000', gid => 'users', groups => 'operator', membership => inclusive, home => '/home/tic', shell => '/bin/bash', managehome => true, purge_ssh_keys => true, } user { 'osmocom': ensure => present, uid => '2060', gid => 'users', groups => 'operator', membership => inclusive, home => '/home/osmocom', shell => '/bin/bash', managehome => true, purge_ssh_keys => true, } file { '/home/rhizomatica/.ssh/config': content => template('rhizo_base/ssh_user_config.erb'), owner => 'rhizomatica', group => 'rhizomatica', mode => '0600' } file { '/home/tic/.bash_aliases': content => template('rhizo_base/bash_aliases.erb'), owner => 'tic', group => 'tic', mode => '0640' } }