Commit 3c51d8a7 authored by Christos Kanellopoulos's avatar Christos Kanellopoulos
Browse files

Merge pull request #21 from pkoro/sync_updated

AO-7 Update of ar-sync package for standalone
parents 28f4a7f6 49871ac6
......@@ -5,12 +5,17 @@
yum: name=ar-consumer state=latest
notify: restart consumer
- name: Install packages from ar project
- name: Install avro from ar project
tags: ar-packages
yum: name={{ item }} state=latest
with_items:
- ar-sync
- ar-compute
yum: name=avro state=present
- name: Install argo-egi-connectors from ar project
tags: ar-packages
yum: name=argo-egi-connectors state=latest
- name: Install ar-compute from ar project
tags: ar-packages
yum: name=ar-compute state=latest
- name: Configure ar-compute stuff 1
tags: compute_config
......@@ -36,6 +41,22 @@
state=present
backup=yes
- name: Configure ar-compute stuff 4
tags: consumer_config
lineinfile: dest=/etc/ar-compute-engine.conf
regexp="^sync_path="
line="sync_path=/var/lib/argo-connectors"
state=present
backup=yes
- name: Configure ar-compute stuff 5
tags: consumer_config
lineinfile: dest=/etc/ar-compute-engine.conf
regexp="^sync_exec="
line="sync_exec=/usr/libexec/argo-egi-connectors"
state=present
backup=yes
- name: Configure ar-compute job cycle daily cron
tags: compute_config
cron: cron_file=ar_job_cycle_daily
......@@ -60,14 +81,14 @@
tags: sync_config
file: path={{ item }} owner=root group=root mode=0755 state=directory
with_items:
- /var/lib/ar-sync/EGI/Cloudmon
- /var/lib/ar-sync/EGI/Critical
- /var/lib/argo-connectors/EGI/Cloudmon
- /var/lib/argo-connectors/EGI/Critical
- name: Make sure ownerships are OK
tags: consumer_config
file: path={{ item }} owner=root group=arstats mode=0775 state=directory
with_items:
- /var/lib/ar-sync
- /var/lib/argo-connectors
- /var/lib/ar-consumer
- name: Enable and start consumer service
......
......@@ -41,16 +41,16 @@ mongoDBRetentionInDays: {{ mongo_retention_in_days }}
fileTemplate_1: /var/lib/ar-consumer/ar-consumer_log_%Y_%m_%d.txt
fileTemplate_2: /var/lib/ar-consumer/ar-consumer_log_%Y_%m_%d.avro
fileTemplate_3: /var/lib/ar-consumer/ar-consumer_error_%Y_%m_%d.txt
fileTemplate_4: /var/lib/ar-sync/downtimes_%Y-%m-%d.out
fileTemplate_5: /var/lib/ar-sync/downtimes_%Y-%m-%d.avro
fileTemplate_6: /var/lib/ar-sync/poem_sync_%Y_%m_%d.out
fileTemplate_7: /var/lib/ar-sync/poem_sync_%Y_%m_%d.avro
fileTemplate_8: /var/lib/ar-sync/prefilter_%Y_%m_%d.out
fileTemplate_9: /var/lib/ar-sync/prefilter_%Y_%m_%d.avro
fileTemplate_10: /var/lib/ar-sync/hepspec_sync_%Y_%m_%d.out
fileTemplate_11: /var/lib/ar-sync/weights_sync_%Y_%m_%d.avro
fileTemplate_12: /var/lib/ar-sync/sites_%Y_%m_%d.out
fileTemplate_13: /var/lib/ar-sync/sites_%Y_%m_%d.avro
fileTemplate_14: /var/lib/ar-sync/groups_%Y_%m_%d.out
fileTemplate_15: /var/lib/ar-sync/groups_%Y_%m_%d.avro
fileTemplate_4: /var/lib/argo-connectors/downtimes_%Y-%m-%d.out
fileTemplate_5: /var/lib/argo-connectors/downtimes_%Y-%m-%d.avro
fileTemplate_6: /var/lib/argo-connectors/poem_sync_%Y_%m_%d.out
fileTemplate_7: /var/lib/argo-connectors/poem_sync_%Y_%m_%d.avro
fileTemplate_8: /var/lib/argo-connectors/prefilter_%Y_%m_%d.out
fileTemplate_9: /var/lib/argo-connectors/prefilter_%Y_%m_%d.avro
fileTemplate_10: /var/lib/argo-connectors/hepspec_sync_%Y_%m_%d.out
fileTemplate_11: /var/lib/argo-connectors/weights_sync_%Y_%m_%d.avro
fileTemplate_12: /var/lib/argo-connectors/sites_%Y_%m_%d.out
fileTemplate_13: /var/lib/argo-connectors/sites_%Y_%m_%d.avro
fileTemplate_14: /var/lib/argo-connectors/groups_%Y_%m_%d.out
fileTemplate_15: /var/lib/argo-connectors/groups_%Y_%m_%d.avro
fileRetentionInDays: {{ files_retention_in_days }}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment