Skip to content

Latest commit

 

History

History
145 lines (86 loc) · 4.1 KB

REFERENCE.md

File metadata and controls

145 lines (86 loc) · 4.1 KB

Reference

Table of Contents

Classes

Classes

profile_user_environment

Configure various environment settings for users

Examples

include profile_user_environment

profile_user_environment::history

Configure default history environment for all users

Examples

include profile_user_environment::history

Parameters

The following parameters are available in the profile_user_environment::history class:

filename

Data type: String

Name of history file. This string will be prepended by either '.bash_' or '.csh_' for the actual file.

size

Data type: Integer

Number of history records to keep in history file.

profile_user_environment::quota

Install login scripts to run user quota commands.

Examples

include profile_user_environment::quota

Parameters

The following parameters are available in the profile_user_environment::quota class:

command_paths

Data type: Array

Paths to commands/scripts to run to display user quota information. Leave empty to NOT run any quota commands at login.

file_prefix

Data type: String

Run-script files will be added for various shells in /etc/profile.d/ to wrap the quota scripts. This parameter specifies the prefix for the filenames of these run-scripts. The entire name will end up being ${file_prefix}_quota.[extension]. A prefix is useful to avoid collisions and control the order of execution in relation to other scripts in /etc/profile.d/.

skip_users

Data type: Array

When these users log in quota commands will NOT be run.

timeout_interval_seconds

Data type: Integer

Each quota command is wrapped in 'timeout' and will be aborted after this number of seconds. Can be useful to prevent long "hangs" at login if there are filesystem problems.

profile_user_environment::timeout

Configure session timeouts for all users

Examples

include profile_user_environment::timeout

Parameters

The following parameters are available in the profile_user_environment::timeout class:

limit_ssh_hours

Data type: Integer

Number of elapsed hours to limit a ssh session. A value of <= 0 results in NO limit.

session_minutes

Data type: Integer

Number of minutes of idle before session times out and ends.