Commit 403aef33 authored by Markus Frosch's avatar Markus Frosch 📣
Browse files

master: allow to choose database type

parent 2d9d272c
class icinga2_testing::roles::master
{
class icinga2_testing::roles::master(
$database = 'mysql',
) {
validate_re($database, '^(mysql|pgsql)$', "Unsupported database type: ${database}")
include ::icinga2_testing::roles::base
contain ::icinga2_testing::profiles::repository
contain ::icinga2_testing::profiles::mysql
Class['icinga2_testing::profiles::mysql'] -> Class['icinga2_testing::helpers::icinga2::ido_mysql']
contain "::icinga2_testing::profiles::${database}"
Class["::icinga2_testing::profiles::${database}"] -> Class["::icinga2_testing::helpers::icinga2::ido_${database}"]
contain ::icinga2_testing::profiles::icinga2
contain ::icinga2_testing::helpers::icinga2::ido_mysql
contain "::icinga2_testing::helpers::icinga2::ido_${database}"
contain ::icinga2_testing::profiles::icingaweb2
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment