From fccf026c25b779b8e8592a074e4c62b77b3183ba Mon Sep 17 00:00:00 2001 From: dannylamb Date: Tue, 8 Jan 2019 12:10:57 -0400 Subject: [PATCH] Deploying blueprint xml from template --- defaults/main.yml | 33 ++++++++++++++++++++++++++++----- tasks/config.yml | 6 ++++++ templates/blueprint.xml.j2 | 28 ++++++++++++++++++++++++++++ 3 files changed, 62 insertions(+), 5 deletions(-) create mode 100644 templates/blueprint.xml.j2 diff --git a/defaults/main.yml b/defaults/main.yml index 854d1a1..93bc8b6 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -10,22 +10,45 @@ alpaca_karaf_repos: alpaca_features: - islandora-http-client - - islandora-connector-broadcast - islandora-indexing-triplestore - islandora-indexing-fcrepo - - islandora-connector-houdini + - islandora-connector-derivative alpaca_karaf_dir: /opt/karaf alpaca_karaf_etc_dir: "{{ alpaca_karaf_dir }}/etc" +alpaca_karaf_deploy_dir: "{{ alpaca_karaf_dir }}/deploy" alpaca_karaf_user: karaf alpaca_local_mvn_path: /opt/maven/repo alpaca_settings: - - pid: ca.islandora.alpaca.connector.broadcast + - pid: ca.islandora.alpaca.http.client settings: - input.stream: activemq:queue:islandora-connector-broadcast + token.value: islandora - pid: ca.islandora.alpaca.indexing.triplestore settings: error.maxRedeliveries: 10 - input.stream: activemq:queue:islandora-indexing-triplestore + index.stream: activemq:queue:islandora-indexing-triplestore-index + delete.stream: activemq:queue:islandora-indexing-triplestore-delete triplestore.baseUrl: http://localhost:8080/bigdata/namespace/islandora/sparql + - pid: ca.islandora.alpaca.indexing.fcrepo + settings: + error.maxRedeliveries: 5 + node.stream: activemq:queue:islandora-indexing-fcrepo-content + node.delete.stream: activemq:queue:islandora-indexing-fcrepo-delete + media.stream: activemq:queue:islandora-indexing-fcrepo-media + file.stream: activemq:queue:islandora-indexing-fcrepo-file + file.delete.stream: activemq:queue:islandora-indexing-fcrepo-file-delete + milliner.baseUrl: http://localhost:8000/milliner/ + gemini.baseUrl: http://localhost:8000/gemini/ + +alpaca_blueprint_settings: + - pid: ca.islandora.alpaca.connector.houdini + in_stream: activemq:queue:islandora-connector-houdini + derivative_service_url: http://localhost:8000/houdini/convert + error_max_redeliveries: 5 + camel_context_id: IslandoraConnectorHoudini + - pid: ca.islandora.alpaca.connector.homarus + in_stream: activemq:queue:islandora-connector-homarus + derivative_service_url: http://localhost:8000/homarus/convert + error_max_redeliveries: 5 + camel_context_id: IslandoraConnectorHomarus diff --git a/tasks/config.yml b/tasks/config.yml index de71510..e1098a2 100644 --- a/tasks/config.yml +++ b/tasks/config.yml @@ -5,3 +5,9 @@ src: alpaca.cfg.j2 dest: "{{ alpaca_karaf_etc_dir }}/{{ item.pid }}.cfg" with_items: "{{ alpaca_settings }}" + +- name: Template blueprint files + template: + src: blueprint.xml.j2 + dest: "{{ alpaca_karaf_deploy_dir }}/{{ item.pid }}.blueprint.xml" + with_items: "{{ alpaca_blueprint_settings }}" diff --git a/templates/blueprint.xml.j2 b/templates/blueprint.xml.j2 new file mode 100644 index 0000000..3436eeb --- /dev/null +++ b/templates/blueprint.xml.j2 @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + ca.islandora.alpaca.connector.derivative + + +