diff --git a/.vagrant-puppet/modules/icingaweb2/manifests/config/module.pp b/.vagrant-puppet/modules/icingaweb2/manifests/config/module.pp new file mode 100644 index 000000000..ece68c025 --- /dev/null +++ b/.vagrant-puppet/modules/icingaweb2/manifests/config/module.pp @@ -0,0 +1,6 @@ +define icingaweb2::config::module ($source, $module = 'monitoring', $replace = true) { + icingaweb2::config { "modules/${module}/${name}": + source => $source, + replace => $replace, + } +} diff --git a/.vagrant-puppet/modules/icingaweb2/manifests/config/monitoring.pp b/.vagrant-puppet/modules/icingaweb2/manifests/config/monitoring.pp deleted file mode 100644 index 151252185..000000000 --- a/.vagrant-puppet/modules/icingaweb2/manifests/config/monitoring.pp +++ /dev/null @@ -1,6 +0,0 @@ -define icingaweb2::config::monitoring ($source, $replace = true) { - icingaweb2::config { "modules/monitoring/${name}": - source => $source, - replace => $replace, - } -} diff --git a/.vagrant-puppet/profiles/icingaweb2_dev/manifests/init.pp b/.vagrant-puppet/profiles/icingaweb2_dev/manifests/init.pp index 2f1e3e012..576c431d6 100644 --- a/.vagrant-puppet/profiles/icingaweb2_dev/manifests/init.pp +++ b/.vagrant-puppet/profiles/icingaweb2_dev/manifests/init.pp @@ -56,5 +56,5 @@ class icingaweb2_dev { replace => false, } - icingaweb2::config::monitoring { [ 'backends', 'config', 'instances' ]: } + icingaweb2::config::module { [ 'backends', 'config', 'instances' ]: } }