]> granicus.if.org Git - icinga2/commitdiff
Set default values for IdoMysqlConnection config attributes.
authorMichael Friedrich <michael.friedrich@netways.de>
Thu, 31 Oct 2013 15:12:30 +0000 (16:12 +0100)
committerMichael Friedrich <michael.friedrich@netways.de>
Thu, 31 Oct 2013 15:12:30 +0000 (16:12 +0100)
components/db_ido_mysql/idomysqlconnection.ti

index 202a20af8066bbed54219f61ef9eca70aa73be4d..d84f6e32933a4a8bdd3e9aa4ee3cdadc01444e92 100644 (file)
@@ -5,11 +5,21 @@ namespace icinga
 
 class IdoMysqlConnection : DbConnection
 {
-       [config] String host;
-       [config] int port;
-       [config] String user;
-       [config] String password;
-       [config] String database;
+       [config] String host {
+               default {{{ return "localhost"; }}}
+       };
+       [config] int port {
+               default {{{ return 3306; }}}
+       };
+       [config] String user {
+               default {{{ return "icinga"; }}}
+       };
+       [config] String password {
+               default {{{ return "icinga"; }}}
+       };
+       [config] String database {
+               default {{{ return "icinga"; }}}
+       };
        [config] String instance_name {
                default {{{ return "default"; }}}
        };