Skip to content

Commit

Permalink
TG-931 - Public data exhaust API config fixes (#2423)
Browse files Browse the repository at this point in the history
* Issue #TG-920 feat: Public data exhaust API configurations & onboarding changes

* Issue #TG-920 feat: Public data exhaust API configurations & onboarding changes

* Issue #TG-920 feat: Public data exhaust API configurations & onboarding changes

* Issue #TG-920 feat: Public data exhaust API config changes
  • Loading branch information
sowmya-dixit authored Apr 15, 2021
1 parent 49a398f commit cea0cee
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ansible/roles/stack-sunbird/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -801,3 +801,7 @@ exhaust_api_consumer_ids: ["273f3b18-5dda-4a27-984a-060c7cd398d3"] # being used
user_profile_read_url: "http://learner-service:9000/v1/user/read/" # being used in analytics api to get user details
org_search_url: "http://learner-service:9000/v1/org/search" # being used in analytics api to get mhrd tenant id
dataexhaust_super_admin_channel: "sunbird" # being used in analytics api for authorizing user with super admin channel

#### public exhausts
public_data_exhaust_bucket: datasets
public_exhaust_datasets: ["public-data-exhaust"]
15 changes: 13 additions & 2 deletions ansible/roles/stack-sunbird/templates/analytics_api_service.conf
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,17 @@ channel {
}
}
}
# Public exhaust configs
public {
data_exhaust {
dataset {
default {
bucket = "{{ public_data_exhaust_bucket }}"
basePrefix = ""
}
}
}
}
cloud_storage_type="azure"
storage.key.config="azure_storage_key"
storage.secret.config="azure_storage_secret"
Expand Down Expand Up @@ -222,7 +233,7 @@ kafka.device.register.topic={{ env_name }}.events.deviceprofile
kafka.metrics.event.topic={{ env_name }}.pipeline_metrics
kafka.broker.list="{{ ingestion_kafka_brokers }}"

cdn.host="https://data.{{proxy_server_name}}/datasets"
public.data_exhaust.datasets=["public-data-exhaust"]
cdn.host="https://data.{{proxy_server_name}}/{{ public_data_exhaust_bucket }}"
public.data_exhaust.datasets={{ public_exhaust_datasets }}
public.data_exhaust.expiryMonths=6
public.data_exhaust.max.interval.days=30

0 comments on commit cea0cee

Please sign in to comment.