Skip to content

Commit

Permalink
Some clarifications and repo class example
Browse files Browse the repository at this point in the history
  • Loading branch information
alvagante committed Oct 23, 2013
1 parent 21ef4fb commit 2dbe630
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
16 changes: 11 additions & 5 deletions Parameters_List.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ mysql::install
```
In case of doubt, already established namings and common sense are the rule.

When a module has subclasses, current standard de-facto names apply:
Resources can be managed in the main class and/or in subclasses.

When a module has subclasses current standard de-facto names apply:

**class::params** - (May) contain modules internal parameters and defaults

Expand All @@ -44,15 +46,18 @@ When a module has subclasses, current standard de-facto names apply:

**class::config** - Manages the configuration of 'class'

Example:
**class::repo** - Manages eventual extra repos needed for the class

Examples:

```puppet
postfix::params
postfix::client
postfix::server
postfix::install
openssh::client
openssh::server
elasticsearch::install
postfix::service
postfix::config
mongodb::repo
```
In the cases that 'class' has different sub-applications that can be configured separatedly or different daemons for each of its parts, subdirectories and subclass might be used to represent each part.

Expand Down Expand Up @@ -257,6 +262,7 @@ install_class
my_class
monitor_class
firewall_class
repo_class
```

### Hash of resources to pass to create_resource
Expand Down
1 change: 0 additions & 1 deletion README_Parameters
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Naming Standards for Parameters/Hiera names
DRAFT 0.0.1

Usage patterns: With a class declaration
class { $module:
Expand Down

0 comments on commit 2dbe630

Please sign in to comment.