aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMelissa Stone <melissa@puppet.com>2018-04-20 10:54:31 -0700
committerMelissa Stone <melissa@puppet.com>2018-04-20 11:17:17 -0700
commit40d1ec5f01af4232795262ae175d04b25ba16f41 (patch)
treeb4a6249553f4c2217579fcadbe7ec03d61df3fdd /README.md
parentfa6ef0f79620e62f39b49ddf761c01c1c0fb7e3f (diff)
downloadpuppet-mailalias_core-40d1ec5f01af4232795262ae175d04b25ba16f41.tar.gz
puppet-mailalias_core-40d1ec5f01af4232795262ae175d04b25ba16f41.tar.bz2
Update README.md
Diffstat (limited to 'README.md')
-rw-r--r--README.md118
1 files changed, 63 insertions, 55 deletions
diff --git a/README.md b/README.md
index a7625e1..07482c7 100644
--- a/README.md
+++ b/README.md
@@ -1,81 +1,89 @@
-
# mailalias
-Welcome to your new module. A short overview of the generated parts can be found in the PDK documentation at https://puppet.com/pdk/latest/pdk_generating_modules.html .
-
-The README template below provides a starting point with details about what information to include in your README.
-
-
-
-
-
-
-
#### Table of Contents
1. [Description](#description)
-2. [Setup - The basics of getting started with mailalias](#setup)
- * [What mailalias affects](#what-mailalias-affects)
- * [Setup requirements](#setup-requirements)
- * [Beginning with mailalias](#beginning-with-mailalias)
-3. [Usage - Configuration options and additional functionality](#usage)
-4. [Reference - An under-the-hood peek at what the module is doing and how](#reference)
-5. [Limitations - OS compatibility, etc.](#limitations)
-6. [Development - Guide for contributing to the module](#development)
+2. [Usage - Configuration options and additional functionality](#usage)
+3. [Reference - An under-the-hood peek at what the module is doing and how](#reference)
+4. [Limitations - OS compatibility, etc.](#limitations)
+5. [Development - Guide for contributing to the module](#development)
## Description
-Start with a one- or two-sentence summary of what the module does and/or what problem it solves. This is your 30-second elevator pitch for your module. Consider including OS/Puppet version it works with.
-
-You can give more descriptive information in a second paragraph. This paragraph should answer the questions: "What does this module *do*?" and "Why would I use it?" If your module has a range of functionality (installation, configuration, management, etc.), this is the time to mention it.
-
-## Setup
-
-### What mailalias affects **OPTIONAL**
-
-If it's obvious what your module touches, you can skip this section. For example, folks can probably figure out that your mysql_instance module affects their MySQL instances.
-
-If there's more that they should know about, though, this is the place to mention:
-
-* Files, packages, services, or operations that the module will alter, impact, or execute.
-* Dependencies that your module automatically installs.
-* Warnings or other important notices.
-
-### Setup Requirements **OPTIONAL**
-
-If your module requires anything extra before setting up (pluginsync enabled, another module, etc.), mention it here.
-
-If your most recent release breaks compatibility or requires particular steps for upgrading, you might want to include an additional "Upgrading" section here.
+The mailalias module is used to manage entries in the local alias database.
### Beginning with mailalias
-
-The very basic steps needed for a user to get the module up and running. This can include setup steps, if necessary, or it can be an example of the most basic use of the module.
+To manage a mail alias, add the mailalias type to a class:
+```
+mailalias { 'ftp':
+ ensure => present,
+ recipient => 'root',
+}
+```
+This example will redirect mail for the ftp account to root's mailbox.
## Usage
-
-This section is where you describe how to customize, configure, and do the fancy stuff with your module here. It's especially helpful if you include usage examples and code samples for doing things with your module.
+The mailalias module is used to manage entries in `/etc/aliases`, which creates an email alias in the local alias database.
+
+For details on usage, please see [the puppet docs](https://puppet.com/docs/puppet/latest/types/mailalias.html).
+
+#### file
+A file containing the alias’s contents. The file and the recipient entries are mutually exclusive.
+```
+mailalias { 'usenet':
+ ensure => present,
+ 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.
+```
+mailalias { 'ftp':
+ ensure => present,
+ recipient => 'root',
+}
+```
+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.
+```
+mailalias { 'ftp':
+ ensure => present,
+ recipient => 'root',
+ target => `/etc/mail/aliases`
+}
+```
+This will ensure the entry exists in the file specified, such as:
+```
+$ cat /etc/mail/aliases
+ftp: root
+```
## Reference
-Users need a complete list of your module's classes, types, defined types providers, facts, and functions, along with the parameters for each. You can provide this list either via Puppet Strings code comments or as a complete list in the README Reference section.
+This module is documented using Puppet Strings.
-* If you are using Puppet Strings code comments, this Reference section should include Strings information so that your users know how to access your documentation.
+For a quick primer on how Strings works, please see [this blog post](https://puppet.com/blog/using-puppet-strings-generate-great-documentation-puppet-modules) or the [README.md](https://github.com/puppetlabs/puppet-strings/blob/master/README.md) for Puppet Strings.
-* If you are not using Puppet Strings, include a list of all of your classes, defined types, and so on, along with their parameters. Each element in this listing should include:
+To generate documentation locally, run
+```
+bundle install
+bundle exec puppet strings generate ./lib/**/*.rb
+```
+This command will create a browsable `\_index.html` file in the `doc` directory. The references available here are all generated from YARD-style comments embedded in the code base. When any development happens on this module, the impacted documentation should also be updated.
- * The data type, if applicable.
- * A description of what the element does.
- * Valid values, if the data type doesn't make it obvious.
- * Default value, if any.
## Limitations
-This is where you list OS compatibility, version compatibility, etc. If there are Known Issues, you might want to include them under their own heading here.
+This module is only supported on platforms that have `sendmail` available.
## Development
-Since your module is awesome, other users will want to play with it. Let them know what the ground rules for contributing are.
+Puppet Labs modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. We can't access the huge number of platforms and myriad of hardware, software, and deployment configurations that Puppet is intended to serve.
-## Release Notes/Contributors/Etc. **Optional**
+We want to keep it as easy as possible to contribute changes so that our modules work in your environment. There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.
-If you aren't using changelog, put your release notes here (though you should consider using changelog). You can also add any additional sections you feel are necessary or important to include here. Please use the `## ` header.
+For more information, see our [module contribution guide.](https://docs.puppetlabs.com/forge/contributing.html)