Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Anastasios Lisgaras
GitHubHistory
Commits
0661ca18
Commit
0661ca18
authored
Apr 11, 2016
by
Pavlos Daoglou
Browse files
Ansible configurations for unicore probes
parent
169b2b76
Changes
6
Hide whitespace changes
Inline
Side-by-side
roles/monitoring_engine/defaults/main.yml
View file @
0661ca18
...
@@ -6,7 +6,7 @@ nagios_components:
...
@@ -6,7 +6,7 @@ nagios_components:
## NCG vars ##
## NCG vars ##
nagios_server
:
localhost
nagios_server
:
localhost
nagios_admin_email
:
contact@nagiosadmin.localhost
nagios_admin_email
:
"
contact@nagiosadmin.localhost
"
vo
:
ops
vo
:
ops
enable_unicore_probes
:
"
0"
enable_unicore_probes
:
"
0"
probes_type
:
local
probes_type
:
local
...
...
roles/monitoring_engine/tasks/main.yml
View file @
0661ca18
...
@@ -91,6 +91,33 @@
...
@@ -91,6 +91,33 @@
when
:
enable_unicore_probes is defined and enable_unicore_probes == "1"
when
:
enable_unicore_probes is defined and enable_unicore_probes == "1"
tags
:
config
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
-
name
:
Create vomses dir
file
:
path=/etc/vomses
file
:
path=/etc/vomses
state=directory
state=directory
...
...
roles/monitoring_engine/templates/ucc.config.j2
0 → 100644
View file @
0661ca18
{% include "private_files/" + ansible_fqdn + "/templates/ucc.config.j2" %}
\ No newline at end of file
roles/monitoring_engine/templates/unicore_jks.sh.j2
0 → 100644
View file @
0661ca18
{% include "private_files/" + ansible_fqdn + "/templates/unicore_jks.sh.j2" %}
\ No newline at end of file
roles/monitoring_engine/templates/unicore_ks.sh.j2
0 → 100644
View file @
0661ca18
{% include "private_files/" + ansible_fqdn + "/templates/unicore_ks.sh.j2" %}
\ No newline at end of file
roles/monitoring_engine/templates/unicore_ts.sh.j2
0 → 100644
View file @
0661ca18
{% include "private_files/" + ansible_fqdn + "/templates/unicore_ts.sh.j2" %}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment