Skip to content

savar/puppet-amavisd

Repository files navigation

Amavisd module for Puppet

This module manages amavisd on Debian distros (other Unix systems can easily added through amavisd::params).

Description

This module uses the fact osfamily which is supported by Facter 1.6.1+. If you do not have facter 1.6.1 in your environment, the following manifests will provide the same functionality in site.pp (before declaring any node):

if ! $::osfamily {
  case $::operatingsystem {
    'RedHat', 'Fedora', 'CentOS', 'Scientific', 'SLC', 'Ascendos', 'CloudLinux', 'PSBM', 'OracleLinux', 'OVS', 'OEL': {
      $osfamily = 'RedHat'
    }
    'ubuntu', 'debian': {
      $osfamily = 'Debian'
    }
    'SLES', 'SLED', 'OpenSuSE', 'SuSE': {
      $osfamily = 'Suse'
    }
    'Solaris', 'Nexenta': {
      $osfamily = 'Solaris'
    }
    default: {
      $osfamily = $::operatingsystem
    }
  }
}

Usage

Simple example.

Installs the amavisd server.

include amavisd

More complex example.

Installs the amavisd server with a comment in the user config file.

class { 'amavisd':
  user_config => '# super comment'
}

About

Puppet module for managing amavisd

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published