Puppet Class: mailhog
- Inherits:
- mailhog::params
- Defined in:
-
manifests/init.pp,
manifests/init.pp,
manifests/init.pp
Class to install and configure apache mailhog.
Use this module to install and configure apache mailhog.
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'manifests/init.pp', line 16
class mailhog (
$install_dir = $::mailhog::params::install_dir,
$install_method = $::mailhog::params::install_method,
$manage_service = $::mailhog::params::manage_service,
$package_name = $::mailhog::params::package_name,
$package_version = $::mailhog::params::package_version,
$service_name = $::mailhog::params::service_name,
$service_provider = $::mailhog::params::service_provider,
$wget_source = $::mailhog::params::wget_source,
) inherits mailhog::params {
validate_bool(
$manage_service,
)
validate_string(
$install_dir,
$install_method,
$package_name,
$package_version,
$service_name,
$service_provider,
)
if $install_method == 'wget' {
validate_string(
$wget_source
)
}
anchor { 'mailhog::begin': } ->
class{ '::mailhog::install': } ->
class{ '::mailhog::config': } ~>
class{ '::mailhog::service': } ->
anchor { 'mailhog::end': }
}
|