From 24ebdf90a5c1cb500591b273c61ccf588aad9ab1 Mon Sep 17 00:00:00 2001 From: Timo Aaltonen Date: Tue, 6 Oct 2015 16:35:24 +0300 Subject: [PATCH] ipaplatform: Add SECURE_NFS_VAR to constants https://fedorahosted.org/freeipa/ticket/5343 Reviewed-By: Tomas Babej --- ipa-client/ipa-install/ipa-client-automount | 3 ++- ipaplatform/base/constants.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ipa-client/ipa-install/ipa-client-automount b/ipa-client/ipa-install/ipa-client-automount index 4b93ea321..54906e5b2 100755 --- a/ipa-client/ipa-install/ipa-client-automount +++ b/ipa-client/ipa-install/ipa-client-automount @@ -40,6 +40,7 @@ from ipaclient import ipadiscovery from ipaclient import ipachangeconf from ipapython.ipa_log_manager import * from ipapython.dn import DN +from ipaplatform.constants import constants from ipaplatform.tasks import tasks from ipaplatform import services from ipaplatform.paths import paths @@ -309,7 +310,7 @@ def configure_nfs(fstore, statestore): Configure secure NFS """ replacevars = { - 'SECURE_NFS': 'yes', + constants.SECURE_NFS_VAR: 'yes', } ipautil.backup_config_and_replace_variables(fstore, paths.SYSCONFIG_NFS, replacevars=replacevars) diff --git a/ipaplatform/base/constants.py b/ipaplatform/base/constants.py index 9a1237106..77d50a708 100644 --- a/ipaplatform/base/constants.py +++ b/ipaplatform/base/constants.py @@ -11,3 +11,5 @@ class BaseConstantsNamespace(object): HTTPD_USER = "apache" IPA_DNS_PACKAGE_NAME = "freeipa-server-dns" NAMED_USER = "named" + # nfsd init variable used to enable kerberized NFS + SECURE_NFS_VAR = "SECURE_NFS"