From 9b218074e59e1571c4e1d163231dddbe5d22d851 Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Thu, 15 Feb 2024 01:34:17 +0100 Subject: [PATCH] fix(defaults): set enabled Avoid render failure if called without a defined pillar and assume service should be enabled if not stated otherwise. Signed-off-by: Georg Pfuetzenreuter --- docs/README.rst | 3 ++- nfs/defaults.yaml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/README.rst b/docs/README.rst index bf3021f..834f2d8 100644 --- a/docs/README.rst +++ b/docs/README.rst @@ -55,7 +55,8 @@ Available states ``nfs.server`` ^^^^^^^^^^^^^^ -Install nfs server components +- Install NFS server components +- If ``nfs:enabled`` is set to ``true`` (the default), enable the NFS service - if set to ``false``, ensure it is stopped ``nfs.client`` ^^^^^^^^^^^^^^ diff --git a/nfs/defaults.yaml b/nfs/defaults.yaml index f312fde..c4c2e5f 100644 --- a/nfs/defaults.yaml +++ b/nfs/defaults.yaml @@ -1,5 +1,6 @@ --- nfs: + enabled: true mount_opts: null mkmnt: true persist_mount: true