kumaab commented on code in PR #1167:
URL: https://github.com/apache/ranger/pull/1167#discussion_r3825709684


##########
dev-support/ranger-docker/.env:
##########
@@ -53,6 +53,14 @@ TAGSYNC_VERSION=3.0.0-SNAPSHOT
 # PDP Configuration
 PDP_VERSION=3.0.0-SNAPSHOT
 
+# Audit index store for docker-compose.ranger-audit-service.yml (solr | 
opensearch).
+# Only the matching store container + its dispatcher come up (never both).
+AUDIT_INDEX_STORE=opensearch
+# AUDIT_INDEX_STORE drives Compose profiles, so a single variable selects the 
store.
+# To ALSO fan audits out to HDFS, add the hdfs profile only when ranger-hadoop 
is up:
+#   export COMPOSE_PROFILES=$AUDIT_INDEX_STORE,hdfs
+COMPOSE_PROFILES=${AUDIT_INDEX_STORE}

Review Comment:
   `COMPOSE_PROFILES` is a Docker Compose built-in environment variable. 
   It tells Compose which 
[profiles](https://docs.docker.com/compose/how-tos/profiles/) to activate when 
running `compose up`.
   
   In docker setup, services in `docker-compose.ranger-audit-service.yml` are 
tagged with profiles:
   ```
   profiles: ["solr"] → ranger-solr, ranger-audit-dispatcher-solr
   profiles: ["opensearch"] → ranger-opensearch, 
ranger-audit-dispatcher-opensearch
   profiles: ["hdfs"] → ranger-audit-dispatcher-hdfs
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to