-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add deployment of monitoring and statistic tools
- Loading branch information
1 parent
bffe7a3
commit 8a64e57
Showing
3 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
# tasks file for deploying monitoring tools | ||
|
||
- name: Download Nagios plugins | ||
get_url: | ||
url: "{{ ltb_base_url }}{{ ltb_nagios_archive_name }}" | ||
dest: "{{ ltb_dest_path }}" | ||
mode: '0644' | ||
|
||
- name: Download Cacti plugins | ||
get_url: | ||
url: "{{ ltb_base_url }}{{ ltb_cacti_archive_name }}" | ||
dest: "{{ ltb_dest_path }}" | ||
mode: '0644' | ||
|
||
- name: extract Nagios archive | ||
ansible.builtin.unarchive: | ||
src: "{{ ltb_dest_path }}/{{ ltb_nagios_archive_name }}" | ||
dest: "{{ ltb_dest_path }}" | ||
|
||
- name: extract Cacti archive | ||
ansible.builtin.unarchive: | ||
src: "{{ ltb_dest_path }}/{{ ltb_cacti_archive_name }}" | ||
dest: "{{ ltb_dest_path }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
######################################################################################################## | ||
# example of playbook for deploying monitoring and statistics tools from LTB | ||
######################################################################################################## | ||
--- | ||
- hosts: localhost | ||
remote_user: root | ||
vars: | ||
# destination path where to put monitoring and statistics tools | ||
ltb_dest_path: "/usr/local/openldap/etc/openldap/" | ||
ltb_base_url: "https://ltb-project.org/archives/" | ||
ltb_nagios_archive_name: "ltb-project-nagios-plugins-0.8.tar.gz" | ||
ltb_cacti_archive_name: "ltb-project-cacti-plugins-0.3.tar.gz" | ||
tasks: | ||
- name: deploying monitoring and statistics tools from LTB (load tasks/monitoring.yml) | ||
include_role: | ||
name: ansible-role-ldaptoolbox-openldap | ||
tasks_from: monitoring |