System¶
Overview¶
System is a Saltbox module that configures system-wide settings including APT updates, network optimizations, sysctl tunings, CPU performance mode, timezone, locale, and log rotation.
Deployment¶
Core Saltbox role.
sb install system
Role Defaults¶
Variables can be customized using the Inventory. (1)
-
Example override
run_sysctl_tasks: true
run_sysctl_tasks
# Type: bool (true/false)
run_sysctl_tasks: true
cpu_performance_mode
# Performance mode sets the CPU to run at its maximum frequency
# Set to false to enable dynamic CPU frequency scaling instead
# Type: bool (true/false)
cpu_performance_mode: true
system_inotify
# Type: string
system_inotify: "524288"
pam_limit_nofile
# Type: string
pam_limit_nofile: "100000"
timezone
# Type: string
timezone: "{{ tz }}"
timezone_string
# Type: string
timezone_string: "Time zone: {{ timezone }}"
timezone_use_local_rtc
# Type: bool (true/false)
timezone_use_local_rtc: false
system_locale
# Type: string
system_locale: "en_US.UTF-8"
system_language
# Type: string
system_language: "en_US.UTF-8"
saltbox_max_log_size
# Type: string
saltbox_max_log_size: 2M
sysctl_netdev_budget_usecs
# Reminder to change the conditional in sysctl.yml if defaults change
# Type: string
sysctl_netdev_budget_usecs: "5000"
sysctl_remove_settings
# Type: list
sysctl_remove_settings:
- fs.file-max