Skip to content

Commit d6c97a0

Browse files
committed
Update dependency for selinux
1 parent 86e77e5 commit d6c97a0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,17 @@ This repo is split into two parts:
1313

1414
## Installation
1515

16+
Ensure that `libselinux-python3` is installed:
17+
18+
sudo yum install -y libselinux-python3
19+
1620
It is recommended to install python dependencies in a virtual environment:
1721

18-
virtualenv venv
22+
virtualenv-3 venv
1923
source venv/bin/activate
2024
pip install -U pip
2125
pip install -r requirements.txt
2226

23-
If SELinux is in use on the ansible control host, enable access to the
24-
`selinux` python module from the virtualenv:
25-
26-
ln -s /usr/lib64/python2.7/site-packages/selinux venv/lib/python2.7/site-packages/selinux
27-
2827
Download and deploy the role from Ansible Galaxy:
2928

3029
ansible-galaxy install -r ansible/requirements.yml -p $PWD/ansible/roles

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ python-novaclient
99
python-openstackclient
1010
python-ironicclient==3.1.2; python_version<='2.7'
1111
python-heatclient
12+
selinux

0 commit comments

Comments
 (0)