| OLD | NEW |
| 1 # == Class: adblockplus::log | 1 # == Class: adblockplus::log |
| 2 # | 2 # |
| 3 # Default root namespace for integrating custom logging entities. | 3 # Default root namespace for integrating custom logging entities. |
| 4 # | 4 # |
| 5 # === Parameters: | 5 # === Parameters: |
| 6 # | 6 # |
| 7 # [*ensure*] | 7 # [*ensure*] |
| 8 # Whether associated resources are ment to be 'present' or 'absent'. | 8 # Whether associated resources are ment to be 'present' or 'absent'. |
| 9 # | 9 # |
| 10 # [*name*] | 10 # [*name*] |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 include stdlib | 40 include stdlib |
| 41 | 41 |
| 42 # Used as internal constants within adblockplus::log::* resources | 42 # Used as internal constants within adblockplus::log::* resources |
| 43 $directory = "$adblockplus::directory/log/data" | 43 $directory = "$adblockplus::directory/log/data" |
| 44 $user = 'log' | 44 $user = 'log' |
| 45 | 45 |
| 46 # Required on both log generating and log processing hosts | 46 # Required on both log generating and log processing hosts |
| 47 class {'fluent': | 47 class {'fluent': |
| 48 package => { | 48 package => { |
| 49 ensure => $ensure ? { | 49 ensure => $ensure ? { |
| 50 'present' => '2.3.1-0', | 50 'present' => '2.3.*', |
| 51 default => 'absent', | 51 default => 'absent', |
| 52 }, | 52 }, |
| 53 provider => 'apt', | 53 provider => 'apt', |
| 54 }, | 54 }, |
| 55 user => { | 55 user => { |
| 56 groups => ['adm'], | 56 groups => ['adm'], |
| 57 shell => '/bin/sh', | 57 shell => '/bin/sh', |
| 58 }, | 58 }, |
| 59 } | 59 } |
| 60 | 60 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 90 User['fluent'], | 90 User['fluent'], |
| 91 ], | 91 ], |
| 92 } | 92 } |
| 93 | 93 |
| 94 # See modules/adblockplus/manifests/log/rotation.pp | 94 # See modules/adblockplus/manifests/log/rotation.pp |
| 95 create_resources('adblockplus::log::rotation', $rotations) | 95 create_resources('adblockplus::log::rotation', $rotations) |
| 96 | 96 |
| 97 # See modules/adblockplus/manifests/log/tracker.pp | 97 # See modules/adblockplus/manifests/log/tracker.pp |
| 98 create_resources('adblockplus::log::tracker', $trackers) | 98 create_resources('adblockplus::log::tracker', $trackers) |
| 99 } | 99 } |
| OLD | NEW |