You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by nc...@apache.org on 2016/02/18 14:33:34 UTC
[15/33] ambari git commit: AMBARI-14875. Ranger Smart configs : Need
to hide Audit DB properties if Audit to DB is off. (addendum patch) (jaimin)
AMBARI-14875. Ranger Smart configs : Need to hide Audit DB properties if Audit to DB is off. (addendum patch) (jaimin)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/506bb8d1
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/506bb8d1
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/506bb8d1
Branch: refs/heads/branch-dev-patch-upgrade
Commit: 506bb8d186500ba700bc3f58f1520f105876e0c4
Parents: b339542
Author: Jaimin Jetly <ja...@hortonworks.com>
Authored: Wed Feb 17 20:16:40 2016 +0530
Committer: Jaimin Jetly <ja...@hortonworks.com>
Committed: Wed Feb 17 20:18:15 2016 +0530
----------------------------------------------------------------------
.../services/RANGER/themes/theme_version_2.json | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/506bb8d1/ambari-server/src/main/resources/stacks/HDP/2.3/services/RANGER/themes/theme_version_2.json
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.3/services/RANGER/themes/theme_version_2.json b/ambari-server/src/main/resources/stacks/HDP/2.3/services/RANGER/themes/theme_version_2.json
index 59e58a4..cbd27e4 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.3/services/RANGER/themes/theme_version_2.json
+++ b/ambari-server/src/main/resources/stacks/HDP/2.3/services/RANGER/themes/theme_version_2.json
@@ -940,7 +940,25 @@
},
{
"config": "admin-properties/audit_db_password",
- "subsection-name": "subsection-ranger-audit-db-row2-col2"
+ "subsection-name": "subsection-ranger-audit-db-row2-col2",
+ "depends-on": [
+ {
+ "configs":[
+ "ranger-env/xasecure.audit.destination.db"
+ ],
+ "if": "${ranger-env/xasecure.audit.destination.db}",
+ "then": {
+ "property_value_attributes": {
+ "visible": true
+ }
+ },
+ "else": {
+ "property_value_attributes": {
+ "visible": false
+ }
+ }
+ }
+ ]
},
{
"config": "ranger-env/xasecure.audit.destination.solr",