Commit d780eedd authored by Paschalis Korosoglou's avatar Paschalis Korosoglou
Browse files

ARGO-242 Create one customer file per customer/tenant

parent 94d04af7
---
tenants:
- name: "TenantA"
TenantA:
outputdir: "/var/lib/argo-connectors/tenant_a/"
jobs_all: "JOB_TenantA_ALL, 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"
jobs_all: "JOB_TenantA_ALL, JOB_TenantA_PART"
jobs_details:
- name: "ALL"
Directory: "TenantA_ALL"
......@@ -14,3 +14,25 @@ tenants:
TopoSelectGroupofEndpoints: "Production:Y, Monitored:Y, Scope:TenantA"
TopoSelectGroupOfGroups: "Certification:Certified, Infrastructure:Production, Scope:TenantA"
DowntimesFeed: "https://goc.example.com/gocdbpi/"
- name: "PART"
Directory: "TenantA_PART"
Profiles: "PART_SERVICES"
TopoType: "GOCDB"
TopoFeed: "https://goc.example.com/gocdbpi/"
TopoFetchType: "Sites"
TopoSelectGroupofEndpoints: "Production:Y, Monitored:Y, Scope:TenantA"
TopoSelectGroupOfGroups: "Certification:Candidate, Infrastructure:Production, Scope:TenantA"
DowntimesFeed: "https://goc.example.com/gocdbpi/"
TenantB:
outputdir: "/var/lib/argo-connectors/tenant_b/"
jobs_all: "JOB_TenantB_SERVICES"
jobs_details:
- name: "SERVICES"
Directory: "SERVICES"
Profiles: "My_Critical_Services"
TopoType: "GOCDB"
TopoFeed: "https://goc.example.com/gocdbpi/"
TopoFetchType: "ServiceGroups"
TopoSelectGroupofEndpoints: "Production:Y, Monitored:Y, Scope:TenantB"
TopoSelectGroupOfGroups: "Certification:Candidate, Infrastructure:Production, Scope:TenantB"
DowntimesFeed: "https://goc.example.com/gocdbpi/"
......@@ -34,9 +34,10 @@
- name: Configure connectors
tags: connectors_config
template: src=customer.conf.j2
dest=/etc/argo-egi-connectors/customer.conf
dest=/etc/argo-egi-connectors/{{ item.key }}-customer.conf
owner=root group=root mode=0644
backup=yes
with_dict: tenants
- name: Install ar-compute from ar project
tags: ar-packages
......
{% if tenants is defined %}
{% for tenant in tenants %}
[CUSTOMER_{{tenant.name|upper}}]
Name = {{tenant.name|upper}}
OutputDir = {{tenant.outputdir}}
{% if tenant.jobs_all is defined %}
Jobs = {{ tenant.jobs_all }}
[CUSTOMER_{{item.key|upper}}]
Name = {{item.key|upper}}
OutputDir = {{item.value.outputdir}}
{% if item.value.jobs_all is defined %}
Jobs = {{ item.value.jobs_all }}
{% endif %}
{% if tenant.jobs_details is defined %}
{% for job in tenant.jobs_details %}
{% if item.value.jobs_details is defined %}
{% for job in item.value.jobs_details %}
[{{job.name}}]
Dirname = {{job.Directory}}
Profiles = {{job.Profiles}}
......@@ -21,5 +19,3 @@ DowntimesFeed = {{job.DowntimesFeed}}
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
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