Left: | ||
Right: |
LEFT | RIGHT |
---|---|
1 # == Class: adblockplus::log::master | 1 # == Class: adblockplus::log::master |
2 # | 2 # |
3 # A server setup to collect and pre-process (i.e. anonymize and combine) | 3 # A server setup to collect and pre-process (i.e. anonymize and combine) |
4 # log files using Logstash (https://logstash.net/) pipelines. | 4 # log files using Logstash (https://logstash.net/) pipelines. |
5 # | 5 # |
6 # === Parameters: | 6 # === Parameters: |
7 # | 7 # |
8 # [*uplinks*] | 8 # [*uplinks*] |
9 # A hash of $name => $parameters resembling the servers registry within | 9 # A hash of $name => $parameters resembling the servers registry within |
10 # file modules/private/hiera/hosts.yaml, which is used by default. | 10 # file modules/private/hiera/hosts.yaml, which is used by default. |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
63 owner => 'root', | 63 owner => 'root', |
64 require => [ | 64 require => [ |
65 File[$adblockplus::log::directory], | 65 File[$adblockplus::log::directory], |
66 Package['logstash'], | 66 Package['logstash'], |
67 ], | 67 ], |
68 } | 68 } |
69 | 69 |
70 # The Python script dispatching incoming logs | 70 # The Python script dispatching incoming logs |
71 file {$import_script: | 71 file {$import_script: |
72 ensure => 'present', | 72 ensure => 'present', |
73 group => $adblockplus::log::user, | |
Fred
2016/01/07 15:19:16
Shouldn't this be $adblockplus::log::group?
mathias
2016/01/14 15:03:52
Actually it's obsolete. A fragment from an earlier
| |
74 mode => 0755, | 73 mode => 0755, |
75 require => User[$adblockplus::log::user], | 74 require => User[$adblockplus::log::user], |
76 source => 'puppet:///modules/adblockplus/log/import.py', | 75 source => 'puppet:///modules/adblockplus/log/import.py', |
77 } | 76 } |
78 | 77 |
79 # See modules/adblockplus/manifests/log/uplink.pp | 78 # See modules/adblockplus/manifests/log/uplink.pp |
80 create_resources('adblockplus::log::uplink', $uplinks) | 79 create_resources('adblockplus::log::uplink', $uplinks) |
81 } | 80 } |
LEFT | RIGHT |