Bläddra i källkod

AMBARI-2121. Allow Nagios user to be customized during install. (yusaku)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1482159 13f79535-47bb-0310-9956-ffa450edef68
Yusaku Sako 12 år sedan
förälder
incheckning
10dcf7a296

+ 2 - 0
CHANGES.txt

@@ -290,6 +290,8 @@ Trunk (unreleased changes):
 
  IMPROVEMENTS
 
+ AMBARI-2121. Allow Nagios user to be customized during install. (yusaku)
+
  AMBARI-2111. Enable customization of smoke test user. (yusaku)
 
  AMBARI-2110. Update hive-site.xml, set fs.file.impl.disable.cache=true.

+ 1 - 0
ambari-web/app/assets/data/configurations/cluster_level_configs.json

@@ -503,6 +503,7 @@
         "namenode_opt_maxnewsize" : "640m",
         "regionserver_memstore_lab" : "true",
         "namenode_opt_newsize" : "200m",
+        "smokeuser" : "ambari-qa",
         "mapreduce_userlog_retainhours" : "24",
         "hcat_conf_dir" : "",
         "nagios_user" : "nagios",

+ 1 - 0
ambari-web/app/controllers/wizard/step7_controller.js

@@ -104,6 +104,7 @@ App.WizardStep7Controller = Em.Controller.extend({
     miscConfigs.findProperty('name', 'zk_user').set('isVisible', this.get('selectedServiceNames').contains('ZOOKEEPER'));
     miscConfigs.findProperty('name', 'gmetad_user').set('isVisible', this.get('selectedServiceNames').contains('GANGLIA'));
     miscConfigs.findProperty('name', 'rrdcached_base_dir').set('isVisible', this.get('selectedServiceNames').contains('GANGLIA'));
+    miscConfigs.findProperty('name', 'nagios_user').set('isVisible', this.get('selectedServiceNames').contains('NAGIOS'));
   },
 
   /**

+ 16 - 15
ambari-web/app/data/config_properties.js

@@ -2023,24 +2023,11 @@ module.exports =
       "serviceName": "NAGIOS",
       "index": 2
     },
-    {
-      "id": "puppet var",
-      "name": "nagios_user",
-      "displayName": "Nagios username",
-      "description": "Nagios username",
-      "defaultValue": "nagios",
-      "isReconfigurable": false,
-      "displayType": "user",
-      "isOverridable": false,
-      "domain": "global",
-      "isVisible": false,
-      "serviceName": "NAGIOS"
-    },
     {
       "id": "puppet var",
       "name": "nagios_group",
-      "displayName": "Nagios username",
-      "description": "Nagios username",
+      "displayName": "Nagios Group",
+      "description": "Nagios Group",
       "defaultValue": "nagios",
       "isReconfigurable": false,
       "displayType": "user",
@@ -2715,6 +2702,20 @@ module.exports =
       "serviceName":"MISC",
       "category": "Users and Groups"
     },
+    {
+      "id": "puppet var",
+      "name": "nagios_user",
+      "displayName": "Nagios User",
+      "description": "User to run Nagios as",
+      "defaultValue": "nagios",
+      "isReconfigurable": false,
+      "displayType": "user",
+      "isOverridable": false,
+      "domain": "global",
+      "isVisible": true,
+      "serviceName":"MISC",
+      "category": "Users and Groups"
+    },
     {
       "id": "puppet var",
       "name": "smokeuser",