Skip to content

Commit

Permalink
minor fixes to configuration and env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeiannacone committed Apr 18, 2017
1 parent 6b49a7f commit 3934e68
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ autorestart=unexpected
exitcodes=0
priority=600
startretries=10
environment=STUCCO_DB_TYPE=POSTGRESQL,STUCCO_DB_CONFIG="{{ stucco_dir }}/rt/graph-db-connection/config/postgresql.yml",STUCCO_DB_INDEX_CONFIG=""
environment=STUCCO_DB_TYPE=POSTGRESQL,STUCCO_DB_CONFIG="{{ stucco_dir }}/rt/graph-db-connection/config/postgresql.yml",SITU_DB_CONFIG="{{ stucco_dir }}/rt/graph-db-connection/config/elasticsearch.yml",STUCCO_DB_INDEX_CONFIG=""

[program:rt-structured]
command=java -jar streaming-processor/target/rt-structured.jar
Expand All @@ -23,7 +23,7 @@ autorestart=unexpected
exitcodes=0
priority=600
startretries=10
environment=STUCCO_DB_TYPE=POSTGRESQL,STUCCO_DB_CONFIG="{{ stucco_dir }}/rt/graph-db-connection/config/postgresql.yml",STUCCO_DB_INDEX_CONFIG=""
environment=STUCCO_DB_TYPE=POSTGRESQL,STUCCO_DB_CONFIG="{{ stucco_dir }}/rt/graph-db-connection/config/postgresql.yml",SITU_DB_CONFIG="{{ stucco_dir }}/rt/graph-db-connection/config/elasticsearch.yml",STUCCO_DB_INDEX_CONFIG=""

[group:stucco-rt]
programs=rt-unstructured,rt-structured
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"graphServer": {
"graphHost": "{{ stucco_graph_db_connection_service_host }}",
"graphPort": "{{ stucco_graph_db_connection_service_port }}",
"graphRootPath": "api",
"graphRootPath": "api",
"graphName": "",
"isRexster": false
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ autostart=true
autorestart=true
priority=500
startretries=10
environment=STUCCO_DB_TYPE=POSTGRESQL,STUCCO_DB_CONFIG="{{ stucco_dir }}/rt/graph-db-connection/config/postgresql.yml",STUCCO_DB_INDEX_CONFIG=""
environment=STUCCO_DB_TYPE=POSTGRESQL,STUCCO_DB_CONFIG="{{ stucco_dir }}/rt/graph-db-connection/config/postgresql.yml",SITU_DB_CONFIG="{{ stucco_dir }}/rt/graph-db-connection/config/elasticsearch.yml",STUCCO_DB_INDEX_CONFIG="",STUCCO_UI_CONFIG="{{ stucco_dir }}/ui/dev_config.json"
1 change: 1 addition & 0 deletions provisioning/site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,6 @@
environment:
STUCCO_DB_TYPE: "POSTGRESQL"
STUCCO_DB_CONFIG: "{{ stucco_dir }}/graph-db-connection-service/graph-db-connection/config/postgresql.yml"
SITU_DB_CONFIG: "{{ stucco_dir }}/graph-db-connection-service/graph-db-connection/config/elasticsearch.yml"
STUCCO_DB_INDEX_CONFIG:
STUCCO_UI_CONFIG: "{{ stucco_dir }}/ui/dev_config.json"
3 changes: 2 additions & 1 deletion scripts/base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ echo 'Welcome to your Stucco virtual machine.' > /etc/motd
# Set environment variables that ansible roles will need
echo 'STUCCO_DB_TYPE=POSTGRESQL' >> /etc/environment
echo 'STUCCO_DB_CONFIG="/home/stucco/rt/graph-db-connection/config/postgresql.yml"' >> /etc/environment
echo 'SITU_DB_CONFIG="/home/stucco/rt/graph-db-connection/config/elasticsearch.yml"' >> /etc/environment
echo 'STUCCO_DB_INDEX_CONFIG=""' >> /etc/environment
echo 'STUCCO_UI_CONFIG="/home/stucco/ui/dev_config.json"' >> /etc/environment
#TODO: check if they were set previously
#TODO: check if they were set previously

0 comments on commit 3934e68

Please sign in to comment.