Skip to content
This repository has been archived by the owner on Oct 10, 2021. It is now read-only.

Commit

Permalink
replace localhost with base_url (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
Natkeeran authored and dannylamb committed Jul 30, 2019
1 parent 14fc267 commit 4ef8802
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,7 @@ blazegraph_config_namespace_kb_spo_blazegraph_config_btree_BTree_branchingFactor
# the workbench "Performance" tab_
#
blazegraph_config_journal_Journal_collectPlatformStatistics: "false"


triplestore_namespace: islandora
alpaca_triplestore_base_url: "http://{{ hostvars[groups['tomcat'][0]].ansible_host }}:8080/bigdata"
6 changes: 3 additions & 3 deletions tasks/namespace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

- name: "Wait for Blazegraph to come up"
uri:
url: "http://localhost:8080/bigdata/#namespaces"
url: "{{ alpaca_triplestore_base_url }}/#namespaces"
status_code: 200
timeout: 5
register: result
Expand All @@ -18,7 +18,7 @@

- name: Setup namespace in blazegraph
uri:
url: http://localhost:8080/bigdata/namespace
url: "{{ alpaca_triplestore_base_url }}/namespace"
method: POST
body: "{{ lookup('file', 'blazegraph.properties') }}"
status_code: 201
Expand All @@ -28,7 +28,7 @@

- name: Setup inference in blazegraph
uri:
url: http://localhost:8080/bigdata/namespace/islandora/sparql
url: "{{ alpaca_triplestore_base_url }}/namespace/{{ triplestore_namespace }}/sparql"
method: POST
body: "{{ lookup('file', 'inference.nt') }}"
status_code: 200
Expand Down

0 comments on commit 4ef8802

Please sign in to comment.