solar/bootstrap/playbooks/centos/files/vagrant_fix_nfs.sh
Bogdan Dobrelya 542a359af2 Add vbox/qemu packer build for centos7
Rename the cloud_archive task to uca/rdo tasks for ubuntu/centos
Rename the worker_upstrart task to the worker
Rework the OSTYPE env var to "when: ansible_os_family"

TODO
* PXE (PREPROVISIONED=false) to be working for centos as well
* pygraphviz for centos7, see also https://bugs.launchpad.net/fuel/+bug/1510884
* fix ubuntu only compatible examples, for example riak cluster deploy

Closes-bug: 1553988

Change-Id: Iab130c3c79b3db99deb14ea50572c073532f4694
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
2016-03-16 11:41:15 +01:00

11 lines
309 B
Bash

#!/bin/sh -eux
# When the docker0 int is created too early,
# Vagrant picks a wrong IP for its NFS mount.
# W/a by making docker unit to wait for the varrant nfs share
cat <<EOF >>/usr/lib/systemd/system/docker.service
[Service]
ExecStartPre=/usr/bin/grep -q vagrant /etc/mtab
RestartSec=5
Restart=always
EOF