ipaplatform: Add SECURE_NFS_VAR to constants

https://fedorahosted.org/freeipa/ticket/5343

Reviewed-By: Tomas Babej <tbabej@redhat.com>
This commit is contained in:
Timo Aaltonen 2015-10-06 16:35:24 +03:00 committed by Tomas Babej
parent d269e25bfb
commit 24ebdf90a5
2 changed files with 4 additions and 1 deletions

View File

@ -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)

View File

@ -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"