diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -21,9 +21,9 @@ The mailalias module is used to manage entries in the local alias database. ### Beginning with mailalias To manage a mail alias, add the mailalias type to a class: -``` +```puppet mailalias { 'ftp': - ensure => present, + ensure => present, recipient => 'root', } ``` @@ -37,19 +37,19 @@ For details on usage, please see REFERENCE.md for the reference documentation. #### file A file containing the alias’s contents. The file and the recipient entries are mutually exclusive. -``` +```puppet mailalias { 'usenet': ensure => present, - file => '/tmp/foo/usenet-alias', + file => '/tmp/foo/usenet-alias', } ``` This will result in an entry such as `usenet: :include: /tmp/foo/usenet-alias` #### recipient Where email should be sent. Multiple values should be specified as an array. The file and the recipient entries are mutually exclusive. -``` +```puppet mailalias { 'ftp': - ensure => present, + ensure => present, recipient => 'root', } ``` @@ -57,15 +57,15 @@ This will result in an entry such as `ftp: root` #### target The file in which to store the aliases. Only used by those providers that write to disk. -``` +```puppet mailalias { 'ftp': - ensure => present, + ensure => present, recipient => 'root', - target => `/etc/mail/aliases` + target => `/etc/mail/aliases` } ``` This will ensure the entry exists in the file specified, such as: -``` +```sh-session $ cat /etc/mail/aliases ftp: root ``` |
