aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md20
1 files changed, 10 insertions, 10 deletions
diff --git a/README.md b/README.md
index 124bf86..520c699 100644
--- a/README.md
+++ b/README.md
@@ -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
```