Commit c0bf477a authored by Themis Zamani's avatar Themis Zamani
Browse files

Merge pull request #24 from pkoro/updates

ARGO-241 Updates in roles. Added fixed, discovered during fresh mongo installation (configuration file in latest versions is written in YAML).
parents 370fd34d 7a24214a
[DEFAULT]
GridPPFeed = http://www-pnp.physics.ox.ac.uk/%7Emohammad/gridpp.feed.xml
[CUSTOMER_EGI]
Name = EGI
OutputDir = /var/lib/argo-connectors/EGI/
Jobs = JOB_EGI-ROC, JOB_EGI-ROC-Critical, JOB_EGI-ROC-Operators, JOB_EGI-OPS-MONITOR, JOB_EGI-OPS-MONITOR-Critical, JOB_EGI-CLOUDMON, JOB_EGI-CLOUDMON-Critical, JOB_EGI-GLEXEC, JOB_GridPPTest
[JOB_EGI-ROC-Critical]
Dirname = EGI_Critical
Profiles = ROC_CRITICAL
TopoType = GOCDB
TopoFetchType = Sites
TopoSelectGroupOfEndpoints = Production:Y, Monitored:Y, Scope:EGI
TopoSelectGroupOfGroups = Certification:Certified, Infrastructure:Production, Scope:EGI
[JOB_EGI-ROC]
Dirname = EGI_ROC
Profiles = ROC
TopoType = GOCDB
TopoFetchType = Sites
TopoSelectGroupOfEndpoints = Production:Y, Monitored:Y, Scope:EGI
TopoSelectGroupOfGroups = Certification:Certified, Infrastructure:Production, Scope:EGI
[JOB_EGI-ROC-Operators]
Dirname = EGI_ROC-Operators
Profiles = ROC_OPERATORS
TopoType = GOCDB
TopoFetchType = Sites
TopoSelectGroupOfEndpoints = Production:Y, Monitored:Y, Scope:EGI
TopoSelectGroupOfGroups = Certification:Certified, Infrastructure:Production, Scope:EGI
[JOB_EGI-OPS-MONITOR-Critical]
Dirname = EGI_OPS-MONITOR-Critical
Profiles = OPS_MONITOR_CRITICAL
TopoType = GOCDB
TopoFetchType = Sites
TopoSelectGroupOfEndpoints = Production:Y, Monitored:Y, Scope:EGI
TopoSelectGroupOfGroups = Certification:Certified, Infrastructure:Production, Scope:EGI
[JOB_EGI-OPS-MONITOR]
Dirname = EGI_OPS-MONITOR
Profiles = OPS_MONITOR
TopoType = GOCDB
TopoFetchType = Sites
TopoSelectGroupOfEndpoints = Production:Y, Monitored:Y, Scope:EGI
TopoSelectGroupOfGroups = Certification:Certified, Infrastructure:Production, Scope:EGI
[JOB_EGI-CLOUDMON-Critical]
Dirname = EGI_CLOUDMON_Critical
Profiles = CLOUD-MON_CRITICAL
TopoType = GOCDB
TopoFetchType = Sites
TopoSelectGroupOfEndpoints = Monitored:Y, Scope:EGI
TopoSelectGroupOfGroups = Scope:EGI
[JOB_EGI-CLOUDMON]
Dirname = EGI_CLOUDMON
Profiles = CLOUD-MON
TopoType = GOCDB
TopoFetchType = Sites
TopoSelectGroupOfEndpoints = Monitored:Y, Scope:EGI
TopoSelectGroupOfGroups = Scope:EGI
[JOB_EGI-GLEXEC]
Dirname = EGI_GLEXEC
Profiles = GLEXEC
TopoType = GOCDB
TopoFetchType = Sites
TopoSelectGroupOfEndpoints = Production:Y, Monitored:Y, Scope:EGI
TopoSelectGroupOfGroups = Certification:Certified, Infrastructure:Production, Scope:EGI
[JOB_GridPPTest]
Dirname = GridPP_Testing
Profiles = TESTING
TopoType = VOFeed
TopoFeed = %(GridPPFeed)s
#TopoSelectGroupOfGroups = Type:OPS_Site
---
- name: Install consumer from ar project
tags: ar-packages
yum: name=ar-consumer state=latest
notify: restart consumer
- name: Install avro from ar project
tags: ar-packages
yum: name=avro state=present
......@@ -17,10 +12,32 @@
tags: ar-packages
pip: name=pymongo state=latest
- name: Install consumer from ar project
tags: ar-packages
yum: name=argo-egi-consumer state=latest
notify: restart consumer
- name: Consumer configuration
tags: consumer_config
template: src=consumer.conf.j2
dest=/etc/argo-egi-consumer/consumer.conf
owner=root group=root mode=0644
- name: Enable and start consumer service
tags: consumer_config
service: name=argo-egi-consumer enabled=on state=started
- name: Install argo-egi-connectors from ar project
tags: ar-packages
yum: name=argo-egi-connectors state=latest
- name: Configure EGI connectors
tags: connectors_config
copy: src=customer.conf
dest=/etc/argo-egi-connectors/customer.conf
owner=root group=root mode=0644
backup=yes
- name: Install ar-compute from ar project
tags: ar-packages
yum: name=ar-compute state=latest
......@@ -85,6 +102,16 @@
hour=*
job="/usr/libexec/ar-compute/bin/job_cycle.py -d $(/bin/date --utc +\%Y-\%m-\%d)"
- name: Add ar-compute poller hourly cron for tenant EGI
tags: compute_crons
cron: cron_file=ar_poller_hourly_egi
name=ar_poller_hourly_egi
minute=25
hour=*
user=root
job="/usr/libexec/ar-compute/bin/poller_ar.py -t EGI"
state=present
- name: Create job directories
tags: sync_config
file: path={{ item }} owner=root group=root mode=0755 state=directory
......@@ -97,11 +124,7 @@
file: path={{ item }} owner=root group=arstats mode=0775 state=directory
with_items:
- /var/lib/argo-connectors
- /var/lib/ar-consumer
- name: Enable and start consumer service
tags: consumer_config
service: name=ar-consumer enabled=yes state=started
- /var/lib/argo-egi-consumer
- name: Install ar-data-retention from ar project
tags: ar-data-retention
......
[General]
LogFaultyTimestamps = True
ReportWritMsgEveryHours = 24
AvroSchema = /etc/argo-egi-consumer/metric_data.avsc
[Subscription]
Destinations = /queue/Consumer.{{ ansible_fqdn|replace(".","_") }}.grid.probe.metricOutput.EGEE.ngi.*, /queue/Consumer.{{ ansible_fqdn|replace(".","_") }}.grid.probe.metricOutput.EGEE.roc.*, /queue/Consumer.{{ ansible_fqdn|replace(".","_") }}.grid.probe.metricOutput.EGEE.opsmonitor.*, /queue/Consumer.{{ ansible_fqdn|replace(".","_") }}.grid.probe.metricOutput.EGEE.project.*, /queue/Consumer.{{ ansible_fqdn|replace(".","_") }}.grid.probe.metricOutput.EGEE.vo.*
IdleMsgTimeout = 0
[Brokers]
Server1 = mq.cro-ngi.hr:6163
Server2 = mq.afroditi.hellasgrid.gr:6163
[Authentication]
HostKey = /etc/grid-security/hostkey.pem
HostCert = /etc/grid-security/hostcert.pem
[STOMP]
TCPKeepAliveIdle = 20
TCPKeepAliveInterval = 5
TCPKeepAliveProbes = 10
ReconnectAttempts = 10
UseSSL = False
[Output]
WritePlaintext = False
Directory = /var/lib/argo-egi-consumer
Filename = argo-consumer_log_%s.avro
ErrorFilename = argo-consumer_error_log_%s.avro
\ No newline at end of file
......@@ -7,11 +7,20 @@
- mongodb-org
- mongodb-org-server
- name: Bind mongod processes to any interface
lineinfile: dest=/etc/mongod.conf
regexp="^bind_ip="
insertafter=EOF
line="bind_ip={{ mongo_bind_interface }}"
- name: Bind mongod processes to an interface
lineinfile: >
dest=/etc/mongod.conf
regexp="\ \ bindIp"
line=' bindIp: {{ mongo_bind_interface }}'
state=present
backup=yes
notify: restart mongo
- name: Fix issue with mongo init script
lineinfile: >
dest=/etc/mongod.conf
regexp="\ \ pidFilePath"
line=' pidFilePath: /var/run/mongodb/mongod.pid'
state=present
backup=yes
notify: restart mongo
......
Markdown is supported
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