[icinga-checkins] icinga.org: icinga2-ansible/master: Updated README and getting started with icinga2 new web classic examples

git at icinga.org git at icinga.org
Wed Jun 11 20:12:54 CEST 2014


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

Author: Valentino Gagliardi <valentino.g at servermanaged.it>
Date:   Wed Jun 11 20:08:15 2014 +0200

Updated README and getting started with icinga2 new web classic examples

---

 README.md              |   29 +++++++++++++++++++++++------
 doc/getting_started.md |   43 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 66 insertions(+), 6 deletions(-)

diff --git a/README.md b/README.md
index 049fd00..0c0eeed 100644
--- a/README.md
+++ b/README.md
@@ -11,13 +11,16 @@ None
 Role Variables
 --------------
 
-The variables that can be passed to this role:
+The variables that can be passed to this role in the main playbook. "Mandatory" means that you are required to specify the value of the variable.
 
-| Name			|Possible values |
-|-----------------------|----------------|
-|icinga2_classicui: ""	| yes/no         |
+| Name			   | Value  | Mandatory     |
+|--------------------------|--------|---------------|
+|icinga2_classicui:	   | yes/no | Yes	    |
+|icinga2_new_web_mysql:	   | yes/no | Yes	    |
+|icinga2_ido_db_user_pass: | icinga | No, only if you have icinga2_new_web_mysql: "yes"	|
+|icinga2_web_db_user_pass: | icinga_web | No, only if you have icinga2_new_web_mysql: "yes"	|
 
-The variables that you are required to configure:
+The variables that you are required to configure manually:
 
 File `vars/Ubuntu_trusty.yml` and `vars/Debian_wheezy.yml`
 
@@ -31,11 +34,25 @@ TODO
 Example Playbooks
 -------------------------
 
+Install Icinga2 with Classic UI:
+
 ```
+---
 - hosts: monitors
   
   roles:
-   - { role: icinga2-ansible, icinga2_classicui: "no" }
+   - { role: icinga2-ansible, icinga2_classicui: "yes", icinga2_new_web_mysql: "no" }
+```
+
+Install Icinga2 with Icinga New Web Classic:
+
+```
+---
+- hosts: monitors
+  sudo: yes
+
+  roles:
+   - { role: icinga2-ansible, icinga2_classicui: "no", icinga2_new_web_mysql: "yes", icinga2_ido_db_user_pass: "icinga", icinga2_web_db_user_pass: "icinga_web"}
 ```
 
 License
diff --git a/doc/getting_started.md b/doc/getting_started.md
index 8886be4..f96e619 100644
--- a/doc/getting_started.md
+++ b/doc/getting_started.md
@@ -17,6 +17,7 @@ mnt_srv2 ansible_ssh_host="" ansible_ssh_user=""
 Then create a simple playbook, `site.yml` and place the following content:
 
 ```
+---
 - hosts: monitors_icinga2_core
   
   roles:
@@ -44,6 +45,7 @@ Given that Classic UI for Debian OS family requires a password which will be pas
 Then update your playbook:
 
 ```
+---
 - hosts: monitors_icinga2_core
   
   roles:
@@ -58,3 +60,44 @@ Then update your playbook:
 and then launch again the playbook:
 
 `ansible-playbook -i inventory site.yml`
+
+What happens if you want to add 2 monitoring servers with Icinga2 New Web Classic alongside the previous servers? Add them in your inventory:
+
+```
+[monitors_icinga2_core]
+mnt_srv1 ansible_ssh_host="" ansible_ssh_user=""
+mnt_srv2 ansible_ssh_host="" ansible_ssh_user=""
+
+[monitors_icinga2_classicui]
+mnt_srv3 ansible_ssh_host="" ansible_ssh_user=""
+mnt_srv4 ansible_ssh_host="" ansible_ssh_user=""
+
+[monitors_icinga2_new_web_classic]
+mnt_srv5 ansible_ssh_host="" ansible_ssh_user=""
+mnt_srv6 ansible_ssh_host="" ansible_ssh_user=""
+```
+
+Then update your playbook:
+
+```
+---
+- hosts: monitors_icinga2_core
+  
+  roles:
+   - { role: Icinga.icinga2-ansible, icinga2_classicui: "no" }
+
+- hosts: monitors_icinga2_classicui
+  
+  roles:
+   - { role: Icinga.icinga2-ansible, icinga2_classicui: "yes" }
+
+- hosts: monitors_icinga2_new_web_classic
+  sudo: yes
+
+  roles:
+   - { role: icinga2-ansible, icinga2_classicui: "no", icinga2_new_web_mysql: "yes", icinga2_ido_db_user_pass: "icinga", icinga2_web_db_user_pass: "icinga_web"}
+```
+
+and then launch again the playbook:
+
+`ansible-playbook -i inventory site.yml`



More information about the icinga-checkins mailing list