Skip to content
Snippets Groups Projects
Commit 6d7d4876 authored by Martin André's avatar Martin André
Browse files

Set selinux to permissive in Vagrant

Selinux is preventing to write on mounted volumes. Let's set it to
permissive in Vagrant box provisioning.

Change-Id: If8ea57f242166eb6f4ef618639d4ab672e5098d3
Closes-Bug: #1530766
parent 9f74f509
No related branches found
No related tags found
No related merge requests found
...@@ -94,6 +94,10 @@ function configure_operator { ...@@ -94,6 +94,10 @@ function configure_operator {
su - vagrant sh -c "echo BUILDFLAGS=\\\"--build-env=http_proxy=$http_proxy --build-env=https_proxy=$https_proxy\\\" > ~/kolla/.buildconf" su - vagrant sh -c "echo BUILDFLAGS=\\\"--build-env=http_proxy=$http_proxy --build-env=https_proxy=$https_proxy\\\" > ~/kolla/.buildconf"
fi fi
# Set selinux to permissive
sed -i -r "s,^SELINUX=.+$,SELINUX=permissive," /etc/selinux/config
setenforce permissive
cp -r ~vagrant/kolla/etc/kolla/ /etc/kolla cp -r ~vagrant/kolla/etc/kolla/ /etc/kolla
mkdir -p /usr/share/kolla mkdir -p /usr/share/kolla
chown -R vagrant: /etc/kolla /usr/share/kolla chown -R vagrant: /etc/kolla /usr/share/kolla
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment