Commit 0661ca18 authored by Pavlos Daoglou's avatar Pavlos Daoglou

Ansible configurations for unicore probes

parent 169b2b76
......@@ -6,7 +6,7 @@ nagios_components:
## NCG vars ##
nagios_server: localhost
nagios_admin_email: contact@nagiosadmin.localhost
nagios_admin_email: "contact@nagiosadmin.localhost"
vo: ops
enable_unicore_probes: "0"
probes_type: local
......
......@@ -91,6 +91,33 @@
when: enable_unicore_probes is defined and enable_unicore_probes == "1"
tags: config
- name: Copy ucc.config file for unicore
template: src=ucc.config.j2
dest=/etc/nagios/unicore/ucc.config
owner=nagios group=nagios mode=0400
when: enable_unicore_probes is defined and enable_unicore_probes == "1"
tags: config
- name: Copy scripts for unicore credentials
template: src={{ item }}.j2
dest=/usr/local/bin/{{ item }}
owner=root group=root mode=0744
with_items:
- unicore_jks.sh
- unicore_ks.sh
- unicore_ts.sh
when: enable_unicore_probes is defined and enable_unicore_probes == "1"
tags: config
- name: Execute scripts for unicore credentials
command: /usr/local/bin/{{ item }}
with_items:
- unicore_jks.sh
- unicore_ks.sh
- unicore_ts.sh
when: enable_unicore_probes is defined and enable_unicore_probes == "1"
tags: config
- name: Create vomses dir
file: path=/etc/vomses
state=directory
......
{% include "private_files/" + ansible_fqdn + "/templates/ucc.config.j2" %}
\ No newline at end of file
{% include "private_files/" + ansible_fqdn + "/templates/unicore_jks.sh.j2" %}
\ No newline at end of file
{% include "private_files/" + ansible_fqdn + "/templates/unicore_ks.sh.j2" %}
\ No newline at end of file
{% include "private_files/" + ansible_fqdn + "/templates/unicore_ts.sh.j2" %}
\ No newline at end of file
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