Bladeren bron

AMBARI-10157. Creating "false" local user (alexantonenko)

Alex Antonenko 10 jaren geleden
bovenliggende
commit
52e8e9b2ae

+ 2 - 1
ambari-server/src/main/java/org/apache/ambari/server/state/PropertyInfo.java

@@ -215,6 +215,7 @@ public class PropertyInfo {
   public enum PropertyType {
     PASSWORD,
     USER,
-    GROUP
+    GROUP,
+    ADDITIONAL_USER_PROPERTY
   }
 }

+ 2 - 2
ambari-server/src/main/resources/stacks/HDP/2.0.6/configuration/cluster-env.xml

@@ -34,7 +34,7 @@
     <property>
         <name>ignore_groupsusers_create</name>
         <value>false</value>
-        <property-type>USER</property-type>
+        <property-type>ADDITIONAL_USER_PROPERTY</property-type>
         <description>Whether to ignore failures on users and group creation</description>
     </property>
     <property>
@@ -54,4 +54,4 @@
         <property-type>GROUP</property-type>
         <description>Hadoop user group.</description>
     </property>
-</configuration>
+</configuration>

+ 1 - 1
ambari-server/src/main/resources/stacks/HDPWIN/2.1/configuration/cluster-env.xml

@@ -45,7 +45,7 @@
   </property>
   <property>
     <name>ignore_groupsusers_create</name>
-    <property-type>USER</property-type>
+    <property-type>ADDITIONAL_USER_PROPERTY</property-type>
     <value>false</value>
     <description>Whether to ignore failures on users and group creation</description>
   </property>

+ 1 - 1
ambari-web/app/utils/config.js

@@ -989,7 +989,7 @@ App.config = Em.Object.create({
       'ignore_groupsusers_create': 'Skip group modifications during install'
     };
     if (Em.isArray(config.property_type)) {
-      if (config.property_type.contains('USER') || config.property_type.contains('GROUP')) {
+      if (config.property_type.contains('USER') || config.property_type.contains('ADDITIONAL_USER_PROPERTY') || config.property_type.contains('GROUP')) {
         propertyData.id = "puppet var";
         propertyData.category = 'Users and Groups';
         propertyData.isVisible = !App.get('isHadoopWindowsStack');