Skip to content
Snippets Groups Projects
Commit c00b3389 authored by Mickaël Canévet's avatar Mickaël Canévet
Browse files

Fix documentation

parent 70305ee0
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
This module requires Augeas. This module requires Augeas.
## Simple usage ## Simple usage
``` ```puppet
include postfix include postfix
postfix::config { 'relay_domains': postfix::config { 'relay_domains':
...@@ -20,13 +20,13 @@ This module requires Augeas. ...@@ -20,13 +20,13 @@ This module requires Augeas.
## Exec paths ## Exec paths
In order to not have any path problem, you should add the following line in some globally included .pp file: In order to not have any path problem, you should add the following line in some globally included .pp file:
``` ```puppet
Exec { Exec {
path => '/some/relevant/path:/some/other:...', path => '/some/relevant/path:/some/other:...',
} }
``` ```
For example: For example:
``` ```puppet
Exec { Exec {
path => '/bin:/sbin:/usr/sbin:/usr/bin', path => '/bin:/sbin:/usr/sbin:/usr/bin',
} }
...@@ -199,7 +199,7 @@ Example: 'btree:${data_directory}/smtp_tls_session_cache'. ...@@ -199,7 +199,7 @@ Example: 'btree:${data_directory}/smtp_tls_session_cache'.
#### Examples #### Examples
##### Configure Postfix to use TLS as a client ##### Configure Postfix to use TLS as a client
``` ```puppet
postfix::config { postfix::config {
'smtp_tls_mandatory_ciphers': value => 'high'; 'smtp_tls_mandatory_ciphers': value => 'high';
'smtp_tls_security_level': value => 'secure'; 'smtp_tls_security_level': value => 'secure';
...@@ -209,7 +209,7 @@ postfix::config { ...@@ -209,7 +209,7 @@ postfix::config {
``` ```
##### Configure Postfix to disable the vrfy command ##### Configure Postfix to disable the vrfy command
``` ```puppet
postfix::config { 'disable_vrfy_command': postfix::config { 'disable_vrfy_command':
ensure => present, ensure => present,
value => 'yes', value => 'yes',
...@@ -238,14 +238,14 @@ Example: 'puppet:///modules/some/location/sasl_passwd'. ...@@ -238,14 +238,14 @@ Example: 'puppet:///modules/some/location/sasl_passwd'.
#### Examples #### Examples
##### Create a sasl_passwd hash from a source file ##### Create a sasl_passwd hash from a source file
``` ```puppet
postfix::hash { '/etc/postfix/sasl_passwd': postfix::hash { '/etc/postfix/sasl_passwd':
ensure => 'present', ensure => 'present',
source => 'puppet:///modules/profile/postfix/client/sasl_passwd', source => 'puppet:///modules/profile/postfix/client/sasl_passwd',
} }
``` ```
##### Create a sasl_passwd hash with contents defined in the manifest ##### Create a sasl_passwd hash with contents defined in the manifest
``` ```puppet
postfix::hash { '/etc/postfix/sasl_passwd': postfix::hash { '/etc/postfix/sasl_passwd':
ensure => 'present', ensure => 'present',
content => '#Destination Credentials\nsmtp.example.com gssapi:nopassword', content => '#Destination Credentials\nsmtp.example.com gssapi:nopassword',
...@@ -260,7 +260,7 @@ Manages content of the /etc/postfix/transport map. ...@@ -260,7 +260,7 @@ Manages content of the /etc/postfix/transport map.
Augeas is, of course, required. Augeas is, of course, required.
The following code is required to use transport maps. The following code is required to use transport maps.
``` ```puppet
include postfix include postfix
postfix::hash{'/etc/postfix/transport': postfix::hash{'/etc/postfix/transport':
...@@ -299,7 +299,7 @@ Manages the contents of the virtual map. ...@@ -299,7 +299,7 @@ Manages the contents of the virtual map.
Augeas is, of course, required. Augeas is, of course, required.
The following code is necessary to make virtual maps work: The following code is necessary to make virtual maps work:
``` ```puppet
include postfix include postfix
postfix::hash {'/etc/postfix/virtual': postfix::hash {'/etc/postfix/virtual':
...@@ -330,7 +330,7 @@ Example: 'root' ...@@ -330,7 +330,7 @@ Example: 'root'
#### Examples #### Examples
##### Route mail bound for 'user@example.com' to root. ##### Route mail bound for 'user@example.com' to root.
``` ```puppet
postfix:: virtual {'user@example.com': postfix:: virtual {'user@example.com':
ensure => present, ensure => present,
destination => 'root', destination => 'root',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment