Skip to content

Commit

Permalink
Assure python libselinux python bindings are installed
Browse files Browse the repository at this point in the history
Avoid akward error during templating of Dockerfile which happens
on selinux enabled machines when ansible template module fails
due to missing selinux bindings.

By using sitepackages=true in tox.ini we likely inherit the libselinux
bindings from the system when we create the virtualenvs.

Workaround for ansible/ansible#34340 which
happens even if selinux is set to permissive.

Fixes: #1724
Signed-off-by: Sorin Sbarnea <[email protected]>
  • Loading branch information
ssbarnea committed Mar 11, 2019
1 parent 1040a02 commit 713f314
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ commands =
lint: yamllint -s test/ molecule/
whitelist_externals =
find
# sitepackages=true <- template module <- libselinux bindings which cannot be
# be installed with pip. Also this lowers virtualenvs footprints and install
# time
sitepackages=true

[testenv:lint]
deps =
Expand Down

0 comments on commit 713f314

Please sign in to comment.