postfix
: This class installs and configures the postfix service.
postfix::config
: This class handles postfix configuration.postfix::package
: Manages the postfix packages.postfix::service
: Manages the postfix service.
postconf
: Create a new postconf entry. Puppet does not really support generating/prefetching resources with multiple namevars, so this type representspostconf_master
: Create a new postconf master.cf entry. Puppet does not really support generating/prefetching resources with multiple namevars, so this typepostmulti
: Manage postfix instances. Example: postmulti { 'postfix-out': }
This class installs and configures the postfix service.
class { 'postfix':
service_manage => false,
mailx_ensure => absent
}
The following parameters are available in the postfix
class.
Data type: Enum['installed', 'present', 'latest']
The state of the mailx package to ensure.
Data type: Boolean
Should the mailx package me managed.
Data type: String
The name of the mailx package.
Data type: Hash[String, Any]
A hash of config key-value entries for main.cf
Data type: Hash[String, Hash[String, Any]]
A hash of config key-value entries for master.cf
Data type: Enum['installed', 'present', 'latest']
The state the postfix package should be ensured.
Data type: Boolean
Whether to install the postfix and plugin packages.
Data type: String
The name of the postfix package to install.
Data type: Hash
Contains a package_name parameter for each plugin (if available).
Data type: Array[String[1]]
The list of plugins to install.
Data type: Variant[Boolean, Enum['true', 'false', 'noop']]
Purge all unmanaged entries from main.cf if true.
Data type: Variant[Boolean, Enum['true', 'false', 'noop']]
Purge all unmanaged entries from master.cf if true.
Data type: String
The command that should be used to restart the Postfix service upon configuration changes.
Data type: Enum['absent', 'running', 'stopped']
The state of the postfix service which should be ensured.
Data type: String
The name of the postfix service.
Data type: Boolean
Should the postfix service be managed at all.
Create a new postconf entry.
Puppet does not really support generating/prefetching resources with multiple namevars, so this type represents the whole parameter identifier in the :parameter property. This includes the postmulti instance. Valid formats are:
- service/type
- instance::service/type
Autorequires: If Puppet is managing the postmulti instance for this entry, it will be autorequired.
Example:
postconf { 'myhostname':
value => 'foo.bar'
}
The following properties are available in the postconf
type.
Valid values: present
, absent
The basic property that the resource should be in.
Default value: present
The value the postconf parameter should be set to.
The following parameters are available in the postconf
type.
Valid values: %r{^([^/]+::)?[a-zA-Z0-9]+(?:_[a-zA-Z0-9]+)*$}
The postconf parameter which should be set.
The specific backend to use for this postconf
resource. You will seldom need to specify this --- Puppet will usually
discover the appropriate provider for your platform.
Create a new postconf master.cf entry.
Puppet does not really support generating/prefetching resources with multiple namevars, so this type represents the whole service identifier in the :name property. This includes the postmulti instance. Valid formats are:
- service/type
- instance::service/type
Autorequires: If Puppet is managing the postmulti instance for this entry, it will be autorequired.
Example:
postconf_master { 'smtp/inet':
command => 'postscreen'
}
The following properties are available in the postconf_master
type.
Whether or not the service runs chrooted to the mail queue directory.
Default value: undef
The command to be executed.
Valid values: present
, absent
The basic property that the resource should be in.
Default value: present
Whether or not access is restricted to the mail system.
Default value: undef
Valid values: undef
, %r{^\d+$}
The maximum number of processes that may execute this service simultaneously.
Default value: undef
Whether the service runs with root privileges or as the owner of the Postfix system.
Default value: undef
Valid values: undef
, %r{^\d+\??$}
Automatically wake up the named service after the specified number of seconds.
Default value: undef
The following parameters are available in the postconf_master
type.
namevar
The postconf master.cf service/type which should be managed.
The specific backend to use for this postconf_master
resource. You will seldom need to specify this --- Puppet will
usually discover the appropriate provider for your platform.
Manage postfix instances.
Example:
postmulti { 'postfix-out': }
The following properties are available in the postmulti
type.
Valid values: active
, inactive
, absent
, present
Aliases: "present"=>"active"
The basic property that the resource should be in.
Name of the instance group.
The following parameters are available in the postmulti
type.
namevar
Name of the postmulti instance. Must must start with 'postfix-'
The specific backend to use for this postmulti
resource. You will seldom need to specify this --- Puppet will usually
discover the appropriate provider for your platform.