Skip to content

Commit 4d70d48

Browse files
committed
fix:SB-30068 added deployment scripts
1 parent 6de8f4e commit 4d70d48

File tree

22 files changed

+126
-1
lines changed

22 files changed

+126
-1
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ target/
1010
dependency-reduced-pom.xml
1111
.DS_Store
1212
*.log
13-
kubernets/config
13+
kubernetes/config
1414
.project
1515
.classpath
1616
.factorypath

ansible/inventory/env/common.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# This file will get populated from private common.yml
2+
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
###################### LP ############################
2+
3+
4+
# duplicate variable as env
5+
cloud_storage_config_environment: "{{env}}"
6+
ansible_vault_password: "{{lp_vault_ansible_vault_password}}"
7+
secrets_path: '{{inventory_dir}}/group_vars/common.yml'
8+
9+
env_name: "{{ env }}"
10+
instance_name: "{{ env }}"
11+
instance: "{{ env }}"
12+
cert_env_prefix : "{{ instance }}"
13+
14+
learner_user: learning
15+
learner_group: learning
16+
learner_user_home: "/home/{{ learner_user }}"
17+
18+
## Common variables for LP
19+
# these variables can be defined as {{instance}}_*
20+
content_keyspace_name: "{{instance}}_content_store"
21+
hierarchy_keyspace_name: "{{instance}}_hierarchy_store"
22+
dialcode_keyspace_name: "{{instance}}_dialcode_store"
23+
category_keyspace_name: "{{instance}}_category_store"
24+
assessment_keyspace_name: "{{instance}}_question_store"
25+
question_keyspace_name: "{{instance}}_question_store"
26+
platform_keyspace_name: "{{instance}}_platform_db"
27+
uci_keyspace_name: "{{instance}}_uci_store"
28+
29+
30+
dp_cassandra_connection: "{{ groups['dp-cassandra'][0] }}:9042"
31+
core_cassandra_connection: "{{groups['core-cassandra']|join(':9042,')}}:9042"
32+
core_cassandra_connection_ip: "{{ groups['core-cassandra'][0] }}"
33+
34+
dial_service_generate_url: "http://{{private_ingressgateway_ip}}/dial/dialcode/v3/generate"
35+
search_service_endpoint: "{{ekstep_domain_name}}/api/search/v2/search"
36+
37+
38+
## learning service variables
39+
plugin_media_base_url: "{{proto}}://{{domain_name}}" # Plugin should be doanloaded from sunbird. Commenting the ekstep url : "{{ekstep_domain_name}}"
40+
content_media_base_url: "{{proto}}://{{domain_name}}" # content_media_base_url
41+
dial_service_search_url: "http://{{private_ingressgateway_ip}}/dial/dialcode/v3/search" # dial_service_search_url
42+
resourcemanager: "{{ groups['yarn-master'][0] }}"
43+
yarn_slaves: "{{ groups['yarn-slave']}}"
44+
__yarn_host__: "{{ groups['yarn-master'][0] }}"
45+
46+
neo4j_dir: neo4j-learning
47+
48+
lp_bolt_url: bolt://{{ groups['learning-neo4j-cluster'][0] }}:7687
49+
lp_bolt_read_url: bolt://{{ groups['learning-neo4j-cluster'][0] }}:7687
50+
lp_bolt_write_url: bolt://{{ groups['learning-neo4j-cluster'][0] }}:7687
51+
lp_url: http://{{ groups['learningall'][0] }}:8080/learning-service
52+
lp_tmpfile_location: /tmp
53+
other_bolt_url: bolt://{{ groups['learning-neo4j-cluster'][0] }}:8687
54+
other_bolt_read_url: bolt://{{ groups['learning-neo4j-cluster'][0] }}:8687
55+
other_bolt_write_url: bolt://{{ groups['learning-neo4j-cluster'][0] }}:8687
56+
57+
58+
lp_cassandra_connection: "{{groups['cassandra']|join(':9042,')}}:9042"
59+
cassandra_host: "{{ groups['cassandra'][0] }}"
60+
redis_host: "{{ groups['redis1'][0] }}"
61+
dp_redis_host: "{{ groups['dp-redis'][0] }}"
62+
kafka_brokers: "{{groups['processing-cluster-kafka']|join(':9092,')}}:9092"
63+
zookeepers: "{{groups['processing-cluster-zookeepers']|join(':2181,')}}:2181"
64+
audit_es_host: "{{ groups['composite-search-cluster']|join(':9200,')}}:9200"
65+
search_es_host: "{{ groups['composite-search-cluster']|join(':9200,')}}:9200"
66+
search_lms_es_host: "{{ groups['core-es']|join(':9200,')}}:9200"
67+
68+
graph_passport_key: "{{ lp_vault_graph_passport_key }}"
69+
youtube_api_key: "{{ lp_vault_youtube_api_key }}"
70+
71+
## es backup
72+
es_snapshot_host: "{{ groups['composite-search-cluster'][0] }}"
73+
snapshot_base_path: compositesearch
74+
75+
76+
#Learning-Service baseURL
77+
kp_learning_service_base_url: "http://{{ groups['learning1'][0] }}:8080/learning-service"
78+
sunbird_platform_installation: "{{ sunbird_installation }}"
79+
80+
81+
# DIAL Image Container Name
82+
dial_image_storage_container: "dial"
83+
84+
search_es7_host: "{{ groups['es7']|join(':9200,')}}:9200"
85+
86+
mlworkbench: "{{ groups['mlworkbench'][0]}}"
87+
88+
azure_account: "{{ sunbird_public_storage_account_name }}"
89+
azure_secret: "{{ sunbird_public_storage_account_key }}"
90+
dedup_redis_host: "{{ dp_redis_host }}"
91+
kp_redis_host: "{{ groups['redisall'][0] }}"
92+
neo4j_route_path: "bolt://{{ groups['learning-neo4j-node1'][0] }}:7687"
93+
94+
### Global vars
95+
flink_namespace: "flink-kp-{{ instance }}"
96+
middleware_hierarchy_keyspace: "{{ instance }}_hierarchy_store"
97+
kp_print_service_base_url: "http://{{private_ingressgateway_ip}}/print"
98+
cert_reg_service_base_url: "http://{{private_ingressgateway_ip}}/certreg"
99+
kp_search_service_base_url: "http://{{private_ingressgateway_ip}}/search"
100+
lms_service_base_url: "http://{{private_ingressgateway_ip}}/lms"
101+
learner_service_base_url: "http://{{private_ingressgateway_ip}}/learner"
102+
sourcing_content_service_base_url: "http://{{dock_private_ingressgateway_ip | default('localhost') }}/content"
103+
content_service_base_url: "http://{{private_ingressgateway_ip}}/content"
104+
kp_content_service_base_url: "http://{{private_ingressgateway_ip}}/content"
105+
cert_service_base_url: "http://{{private_ingressgateway_ip}}/cert"
106+
enc_service_base_url: "http://{{private_ingressgateway_ip}}/enc"
107+
cert_rc_base_url: "http://{{private_ingressgateway_ip}}/registry-service/api/v1"
108+
cert_rc_entity: "TrainingCertificate"
109+
certificate_base_path: "https://{{domain_name}}/certs"
110+
cert_domain_url: "{{proto}}://{{domain_name}}"
111+
cert_container_name: "{{cert_env_prefix}}-e-credentials"
112+
cert_cloud_storage_type: "azure"
113+
cert_azure_storage_secret: "{{sunbird_private_storage_account_key}}"
114+
cert_azure_storage_key: "{{sunbird_private_storage_account_name}}"
115+
116+
default_channel: "org.sunbird"
117+
download_neo4j: true
118+
neo4j_upstream_download: false
119+
enable_suppress_exception: false
120+
enable_rc_certificate: true
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../common.yml

ansible/inventory/env/hosts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
## This file will get replaced by private hosts file. Please don't add anything here

ansible/inventory/env/secrets.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
## This file will get replaced by private hosts file. Please don't add anything here
File renamed without changes.

0 commit comments

Comments
 (0)