Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable sysctl configuration #253

Merged
merged 4 commits into from
Dec 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,18 +176,21 @@ Otherwise puppet will drop an error (duplicate resource)!
setup Grub so it only requires a password when changing an entry, not when booting an existing entry
* `system_umask = undef`
if this variable is set setup the umask for all user in the system (e.g. '027')
*`manage_home_permissions = false`
* `manage_home_permissions = false`
set to true to manage local users file and directory permissions (g-w,o-rwx)
*`ignore_home_users = []`
* `ignore_home_users = []`
array for users that is not to be restricted by manage_home_permissions
*`manage_log_permissions = false`
* `manage_log_permissions = false`
set to true to manage log file permissions (g-wx,o-rwx)
*`restrict_log_dir = ['/var/log/']`
* `restrict_log_dir = ['/var/log/']`
set main log dir
*`ignore_restrict_log_dir = []`
* `ignore_restrict_log_dir = []`
array to exclude log dirs under the main log dir
*`manage_cron_permissions = false`
* `manage_cron_permissions = false`
set to true to manage cron file permissions (og-rwx)
* `enable_sysctl_config = true`
set to false to disable sysctl configuration



### Note about wanted/unwanted packages and disabled services
Expand Down
5 changes: 4 additions & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@
String $grub_password_hash = '',
Boolean $boot_without_password = true,

Boolean $enable_sysctl_config = true,

Optional[String] $system_umask = undef,
) {

Expand All @@ -98,7 +100,8 @@
# sysctl configuration doesn't work in docker:
$configure_sysctl = (
$system_environment != 'lxc' and
$system_environment != 'docker'
$system_environment != 'docker' and
$enable_sysctl_config
)

# Defaults for specific platforms
Expand Down