[icinga-checkins] icinga.org: icinga-vagrant/master: Mysql: Set a default root password

git at icinga.org git at icinga.org
Wed Jul 27 21:26:33 CEST 2016


Module: icinga-vagrant
Branch: master
Commit: 4a78a320da27807283059f60138a6cede01fc8ac
URL:    https://git.icinga.org/?p=icinga-vagrant.git;a=commit;h=4a78a320da27807283059f60138a6cede01fc8ac

Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Wed Jul 27 21:23:38 2016 +0200

Mysql: Set a default root password

---

 icinga2x-cluster/manifests/default.pp |   12 +++++++++++-
 icinga2x-graylog/manifests/default.pp |    9 ++++++++-
 icinga2x/manifests/default.pp         |   13 ++++++++++++-
 3 files changed, 31 insertions(+), 3 deletions(-)

diff --git a/icinga2x-cluster/manifests/default.pp b/icinga2x-cluster/manifests/default.pp
index c359ac7..46a369e 100644
--- a/icinga2x-cluster/manifests/default.pp
+++ b/icinga2x-cluster/manifests/default.pp
@@ -1,6 +1,5 @@
 include icinga_rpm
 include epel
-include '::mysql::server'
 include icinga2
 include icinga2_ido_mysql
 #include icinga2_classicui
@@ -14,6 +13,17 @@ icingaweb2::module { [ 'businessprocess', 'pnp' ]:
 }
 
 ####################################
+# Database
+####################################
+$mysql_server_override_options = {}
+
+class { '::mysql::server':
+  root_password => 'icingar0xx',
+  remove_default_accounts => true,
+  override_options => $mysql_server_override_options
+}
+
+####################################
 # Webserver
 ####################################
 
diff --git a/icinga2x-graylog/manifests/default.pp b/icinga2x-graylog/manifests/default.pp
index 96f5c8c..2474a50 100644
--- a/icinga2x-graylog/manifests/default.pp
+++ b/icinga2x-graylog/manifests/default.pp
@@ -123,13 +123,20 @@ class { 'icinga_rpm':
   pkg_repo_version => 'release'
 }
 
-include '::mysql::server'
 include icinga2
 include icinga2_ido_mysql
 include icingaweb2
 include icingaweb2_internal_db_mysql
 include monitoring_plugins
 
+$mysql_server_override_options = {}
+
+class { '::mysql::server':
+  root_password => 'icingar0xx',
+  remove_default_accounts => true,
+  override_options => $mysql_server_override_options
+}
+
 file { '/etc/icinga2/conf.d/api-users.conf':
   owner  => icinga,
   group  => icinga,
diff --git a/icinga2x/manifests/default.pp b/icinga2x/manifests/default.pp
index 61736d8..023199b 100644
--- a/icinga2x/manifests/default.pp
+++ b/icinga2x/manifests/default.pp
@@ -1,6 +1,5 @@
 include icinga_rpm
 include epel
-include '::mysql::server'
 include icinga2
 include icinga2_ido_mysql
 include icingaweb2
@@ -8,6 +7,18 @@ include icingaweb2_internal_db_mysql
 include monitoring_plugins
 
 ####################################
+# Database
+####################################
+
+$mysql_server_override_options = {}
+
+class { '::mysql::server':
+  root_password => 'icingar0xx',
+  remove_default_accounts => true,
+  override_options => $mysql_server_override_options
+}
+
+####################################
 # Webserver
 ####################################
 



More information about the icinga-checkins mailing list