Skip to content
This repository was archived by the owner on Aug 26, 2022. It is now read-only.

Coding Standards

sfloess edited this page Jan 2, 2011 · 10 revisions

Coding Standards

This document describes the coding standards used for all Puppet modules.

Naming

Variables

Modules

All variables for a module should be denoted by the module name, an underscore and the variable name in lower camel case: [module name][additional identifier][variable name]. Examples:

  • service_broadcastAddress
  • service_client_dnsServer

Templates

Computational

Templates that compute a value

Module Layout

Common

Applications

Services

Defining Variables

YAML

Variable