diff options
| author | Martin André <m.andre@redhat.com> | 2016-01-04 15:25:22 +0900 |
|---|---|---|
| committer | Martin André <m.andre@redhat.com> | 2016-01-04 15:25:22 +0900 |
| commit | 6d7d48760162c5c4e75affa19c1a868f0a8d14e7 (patch) | |
| tree | 57914eaa727448b945ebfff5062deaba2dc8915a /dev/vagrant | |
| parent | 9f74f50969473edf60f9431f3db52568f17d3c95 (diff) | |
| download | kolla-6d7d48760162c5c4e75affa19c1a868f0a8d14e7.tar.gz kolla-6d7d48760162c5c4e75affa19c1a868f0a8d14e7.zip | |
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
Diffstat (limited to 'dev/vagrant')
| -rw-r--r-- | dev/vagrant/bootstrap.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dev/vagrant/bootstrap.sh b/dev/vagrant/bootstrap.sh index bc3d6c2f4..8ab845b2b 100644 --- a/dev/vagrant/bootstrap.sh +++ b/dev/vagrant/bootstrap.sh @@ -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" 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 mkdir -p /usr/share/kolla chown -R vagrant: /etc/kolla /usr/share/kolla |
