diff options
author | Markos Chandras <mchandras@suse.de> | 2017-09-04 11:41:24 +0100 |
---|---|---|
committer | Markos Chandras <mchandras@suse.de> | 2017-09-17 22:42:51 +0100 |
commit | 86957779957b9c0d6013c6f22fbc2bc288cb5a7c (patch) | |
tree | d0bd6caf4dd70a137d6df43092bee8cfc15a2ae6 /xci/playbooks | |
parent | 319262cf70ff518c49ee0d5dfd0ec0ab9088f2e6 (diff) |
xci: configure-nfs: Add SUSE support
Add ability to restart the NFS server on SUSE hosts.
Change-Id: Id5f0edb399151c62302b2e36bb9451ed35501d3f
Signed-off-by: Markos Chandras <mchandras@suse.de>
Diffstat (limited to 'xci/playbooks')
-rw-r--r-- | xci/playbooks/configure-targethosts.yml | 1 | ||||
-rw-r--r-- | xci/playbooks/roles/configure-nfs/tasks/main.yml | 2 | ||||
-rw-r--r-- | xci/playbooks/roles/configure-nfs/vars/suse.yml | 11 |
3 files changed, 12 insertions, 2 deletions
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" |