Class: Ansible::Ruby::Modules::Pam_limits

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/system/pam_limits.rb

Overview

The C(pam_limits) module modifies PAM limits. The default file is C(/etc/security/limits.conf). For the full documentation, see C(man 5 limits.conf).

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#backup:yes, ...

Returns Create a backup file including the timestamp information so you can get the original file back if you somehow clobbered it incorrectly.

Returns:

  • (:yes, :no, nil)

    Create a backup file including the timestamp information so you can get the original file back if you somehow clobbered it incorrectly.



28
# File 'lib/ansible/ruby/modules/generated/system/pam_limits.rb', line 28

attribute :backup

#commentString?

Returns Comment associated with the limit.

Returns:

  • (String, nil)

    Comment associated with the limit.



44
# File 'lib/ansible/ruby/modules/generated/system/pam_limits.rb', line 44

attribute :comment

#destString?

Returns Modify the limits.conf path.

Returns:

  • (String, nil)

    Modify the limits.conf path.



40
# File 'lib/ansible/ruby/modules/generated/system/pam_limits.rb', line 40

attribute :dest

#domainString

Returns A username, @groupname, wildcard, uid/gid range.

Returns:

  • (String)

    A username, @groupname, wildcard, uid/gid range.



12
# File 'lib/ansible/ruby/modules/generated/system/pam_limits.rb', line 12

attribute :domain

#limit_item:core, ...

Returns The limit to be set.

Returns:

  • (:core, :data, :fsize, :memlock, :nofile, :rss, :stack, :cpu, :nproc, :as, :maxlogins, :maxsyslogins, :priority, :locks, :sigpending, :msgqueue, :nice, :rtprio, :chroot)

    The limit to be set



20
# File 'lib/ansible/ruby/modules/generated/system/pam_limits.rb', line 20

attribute :limit_item

#limit_type:hard, ...

Returns Limit type, see C(man 5 limits.conf) for an explanation.

Returns:

  • (:hard, :soft, :-)

    Limit type, see C(man 5 limits.conf) for an explanation



16
# File 'lib/ansible/ruby/modules/generated/system/pam_limits.rb', line 16

attribute :limit_type

#use_max:yes, ...

Returns If set to C(yes), the maximal value will be used or conserved. If the specified value is superior to the value in the file, file content is replaced with the new value, else content is not modified.

Returns:

  • (:yes, :no, nil)

    If set to C(yes), the maximal value will be used or conserved. If the specified value is superior to the value in the file, file content is replaced with the new value, else content is not modified.



36
# File 'lib/ansible/ruby/modules/generated/system/pam_limits.rb', line 36

attribute :use_max

#use_min:yes, ...

Returns If set to C(yes), the minimal value will be used or conserved. If the specified value is inferior to the value in the file, file content is replaced with the new value, else content is not modified.

Returns:

  • (:yes, :no, nil)

    If set to C(yes), the minimal value will be used or conserved. If the specified value is inferior to the value in the file, file content is replaced with the new value, else content is not modified.



32
# File 'lib/ansible/ruby/modules/generated/system/pam_limits.rb', line 32

attribute :use_min

#valueInteger, String

Returns The value of the limit.

Returns:

  • (Integer, String)

    The value of the limit.



24
# File 'lib/ansible/ruby/modules/generated/system/pam_limits.rb', line 24

attribute :value