Add limits.conf file

parent 5c4f0fe6
......@@ -256,6 +256,16 @@ def slapserver(config):
'template/ifcfg-br0.in').read())
# Creating default limits config
limits_conf_path = os.path.join(mount_dir_path,
'etc', 'security', 'limits.conf')
print "Overriding %s" % limits_conf_path
if not dry_run:
open(limits_conf_path, 'w').write(
pkg_resources.resource_stream(__name__,
'template/limits.conf.in').read())
# Writing ssh key
if config.need_ssh :
user_path = os.path.normpath('/'.join([mount_dir_path, 'root']))
......
* hard nproc 8096
* soft nproc 1024
root hard nofile 32768
root soft nofile 16384
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment