Skip to content
This repository was archived by the owner on Oct 12, 2019. It is now read-only.

Commit

Permalink
Install more dependencies
Browse files Browse the repository at this point in the history
As I debug Shinken issues I'm discovering more things that are
required for successful operation. This adds several of those things
which aren't installed by default.
  • Loading branch information
goetzk committed Mar 1, 2017
1 parent 94e2ccb commit 6374703
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 6 deletions.
24 changes: 24 additions & 0 deletions tasks/install-shinken-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,30 @@
name: shinken
state: present

- name: Install build dependencies for pycurl
when: shinken_install_from == "pip"
when: ansible_os_family == "Debian"
package:
name: "{{ shinken_pycurl_build_deps }}"
state: present


- name: Install runtime dependencies where required
when: ansible_os_family == "Redhat"
package:
name: redhat-lsb-core
state: present

- name: Install pycurl using pip
when: shinken_install_from == "pip"
when: ansible_os_family == "Debian"
pip:
name: pycurl
version: 7.43.0
state: present
# virtualenv: "{{ shinken_virtualenv }}"
# virtualenv_site_packages: yes

- name: Install Shinken using pip
when: shinken_install_from == "pip"
pip:
Expand Down
17 changes: 11 additions & 6 deletions tasks/prepare-for-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,20 @@
# path: "{{ shinken_virtualenv }}"
# state: directory

# Required by shinken http_client but not pulled in as a dependency
- name: Install python-pycurl
package:
name: python-pycurl
state: present

# needed to install shinken and its web ui
- name: Install python-pip
package:
name: python-pip
state: present

- name: Gather OS specific variables
include_vars: "{{ ansible_os_family|lower }}.yml"

# For performing various checks
# FIXME: this will need tweaking to support centos.
- name: Install check dependencies
package:
name: "{{ item }}"
state: present
with_items:
- "{{ shinken_monitoring_plugins }}"
11 changes: 11 additions & 0 deletions vars/debian.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
shinken_monitoring_plugins:
- monitoring-plugins
- nagios-plugins-contrib

shinken_pycurl_build_deps:
- libcurl4-openssl-dev
- build-essential
- python-dev
- libssl-dev

8 changes: 8 additions & 0 deletions vars/redhat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
shinken_monitoring_plugins:
- nagios-plugins
- nagios-plugins-all

shinken_pycurl_build_deps:
- libcurl-devel

0 comments on commit 6374703

Please sign in to comment.