Browse Source

Order of the class parameters is refactored

Order and intendation of those parameters are changed
to follow Puppet Style Guide recommendation [0].
Moreover, it will allow to an user to find much faster
a variable in a list of variables.

[0]. https://docs.puppetlabs.com/guides/style_guide.html

Change-Id: I4dd4727f94132ce066d42aa87a246dd39c13553e
Andrey Nikitin 3 years ago
parent
commit
1f6efd534c
1 changed files with 5 additions and 5 deletions
  1. 5
    5
      manifests/file.pp

+ 5
- 5
manifests/file.pp View File

@@ -3,11 +3,11 @@
3 3
 define logrotate::file (
4 4
   $log,
5 5
   $options,
6
-  $ensure=present,
7
-  $prerotate='undef',
8
-  $postrotate='undef',
9
-  $firstaction='undef',
10
-  $lastaction='undef',
6
+  $ensure       = present,
7
+  $firstaction  = 'undef',
8
+  $lastaction   = 'undef',
9
+  $postrotate   = 'undef',
10
+  $prerotate    = 'undef',
11 11
 ) {
12 12
 
13 13
   # $options should be an array containing 1 or more logrotate

Loading…
Cancel
Save