Skip to content

Commit

Permalink
Add docs and requirements for selinux systems
Browse files Browse the repository at this point in the history
For systems running selinux, the selinux package must be installed in
the virtualenv, otherwise it fails to properly find the required system
packages.  See ansible/molecule#1724 for
background.
  • Loading branch information
Shaun Verch committed May 7, 2019
1 parent 240cfc8 commit 7b21cbd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@ mysql> show databases;
4 rows in set (0.00 sec)
```

> Note: If your system has selinux installed, you might see "Aborting, target
> uses selinux but python bindings (libselinux-python) aren't installed!". If
> this happens, also install the dependencies in
> `test-requirements-selinux.txt`. See
> https://github.com/ansible/molecule/issues/1724 for details.
## Built With

![Ansible](https://img.shields.io/badge/ansible-2.4.3.0-green.svg)
Expand Down
3 changes: 3 additions & 0 deletions test-requirements-selinux.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This is required for molecule to work in a virtualenv on systems running
# selinux. See https://github.com/ansible/molecule/issues/1724 for details.
selinux==0.1.3

0 comments on commit 7b21cbd

Please sign in to comment.