Puppet Class: mailcatcher::params

Inherited by:
mailcatcher
Defined in:
manifests/params.pp

Overview

class mailcatcher::params



3
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
# File 'manifests/params.pp', line 3

class mailcatcher::params {
  $smtp_ip          = '0.0.0.0'
  $smtp_port        = '1025'
  $http_ip          = '0.0.0.0'
  $http_port        = '1080'
  $mailcatcher_path = '/usr/local/bin'

  case $::osfamily {

    'Debian': {
      $packages = ['ruby-dev','sqlite3','libsqlite3-dev', 'rubygems']
      $config_file = '/etc/init/mailcatcher.conf'
      $template = 'mailcatcher/etc/init/mailcatcher.conf.erb'
      $provider = 'upstart'
     }
    'Redhat': {
      $packages = ['ruby-devel', 'sqlite-devel', 'rubygems']      
      $config_file = '/etc/init.d/mailcatcher'
      $template = 'mailcatcher/etc/init/mailcatcher.sysv.erb'
      $provider = 'redhat'
    }
    default: {
      fail("${::osfamily} is not supported.")
    }
  }
}