xci: configure-nfs: Add SUSE support 27/41627/4
authorMarkos Chandras <mchandras@suse.de>
Mon, 4 Sep 2017 10:41:24 +0000 (11:41 +0100)
committerMarkos Chandras <mchandras@suse.de>
Sun, 17 Sep 2017 21:42:51 +0000 (22:42 +0100)
Add ability to restart the NFS server on SUSE hosts.

Change-Id: Id5f0edb399151c62302b2e36bb9451ed35501d3f
Signed-off-by: Markos Chandras <mchandras@suse.de>
xci/playbooks/configure-targethosts.yml
xci/playbooks/roles/configure-nfs/tasks/main.yml
xci/playbooks/roles/configure-nfs/vars/suse.yml [new file with mode: 0644]

index 0b3bf34..4cee1df 100644 (file)
@@ -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
index 51a2d43..df33e52 100644 (file)
@@ -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 (file)
index 0000000..c60cafa
--- /dev/null
@@ -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"