Last active
August 29, 2015 13:56
-
-
Save fordude1/8938018 to your computer and use it in GitHub Desktop.
limits.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Custom limits.conf | |
file {"/etc/security/limits.conf": | |
source => "puppet:///files/limits-conf" | |
} | |
Output from node: | |
[root@dc4build01 ~]# puppet agent --server dc4puppet01.healthsense.com --test --verbose | |
Info: Retrieving plugin | |
Info: Loading facts in /var/lib/puppet/lib/facter/rabbitmq_erlang_cookie.rb | |
Info: Loading facts in /var/lib/puppet/lib/facter/iptables_persistent_version.rb | |
Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb | |
Info: Loading facts in /var/lib/puppet/lib/facter/os_maj_version.rb | |
Info: Loading facts in /var/lib/puppet/lib/facter/ip6tables_version.rb | |
Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb | |
Info: Loading facts in /var/lib/puppet/lib/facter/iptables_version.rb | |
Info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb | |
Info: Loading facts in /var/lib/puppet/lib/facter/concat_basedir.rb | |
Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb | |
Info: Caching catalog for dc4build01.healthsense.com | |
Info: Applying configuration version '1392129904' | |
Notice: Augeas[limits_conf/*/soft/nofile](provider=augeas): | |
--- /etc/security/limits.conf 2014-02-11 09:58:20.503517191 -0600 | |
+++ /etc/security/limits.conf.augnew 2014-02-11 10:02:08.124263982 -0600 | |
@@ -55,3 +55,4 @@ | |
#@student - maxlogins 4 | |
# End of file | |
+* soft nofile 50000 | |
Notice: /Stage[main]/Limits/Limits::Domain[*]/Limits::Set[*-nofile]/Limits::Entry[*-soft-nofile]/Augeas[limits_conf/*/soft/nofile]/returns: executed successfully | |
Notice: Augeas[limits_conf/*/hard/nofile](provider=augeas): | |
--- /etc/security/limits.conf 2014-02-11 10:02:08.278263401 -0600 | |
+++ /etc/security/limits.conf.augnew 2014-02-11 10:02:08.791259514 -0600 | |
@@ -56,3 +56,4 @@ | |
# End of file | |
* soft nofile 50000 | |
+* hard nofile 65535 | |
Notice: /Stage[main]/Limits/Limits::Domain[*]/Limits::Set[*-nofile]/Limits::Entry[*-hard-nofile]/Augeas[limits_conf/*/hard/nofile]/returns: executed successfully | |
Notice: Augeas[limits_conf/healthsense/hard/nproc](provider=augeas): | |
--- /etc/security/limits.conf 2014-02-11 10:02:08.911259784 -0600 | |
+++ /etc/security/limits.conf.augnew 2014-02-11 10:02:09.429259994 -0600 | |
@@ -43,7 +43,6 @@ | |
healthsense soft nofile 63536 | |
healthsense hard nofile 63536 | |
healthsense soft nproc 5000 | |
-healthsense hard nproc 10000 | |
#* soft core 0 | |
@@ -57,3 +56,4 @@ | |
# End of file | |
* soft nofile 50000 | |
* hard nofile 65535 | |
+healthsense hard nproc 5000 | |
Notice: /Stage[main]/Limits/Limits::Domain[healthsense]/Limits::Set[healthsense-nproc]/Limits::Entry[healthsense-hard-nproc]/Augeas[limits_conf/healthsense/hard/nproc]/returns: executed successfully | |
Notice: Augeas[limits_conf/*/soft/nproc](provider=augeas): | |
--- /etc/security/limits.conf 2014-02-11 10:02:09.547260529 -0600 | |
+++ /etc/security/limits.conf.augnew 2014-02-11 10:02:11.249510218 -0600 | |
@@ -57,3 +57,4 @@ | |
* soft nofile 50000 | |
* hard nofile 65535 | |
healthsense hard nproc 5000 | |
+* soft nproc 5000 | |
Notice: /Stage[main]/Limits/Limits::Domain[*]/Limits::Set[*-nproc]/Limits::Entry[*-soft-nproc]/Augeas[limits_conf/*/soft/nproc]/returns: executed successfully | |
Notice: Augeas[limits_conf/*/hard/nproc](provider=augeas): | |
--- /etc/security/limits.conf 2014-02-11 10:02:11.377262752 -0600 | |
+++ /etc/security/limits.conf.augnew 2014-02-11 10:02:11.907259767 -0600 | |
@@ -58,3 +58,4 @@ | |
* hard nofile 65535 | |
healthsense hard nproc 5000 | |
* soft nproc 5000 | |
+* hard nproc 10000 | |
Notice: /Stage[main]/Limits/Limits::Domain[*]/Limits::Set[*-nproc]/Limits::Entry[*-hard-nproc]/Augeas[limits_conf/*/hard/nproc]/returns: executed successfully | |
Notice: /File[/etc/security/limits.conf]/content: | |
--- /etc/security/limits.conf 2014-02-11 10:02:12.024259971 -0600 | |
+++ /tmp/puppet-file20140211-12426-1aclvja-0 2014-02-11 10:02:13.273260867 -0600 | |
@@ -43,6 +43,7 @@ | |
healthsense soft nofile 63536 | |
healthsense hard nofile 63536 | |
healthsense soft nproc 5000 | |
+healthsense hard nproc 10000 | |
#* soft core 0 | |
@@ -54,8 +55,3 @@ | |
#@student - maxlogins 4 | |
# End of file | |
-* soft nofile 50000 | |
-* hard nofile 65535 | |
-healthsense hard nproc 5000 | |
-* soft nproc 5000 | |
-* hard nproc 10000 | |
Info: FileBucket got a duplicate file {md5}3daa7bb6d7e4de5493f502799076af3c | |
Info: /File[/etc/security/limits.conf]: Filebucketed /etc/security/limits.conf to puppet with sum 3daa7bb6d7e4de5493f502799076af3c | |
Notice: /File[/etc/security/limits.conf]/content: content changed '{md5}3daa7bb6d7e4de5493f502799076af3c' to '{md5}2eb8e083d6061534e1c23eade79dd5ab' | |
Notice: Finished catalog run in 7.91 seconds | |
Limits.conf file | |
# /etc/security/limits.conf | |
# | |
#Each line describes a limit for a user in the form: | |
# | |
#<domain> <type> <item> <value> | |
# | |
#Where: | |
#<domain> can be: | |
# - an user name | |
# - a group name, with @group syntax | |
# - the wildcard *, for default entry | |
# - the wildcard %, can be also used with %group syntax, | |
# for maxlogin limit | |
# | |
#<type> can have the two values: | |
# - "soft" for enforcing the soft limits | |
# - "hard" for enforcing hard limits | |
# | |
#<item> can be one of the following: | |
# - core - limits the core file size (KB) | |
# - data - max data size (KB) | |
# - fsize - maximum filesize (KB) | |
# - memlock - max locked-in-memory address space (KB) | |
# - nofile - max number of open files | |
# - rss - max resident set size (KB) | |
# - stack - max stack size (KB) | |
# - cpu - max CPU time (MIN) | |
# - nproc - max number of processes | |
# - as - address space limit (KB) | |
# - maxlogins - max number of logins for this user | |
# - maxsyslogins - max number of logins on the system | |
# - priority - the priority to run user process with | |
# - locks - max number of file locks the user can hold | |
# - sigpending - max number of pending signals | |
# - msgqueue - max memory used by POSIX message queues (bytes) | |
# - nice - max nice priority allowed to raise to values: [-20, 19] | |
# - rtprio - max realtime priority | |
# | |
#<domain> <type> <item> <value> | |
# | |
* - nofile 65535 | |
healthsense soft nofile 63536 | |
healthsense hard nofile 63536 | |
healthsense soft nproc 5000 | |
healthsense hard nproc 10000 | |
#* soft core 0 | |
#* hard rss 10000 | |
#@student hard nproc 20 | |
#@faculty soft nproc 20 | |
#@faculty hard nproc 50 | |
#ftp hard nproc 0 | |
#@student - maxlogins 4 | |
# End of file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment