Puppet Class: postfix::install

Defined in:
manifests/install.pp

Overview

Parameters:

  • smarthost (Any)
  • port (Any)
  • username (Any)
  • password (Any)
  • admin_email (Any)
  • alias_domains (Any)
  • alias_files (Any)
  • key_file (Any)
  • cert_file (Any)
  • ca_file (Any)


10
11
12
13
14
15
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
# File 'manifests/install.pp', line 10

class postfix::install (
  $smarthost,
  $port,
  $username,
  $password,
  $admin_email,
  $alias_domains,
  $alias_files,
  $key_file,
  $cert_file,
  $ca_file
) {

  # Install the Postfix package.

  package { 'postfix':
    ensure => 'present'
  }

  # Create the Postfix configuration file.

  file { 'main.cf':
    ensure  => 'present',
    path    => '/etc/postfix/main.cf',
    content => template('postfix/main.cf.erb'),
    require => Package['postfix'],
    notify  => Service['postfix']
  }

  # Enable the Postfix service.

  service { 'postfix':
    ensure  => 'running',
    require => Package['postfix']
  }

}