Ver Fonte

AMBARI-16777. Ambari to not install rpcbind package unless NFSGateway component is included (aonishuk)

Andrew Onishuk há 9 anos atrás
pai
commit
45bb26aa80

+ 4 - 0
ambari-common/src/main/python/resource_management/libraries/functions/package_conditions.py

@@ -87,3 +87,7 @@ def should_install_ranger_tagsync():
   has_ranger_tagsync = len(ranger_tagsync_hosts) > 0
 
   return has_ranger_tagsync or ranger_tagsync_enabled
+
+def should_install_rpcbind():
+  config = Script.get_config()
+  return 'role' in config and config['role'] == "NFS_GATEWAY"

+ 1 - 0
ambari-server/src/main/resources/stacks/HDP/2.3/services/HDFS/metainfo.xml

@@ -52,6 +52,7 @@
           <packages>
             <package>
               <name>rpcbind</name>
+              <condition>should_install_rpcbind</condition>
             </package>
           </packages>
         </osSpecific>