From 4ef8802119b2f5f51278a6210ed14ff5ccbdbd18 Mon Sep 17 00:00:00 2001 From: Natkeeran Date: Tue, 30 Jul 2019 14:44:52 -0400 Subject: [PATCH] replace localhost with base_url (#8) --- defaults/main.yml | 4 ++++ tasks/namespace.yml | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index a2641e4..49f3056 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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" diff --git a/tasks/namespace.yml b/tasks/namespace.yml index 2363bdf..5ffa59c 100644 --- a/tasks/namespace.yml +++ b/tasks/namespace.yml @@ -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 @@ -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 @@ -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