nfs fix for xenial images
for Xenial there is no need to restart idmapd Closes-Bug: #1590929 Change-Id: I50b1e72a787b0fcb80ac30bdba622afcad3c47be
This commit is contained in:
parent
3d84232d7b
commit
85105d9d22
|
@ -21,7 +21,10 @@ function nfs_setup {
|
|||
|
||||
$ANSIBLE primary --sudo -f 5 -i "$WORKSPACE/inventory" -m shell -a "exportfs -a"
|
||||
$ANSIBLE primary --sudo -f 5 -i "$WORKSPACE/inventory" -m service -a "name=nfs-kernel-server state=restarted"
|
||||
$ANSIBLE primary --sudo -f 5 -i "$WORKSPACE/inventory" -m service -a "name=idmapd state=restarted"
|
||||
GetDistro
|
||||
if [[ ! ${DISTRO} =~ (xenial) ]]; then
|
||||
$ANSIBLE primary --sudo -f 5 -i "$WORKSPACE/inventory" -m service -a "name=idmapd state=restarted"
|
||||
fi
|
||||
$ANSIBLE primary --sudo -f 5 -i "$WORKSPACE/inventory" -m shell -a "iptables -A INPUT -p tcp --dport 111 -j ACCEPT"
|
||||
$ANSIBLE primary --sudo -f 5 -i "$WORKSPACE/inventory" -m shell -a "iptables -A INPUT -p udp --dport 111 -j ACCEPT"
|
||||
$ANSIBLE primary --sudo -f 5 -i "$WORKSPACE/inventory" -m shell -a "iptables -A INPUT -p tcp --dport 2049 -j ACCEPT"
|
||||
|
|
Loading…
Reference in New Issue