[icinga-checkins] icinga.org: icinga2-ansible/master: Added variables for IDO Mysql and Icinga New Web on Debian-Ubuntu

git at icinga.org git at icinga.org
Fri Jun 13 18:20:08 CEST 2014


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

Author: Valentino Gagliardi <valentino.g at servermanaged.it>
Date:   Fri Jun 13 18:12:37 2014 +0200

Added variables for IDO Mysql and Icinga New Web on Debian-Ubuntu

---

 README.md              |    6 ++++--
 vars/Debian_wheezy.yml |   42 +++++++++++++++++++++++++++++++++++++++---
 vars/Ubuntu_trusty.yml |   41 +++++++++++++++++++++++++++++++++++++++--
 3 files changed, 82 insertions(+), 7 deletions(-)

diff --git a/README.md b/README.md
index b420ebf..16bca1a 100644
--- a/README.md
+++ b/README.md
@@ -17,14 +17,16 @@ The variables that can be passed to this role in the main playbook. "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"	|
+|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"|
+|mysql_root_password:      | same as in vars/ | No, only if you have icinga2_new_web_mysql: "yes"|
 
 The variables that you are required to configure manually:
 
 File `vars/Ubuntu_trusty.yml` and `vars/Debian_wheezy.yml`
 
 icinga2_classicui_password: "CHANGEME"
+mysql_root_password: "CHANGEME"
 
 File `vars/CentOS_Final.yml`
 
diff --git a/vars/Debian_wheezy.yml b/vars/Debian_wheezy.yml
index a029eab..6d2b62e 100644
--- a/vars/Debian_wheezy.yml
+++ b/vars/Debian_wheezy.yml
@@ -24,11 +24,47 @@ icinga2_pkg:
  - { package: "nagios-nrpe-server" }
 
 icinga2_classicui_debconf:
- - { name: "icinga2-classicui", question: "icinga2-classicui/adminpassword", icinga2_classicui_password: "CHANGEME", vtype: "string" }
- - { name: "icinga2-classicui", question: "icinga2-classicui/adminpassword-repeat", icinga2_classicui_password: "CHANGEME", vtype: "string" }
+ - { name: "icinga2-classicui", question: "icinga2-classicui/adminpassword", icinga2_classicui_password: "CHANGEME", vtype: "password" }
+ - { name: "icinga2-classicui", question: "icinga2-classicui/adminpassword-repeat", icinga2_classicui_password: "CHANGEME", vtype: "password" }
 
 icinga2_web_pkg:
  - { package: "icinga2-classicui" }
 
-icinga2_hosts_dir: "/etc/icinga2/conf.d/hosts/"
+icinga2_ido_mysql:
+ - { package: "icinga2-ido-mysql", template: "ido-mysql.conf.j2", conf: "/etc/icinga2/features-enabled/ido-mysql.conf" }
+
+mysql_server_debconf:
+ - { name: "icinga2-classicui", question: "mysql-server/root_password", mysql_root_password: "CHANGEME", vtype: "password" }
+ - { name: "icinga2-classicui", question: "mysql-server/root_password_again", mysql_root_password: "CHANGEME", vtype: "password" }
+
+icinga2_mysql_pkg:
+ - { package: "mysql-server" }
+ - { package: "python-mysqldb" }
+
+icinga2_icinga_common:
+ - { name: "icinga-common", question: "icinga/check_external_commands", value: "true", vtype: "boolean" }
+
+icinga2_icinga_idoutils:
+ - { name: "icinga-idoutils", question: "icinga-idoutils/dbconfig-install", value: "true", vtype: "boolean" }
+ - { name: "icinga-idoutils", question: "icinga-idoutils/database-type", value: "mysql", vtype: "string" }
+ - { name: "icinga-idoutils", question: "icinga-idoutils/mysql/admin-pass", value: "CHANGEME", vtype: "password" }
+ - { name: "icinga-idoutils", question: "icinga-idoutils/mysql/app-pass", value: "icinga", vtype: "password" }
+ - { name: "icinga-idoutils", question: "icinga-idoutils/app-pass-confirm", value: "icinga", vtype: "password" }
 
+icinga2_icinga_web:
+ - { name: "icinga-web", question: "icinga-web/dbconfig-install", value: "true", vtype: "boolean" }
+ - { name: "icinga-web", question: "icinga-web/database-type", value: "mysql", vtype: "string" }
+ - { name: "icinga-web", question: "icinga-web/mysql/admin-pass", value: "CHANGEME", vtype: "password" }
+ - { name: "icinga-web", question: "icinga-web/mysql/app-pass", value: "icingaweb", vtype: "password" }
+ - { name: "icinga-web", question: "icinga-web/app-pass-confirm", value: "icingaweb", vtype: "password" }
+ - { name: "icinga-web", question: "icinga-web/rootpassword-repeat", value: "password", vtype: "password" }
+ - { name: "icinga-web", question: "icinga-web/rootpassword", value: "password", vtype: "password" }
+
+icinga2_new_web_pkg:
+ - { package: "icinga-web" }
+
+icinga2_ido_db_user: "icinga-idoutils"
+icinga2_ido_db_user_pass: "icinga"
+icinga2_ido_db: "icinga"
+
+icinga2_hosts_dir: "/etc/icinga2/conf.d/hosts/"
diff --git a/vars/Ubuntu_trusty.yml b/vars/Ubuntu_trusty.yml
index 58876f6..8e4408d 100644
--- a/vars/Ubuntu_trusty.yml
+++ b/vars/Ubuntu_trusty.yml
@@ -18,11 +18,48 @@ icinga2_pkg:
  - { package: "nagios-nrpe-server" }
 
 icinga2_classicui_debconf:
- - { name: "icinga2-classicui", question: "icinga2-classicui/adminpassword", icinga2_classicui_password: "CHANGEME", vtype: "string" }
- - { name: "icinga2-classicui", question: "icinga2-classicui/adminpassword-repeat", icinga2_classicui_password: "CHANGEME", vtype: "string" }
+ - { name: "icinga2-classicui", question: "icinga2-classicui/adminpassword", icinga2_classicui_password: "CHANGEME", vtype: "password" }
+ - { name: "icinga2-classicui", question: "icinga2-classicui/adminpassword-repeat", icinga2_classicui_password: "CHANGEME", vtype: "password" }
 
 icinga2_web_pkg:
  - { package: "icinga2-classicui" }
 
+icinga2_ido_mysql:
+ - { package: "icinga2-ido-mysql", template: "ido-mysql.conf.j2", conf: "/etc/icinga2/features-enabled/ido-mysql.conf" }
+
+mysql_server_debconf:
+ - { name: "icinga2-classicui", question: "mysql-server/root_password", mysql_root_password: "CHANGEME", vtype: "password" }
+ - { name: "icinga2-classicui", question: "mysql-server/root_password_again", mysql_root_password: "CHANGEME", vtype: "password" }
+
+icinga2_mysql_pkg:
+ - { package: "mysql-server" }
+ - { package: "python-mysqldb" }
+
+icinga2_icinga_common:
+ - { name: "icinga-common", question: "icinga/check_external_commands", value: "true", vtype: "boolean" }
+
+icinga2_icinga_idoutils:
+ - { name: "icinga-idoutils", question: "icinga-idoutils/dbconfig-install", value: "true", vtype: "boolean" }
+ - { name: "icinga-idoutils", question: "icinga-idoutils/database-type", value: "true", vtype: "boolean" }
+ - { name: "icinga-idoutils", question: "icinga-idoutils/mysql/admin-pass", value: "CHANGEME", vtype: "password" }
+ - { name: "icinga-idoutils", question: "icinga-idoutils/mysql/app-pass", value: "icinga", vtype: "password" }
+ - { name: "icinga-idoutils", question: "icinga-idoutils/app-pass-confirm", value: "icinga", vtype: "password" }
+
+icinga2_icinga_web:
+ - { name: "icinga-web", question: "icinga-web/dbconfig-install", value: "true", vtype: "boolean" }
+ - { name: "icinga-web", question: "icinga-web/database-type", value: "mysql", vtype: "string" }
+ - { name: "icinga-web", question: "icinga-web/mysql/admin-pass", value: "CHANGEME", vtype: "password" }
+ - { name: "icinga-web", question: "icinga-web/mysql/app-pass", value: "icingaweb", vtype: "password" }
+ - { name: "icinga-web", question: "icinga-web/app-pass-confirm", value: "icingaweb", vtype: "password" }
+ - { name: "icinga-web", question: "icinga-web/rootpassword-repeat", value: "password", vtype: "password" }
+ - { name: "icinga-web", question: "icinga-web/rootpassword", value: "password", vtype: "password" }
+
+icinga2_new_web_pkg:
+ - { package: "icinga-web" }
+
+icinga2_ido_db_user: "icinga-idoutils"
+icinga2_ido_db_user_pass: "icinga"
+icinga2_ido_db: "icinga"
+
 icinga2_hosts_dir: "/etc/icinga2/conf.d/hosts/"
 



More information about the icinga-checkins mailing list