-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
21cb788
commit 30cf504
Showing
2 changed files
with
21 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,117 +1,28 @@ | ||
# domain | ||
|
||
Welcome to your new module. A short overview of the generated parts can be found | ||
in the [PDK documentation][1]. | ||
|
||
The README template below provides a starting point with details about what | ||
information to include in your README. | ||
|
||
## Table of Contents | ||
|
||
1. [Description](#description) | ||
1. [Setup - The basics of getting started with domain](#setup) | ||
* [What domain affects](#what-domain-affects) | ||
* [Setup requirements](#setup-requirements) | ||
* [Beginning with domain](#beginning-with-domain) | ||
1. [Usage - Configuration options and additional functionality](#usage) | ||
1. [Limitations - OS compatibility, etc.](#limitations) | ||
1. [Development - Guide for contributing to the module](#development) | ||
Accessing information from our domain name convention. | ||
|
||
## Description | ||
|
||
Briefly tell users why they might want to use your module. Explain what your | ||
module does and what kind of problems users can solve with it. | ||
|
||
This should be a fairly short description helps the user decide if your module | ||
is what they want. | ||
|
||
## Setup | ||
|
||
### What domain 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. | ||
|
||
### Beginning with domain | ||
|
||
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. | ||
|
||
## Usage | ||
|
||
Include usage examples for common use cases in the **Usage** section. Show your | ||
users how to use your module to solve problems, and be sure to include code | ||
examples. Include three to five examples of the most important or common tasks a | ||
user can accomplish with your module. Show users how to accomplish more complex | ||
tasks that involve different types, classes, and functions working in tandem. | ||
Parses `trusted[certname]` fact for site information. | ||
|
||
## Reference | ||
|
||
This section is deprecated. Instead, add reference information to your code as | ||
Puppet Strings comments, and then use Strings to generate a REFERENCE.md in your | ||
module. For details on how to add code comments and generate documentation with | ||
Strings, see the [Puppet Strings documentation][2] and [style guide][3]. | ||
|
||
If you aren't ready to use Strings yet, manually create a REFERENCE.md in the | ||
root of your module directory and list out each of your module's classes, | ||
defined types, facts, functions, Puppet tasks, task plans, and resource types | ||
and providers, along with the parameters for each. | ||
|
||
For each element (class, defined type, function, and so on), list: | ||
|
||
* 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. | ||
|
||
For example: | ||
## Example | ||
|
||
In your main manifest `site.pp`: | ||
```puppet | ||
$customer = domain::customer() | ||
$site = domain::site() | ||
``` | ||
### `pet::cat` | ||
#### Parameters | ||
##### `meow` | ||
Enables vocalization in your cat. Valid options: 'string'. | ||
|
||
Default: 'medium-loud'. | ||
You can then use the current customer in your `heira.yaml`: | ||
```yaml | ||
hierarchy: | ||
- name: "Eyaml backend" | ||
lookup_key: eyaml_lookup_key | ||
paths: | ||
- "%{customer}/%{site}/%{trusted.hostname}.yaml" | ||
- "%{customer}/%{site}.yaml" | ||
- "%{customer}/common.yaml" | ||
- "%{facts.architecture}.yaml" | ||
- "common.yaml" | ||
``` | ||
|
||
## Limitations | ||
|
||
In the Limitations section, list any incompatibilities, known issues, or other | ||
warnings. | ||
|
||
## Development | ||
|
||
In the Development section, tell other users the ground rules for contributing | ||
to your project and how they should submit their work. | ||
|
||
## Release Notes/Contributors/Etc. **Optional** | ||
|
||
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. | ||
|
||
[1]: https://puppet.com/docs/pdk/latest/pdk_generating_modules.html | ||
[2]: https://puppet.com/docs/puppet/latest/puppet_strings.html | ||
[3]: https://puppet.com/docs/puppet/latest/puppet_strings_style.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,9 @@ | |
"author": "[email protected]", | ||
"summary": "", | ||
"license": "MIT", | ||
"source": "", | ||
"source": "https://github.com/mindhivenz/puppet-domain.git", | ||
"project_page": "https://github.com/mindhivenz/puppet-domain", | ||
"issues_url": "https://github.com/mindhivenz/puppet-domain/issues", | ||
"dependencies": [ | ||
|
||
], | ||
|