Improve nfs role 84/84684/3
authorMichal Zegan <m.zegan@samsung.com>
Tue, 9 Apr 2019 13:21:52 +0000 (15:21 +0200)
committerSamuli Silvius <s.silvius@partner.samsung.com>
Wed, 17 Apr 2019 08:18:00 +0000 (08:18 +0000)
commit1266d180911300c4236a6e1411b1f1782884dafb
tree90488bd4aa1bde844a1d14a74bf817bd9591734b
parentbb3bef83ca562b9aadc288b3ec46264d73ec73ac
Improve nfs role

This commit improves the nfs role by
using cluster_ip variable instead of ansible_host for getting
nfs client/server address, and
using /etc/exports.d instead of /etc/exports for
exporting nfs filesystem.
Also, this commit fixes other
issues in molecule found along the way.

Change-Id: Ibd4ea5d4fd937116e2dc9e1b6f85c3e019f62e17
Issue-ID: OOM-1770
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
ansible/roles/nfs/molecule/default/cleanup.yml [new file with mode: 0644]
ansible/roles/nfs/molecule/default/host_vars/kubernetes-node-1.yml [new file with mode: 0644]
ansible/roles/nfs/molecule/default/host_vars/kubernetes-node-2.yml [new file with mode: 0644]
ansible/roles/nfs/molecule/default/molecule.yml
ansible/roles/nfs/molecule/default/tests/test_kubernetes-server.py
ansible/roles/nfs/molecule/default/tests/test_nfs-server.py
ansible/roles/nfs/tasks/main.yml
ansible/roles/nfs/templates/exports.j2
ansible/test/roles/cleanup-nfs/tasks/main.yml [new file with mode: 0644]