- Mastering Puppet 5
- Ryan Russell Yates Jason Southgate
- 87字
- 2021-07-16 17:46:07
Providing sensible, well-thought-out parameter defaults
If the vast majority of the people using your module will use the module with a certain parameter set, then of course it makes sense to set that parameter with a default.
Carefully think through how your module is used, and put yourself in the position of a nonexpert user of your own module.
Present the available module parameters in a sensible order, with more often accessed settings before least accessed settings, as opposed to some arbitrary order, such as alphabetical order.