From 86957779957b9c0d6013c6f22fbc2bc288cb5a7c Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Mon, 4 Sep 2017 11:41:24 +0100 Subject: xci: configure-nfs: Add SUSE support Add ability to restart the NFS server on SUSE hosts. Change-Id: Id5f0edb399151c62302b2e36bb9451ed35501d3f Signed-off-by: Markos Chandras --- xci/playbooks/configure-targethosts.yml | 1 - xci/playbooks/roles/configure-nfs/tasks/main.yml | 2 +- xci/playbooks/roles/configure-nfs/vars/suse.yml | 11 +++++++++++ 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 xci/playbooks/roles/configure-nfs/vars/suse.yml diff --git a/xci/playbooks/configure-targethosts.yml b/xci/playbooks/configure-targethosts.yml index 0b3bf348..4cee1df8 100644 --- a/xci/playbooks/configure-targethosts.yml +++ b/xci/playbooks/configure-targethosts.yml @@ -35,6 +35,5 @@ - hosts: compute00 remote_user: root - # TODO: this role is for configuring NFS on xenial and adjustment needed for other distros roles: - role: configure-nfs diff --git a/xci/playbooks/roles/configure-nfs/tasks/main.yml b/xci/playbooks/roles/configure-nfs/tasks/main.yml index 51a2d43a..df33e52f 100644 --- a/xci/playbooks/roles/configure-nfs/tasks/main.yml +++ b/xci/playbooks/roles/configure-nfs/tasks/main.yml @@ -43,7 +43,7 @@ with_items: - "/images *(rw,sync,no_subtree_check,no_root_squash)" - "/volumes *(rw,sync,no_subtree_check,no_root_squash)" -- name: restart ubuntu xenial NFS service +- name: restart NFS service service: name: "{{ nfs_server_service }}" state: restarted diff --git a/xci/playbooks/roles/configure-nfs/vars/suse.yml b/xci/playbooks/roles/configure-nfs/vars/suse.yml new file mode 100644 index 00000000..c60cafa5 --- /dev/null +++ b/xci/playbooks/roles/configure-nfs/vars/suse.yml @@ -0,0 +1,11 @@ +--- +# SPDX-license-identifier: Apache-2.0 +############################################################################## +# Copyright (c) 2017 Ericsson AB and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + +nfs_server_service: "nfs-server" -- cgit 1.2.3-korg