Class: Ansible::Ruby::Modules::Sefcontext

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

Overview

Manages SELinux file context mapping definitions. Similar to the C(semanage fcontext) command.

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

#ftype ⇒ String?

Returns File type.,The following file type options can be passed; C(a) for all files, C(b) for block devices, C(c) for character devices, C(d) for directories, C(f) for regular files, C(l) for symbolic links, C(p) for named pipes, C(s) for socket files.

Returns:

  • (String, nil) —

    File type.,The following file type options can be passed; C(a) for all files, C(b) for block devices, C(c) for character devices, C(d) for directories, C(f) for regular files, C(l) for symbolic links, C(p) for named pipes, C(s) for socket files.



17
# File 'lib/ansible/ruby/modules/generated/system/sefcontext.rb', line 17

attribute :ftype

#reload ⇒ :yes, ...

Returns Reload SELinux policy after commit.,Note that this does not apply SELinux file contexts to existing files.

Returns:

  • (:yes, :no, nil) —

    Reload SELinux policy after commit.,Note that this does not apply SELinux file contexts to existing files.



37
# File 'lib/ansible/ruby/modules/generated/system/sefcontext.rb', line 37

attribute :reload

#selevel ⇒ String?

Returns SELinux range for the specified target.

Returns:

  • (String, nil) —

    SELinux range for the specified target.



29
# File 'lib/ansible/ruby/modules/generated/system/sefcontext.rb', line 29

attribute :selevel

#setype ⇒ String

Returns SELinux type for the specified target.

Returns:

  • (String) —

    SELinux type for the specified target.



21
# File 'lib/ansible/ruby/modules/generated/system/sefcontext.rb', line 21

attribute :setype

#seuser ⇒ String?

Returns SELinux user for the specified target.

Returns:

  • (String, nil) —

    SELinux user for the specified target.



25
# File 'lib/ansible/ruby/modules/generated/system/sefcontext.rb', line 25

attribute :seuser

#state ⇒ String?

Returns Whether the SELinux file context must be C(absent) or C(present).

Returns:

  • (String, nil) —

    Whether the SELinux file context must be C(absent) or C(present).



33
# File 'lib/ansible/ruby/modules/generated/system/sefcontext.rb', line 33

attribute :state

#target ⇒ String

Returns Target path (expression).

Returns:

  • (String) —

    Target path (expression).



13
# File 'lib/ansible/ruby/modules/generated/system/sefcontext.rb', line 13

attribute :target