Puppet Class: mailhog::install
- Defined in:
- manifests/install.pp
Overview
Class to install mailhog.
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'manifests/install.pp', line 4
class mailhog::install {
case $mailhog::install_method {
'package': {
package { 'mailhog':
ensure => $mailhog::package_version,
name => $mailhog::package_name,
}
}
'archive': {
file { 'mailhog install dir':
ensure => directory,
path => $mailhog::install_dir,
}
-> archive { "${mailhog::install_dir}/mailhog":
source => $mailhog::archive_source,
}
-> file { 'mailhog binary':
group => 'root',
mode => '0755',
owner => 'root',
path => "${mailhog::install_dir}/mailhog",
}
}
default: {
fail("Installation method ${mailhog::install_method} not supported")
}
}
}
|