[icinga-checkins] icinga.org: icinga2-ansible/master: Added features, added conditional to deal with icinga2-enable-feature, minor fix on pkg list

git at icinga.org git at icinga.org
Mon Jun 9 16:38:47 CEST 2014


Module: icinga2-ansible
Branch: master
Commit: 3198a66698383ce776a4373c16417d4ba8ea0e39
URL:    https://git.icinga.org/?p=icinga2-ansible.git;a=commit;h=3198a66698383ce776a4373c16417d4ba8ea0e39

Author: Valentino Gagliardi <valentino.g at servermanaged.it>
Date:   Mon Jun  9 16:37:35 2014 +0200

Added features, added conditional to deal with icinga2-enable-feature, minor fix on pkg list

---

 tasks/icinga2_install_Suse.yml |    8 ++++++++
 vars/Suse_Bottle.yml           |    7 ++++++-
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/tasks/icinga2_install_Suse.yml b/tasks/icinga2_install_Suse.yml
index 6eead52..0751b48 100644
--- a/tasks/icinga2_install_Suse.yml
+++ b/tasks/icinga2_install_Suse.yml
@@ -16,3 +16,11 @@
   with_items: icinga2_pkg
   notify:
    - restart icinga2
+
+- name: Enable Icinga2 features on Suse OS family
+  command: /usr/sbin/icinga2-enable-feature "{{ item.feature }}"
+  with_items: features
+  register: features_result
+  changed_when: "'for these changes to take effect' in features_result.stdout"
+  notify:
+   - restart icinga2
diff --git a/vars/Suse_Bottle.yml b/vars/Suse_Bottle.yml
index 52066e8..a7a49f0 100644
--- a/vars/Suse_Bottle.yml
+++ b/vars/Suse_Bottle.yml
@@ -10,10 +10,15 @@ apache: "apache2"
 
 icinga2_pkg:
  - { package: "icinga2" }
+ - { package: "nrpe" }
  - { package: "nagios-plugins-all" }
- - { package: "nagios-nrpe" }
  - { package: "nagios-plugins-nrpe" }
 
+features:
+ - { feature: "checker" }
+ - { feature: "mainlog" }
+ - { feature: "notification" }
+
 icinga2_web_pkg:
  - { package: "icinga2-classicui-config" }
  - { package: "icinga-gui" }



More information about the icinga-checkins mailing list