https://github.com/ericsson/puppet-module-tweaks
https://github.com/ericsson/puppet-module-tweaks
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ericsson/puppet-module-tweaks
- Owner: Ericsson
- License: apache-2.0
- Created: 2016-07-13T12:38:20.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-10-30T13:47:34.000Z (about 7 years ago)
- Last Synced: 2025-05-07T18:16:24.441Z (8 months ago)
- Language: Ruby
- Size: 102 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tweaks module #
===
Collection of Linux terminal server related system tweaks.
===
# Compatibility #
This module has been tested to work on the following systems with the latest Puppet v3, v3 with future parser,
v4, v5 and v6. See `.travis.yml` for the exact matrix of supported Puppet and ruby versions.
## OS Distributions ##
* EL 5
* EL 6
* EL 7
* Suse 10
* Suse 11
* Suse 12
===
# Function support matrix ##
|fix \ OS |EL5|EL6|EL7|Suse10|Suse11|Suse12|
|------------------------|---|---|---|------|------|------|
|fix_access_to_alsa | - | - | - | + | + | - |
|fix_core_pattern | - | + | + | - | + | + |
|fix_haldaemon | - | - | - | - | + | - |
|fix_localscratch | + | + | + | + | + | + |
|fix_messages_permission | + | + | + | + | + | + |
|fix_pulse_respawn | - | + | + | + | + | + |
|fix_services | + | + | - | + | + | - |
|fix_swappiness | + | + | + | + | + | + |
|fix_systohc_for_vm | - | - | - | + | + | - |
|fix_updatedb | - | - | - | + | + | + |
|fix_xinetd | + | + | - | + | + | - |
# Parameters #
fix_access_to_alsa (boolean)
----------------------------
Access MODE of ALSA device will be set to 0666 to make sure they are accessible for all users if it's true.
Nothing will happen with /etc/udev/rules.d/40-alsa.rules if it's false.
- *Default*: false
fix_core_pattern (boolean)
------------------------
Trigger to manage the traditional core dump behavior.
- *Default*: false
fix_core_pattern_value (string)
-----------------------------
Content for the file /proc/sys/kernel/core_pattern.
- *Default*: 'core'
fix_haldaemon (boolean)
-----------------------
Add the "CPUFREQ=no" line in /etc/sysconfig/haldaemon and make sure service haldaemon is running if it's true.
It only affects to Suse 11.
Nothing will happen with /etc/sysconfig/haldaemon if it's false.
- *Default*: false
fix_localscratch (boolean)
--------------------------
Create local scratch folder if it's true.
Nothing will happen with local scratch folder if it's false.
- *Default*: false
fix_localscratch_path (string)
------------------------------
Path to local scratch.
- *Default*: '/local/scratch'
fix_messages_permission (boolean)
---------------------------------
Make sure the mode of /var/log/messages is 0644 if it's true.
Nothing will happen with /var/log/messages if it's false.
- *Default*: false
fix_pulse_respawn (boolean)
---------------------------
Prevents PulseAudio from respawning. It will set autospawn to no in /etc/pulse/client.conf.
PulseAudio configuration will not get touched if it's false.
- *Default*: false
fix_services (boolean)
----------------------
Disable useless services based on the osfamily. (nfs service is removed from this disable list.)
It only affects to Suse 10&11, EL 5&6.
Nothing will happen with those services if it's false.
- *Default*: false
fix_services_services (array)
-----------------------------
Array of service names to disable when fix_services is activated. 'USE_DEFAULTS' will choose the appropriate default for the used OS.
- *Default*: 'USE_DEFAULTS'
fix_swappiness (boolean)
------------------------
Set parameter that controls the relative weight given to swapping out runtime memory if it's true.
- *Default*: false
fix_swappiness_value (string)
-----------------------------
Set parameter that controls the relative weight given to swapping out runtime memory.
The value will be set into /proc/sys/vm/swappiness directly.
- *Default*: '30'
fix_systohc_for_vm (boolean)
----------------------------
Disable hardware clock to the current system time if it's true.
It only affects to Suse virtual machine.
Nothing will happen with /etc/sysconfig/clock if it's false.
- *Default*: false
fix_updatedb (boolean)
----------------------
Set "RUN_UPDATEDB=no" in /etc/sysconfig/locate if it's true.
Updatedb cronjob in cron.daily will be disabled when "RUN_UPDATEDB=no".
It only affects to Suse.
Nothing will happen with /etc/sysconfig/locate if it's false.
- *Default*: false
fix_xinetd (boolean)
--------------------
Xinetd will be fixed (install package, configure /etc/xinetd.d/echo) if it's true.
Nothing will happen with xinetd if it's false.
- *Default*: false