puppet/modules/rhizo_base/manifests/users.pp
Monocots 9f60595d65 Fix error in user password var name
So now it will actually set the password
2022-10-25 19:05:07 +00:00

49 lines
No EOL
993 B
Puppet

# 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
user { 'rhizomatica':
ensure => present,
gid => 'rhizomatica',
home => '/home/rhizomatica',
password => $rhizo::password_hash,
uid => '1000',
purge_ssh_keys => true
}
group { 'tic':
name => 'tic',
ensure => present
}
user { 'tic':
ensure => present,
uid => '2000',
gid => 'users',
groups => 'operator',
home => '/home/tic',
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'
}
}