Skip to content

Instantly share code, notes, and snippets.

/selinux.sls Secret

Created September 12, 2017 23:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/c93bceab8e11185fc3cf2474adfef078 to your computer and use it in GitHub Desktop.
Save anonymous/c93bceab8e11185fc3cf2474adfef078 to your computer and use it in GitHub Desktop.
SELinux state error
selinux-mirror:
selinux.fcontext_policy_present:
- name: "/srv/mirror/(centos|salt)(/.*)?"
- sel_type: httpd_sys_content_t
Error received:
----------
ID: selinux-mirror
Function: selinux.fcontext_policy_present
Name: /srv/mirror/(centos|salt)(/.*)?
Result: False
Comment: An exception occurred in this state: Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/salt/state.py", line 1837, in call
**cdata['kwargs'])
File "/usr/lib/python2.7/site-packages/salt/loader.py", line 1794, in wrapper
return f(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/salt/states/selinux.py", line 322, in fcontext_policy_present
filetype_str = __salt__['selinux.filetype_id_to_string'](filetype)
File "/usr/lib/python2.7/site-packages/salt/loader.py", line 1113, in __getitem__
func = super(LazyLoader, self).__getitem__(item)
File "/usr/lib/python2.7/site-packages/salt/utils/lazy.py", line 101, in __getitem__
raise KeyError(key)
KeyError: 'selinux.filetype_id_to_string'
Started: 23:23:37.611194
Duration: 41.569 ms
Changes:
salt version 2017.7.1 (Nitrogen)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment