dodevops / puppet-graylogcollectorsidecar

Puppet Module, that installs and configures the graylog collector sidecar
https://forge.puppet.com/dodevops/graylogcollectorsidecar
MIT License
0 stars 6 forks source link

Please add support for CentOS 7 #1

Closed sentinel159868 closed 7 years ago

sentinel159868 commented 7 years ago

Hi dploeger,

great module, but...... can you please add support fpr CentOS 7????

Thx and regards

dploeger commented 7 years ago

Here you are. 😉 The test suite includes centos 7 tests, so it should work, but please add a comment, if it works on your site.

sentinel159868 commented 7 years ago

YAY! Thanks a lot! I will give you a feedback after i tested it. Thumb UP!

sentinel159868 commented 7 years ago

Hey dploeger,

i've tested it and get the following error:

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, Can not find a valid download URL for the release. at /etc/puppetlabs/code/environments/production/modules/githubreleases/manifests/download.pp:69:17 at /etc/puppetlabs/code/environments/production/modules/graylogcollectorsidecar/manifests/dist/redhat.pp:24 on node ....

dploeger commented 7 years ago

Please post your manifest or hiera snippet. The module can't find a download url for the version you requested.

Am 11. Mai 2017 um 18:29:38, sentinel159868 (notifications@github.com(mailto:notifications@github.com)) schrieb:

Hey dploeger,

i've tested it and get the following error:

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, Can not find a valid download URL for the release. at /etc/puppetlabs/code/environments/production/modules/githubreleases/manifests/download.pp:69:17 at /etc/puppetlabs/code/environments/production/modules/graylogcollectorsidecar/manifests/dist/redhat.pp:24 on node ....

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub(https://github.com/dodevops/puppet-graylogcollectorsidecar/issues/1#issuecomment-300844188), or mute the thread(https://github.com/notifications/unsubscribe-auth/AAMavaasc4pMCZDpr67MROb46MEN9qtSks5r4zdygaJpZM4NUPFl).

sentinel159868 commented 7 years ago

graylogcollectorsidecar::dist::redhat: api_url: http://log01..................int:12900/ backends:

sentinel159868 commented 7 years ago

ARGH.... my fault, sorry. the version number was the issue...... now runs puppet smooth.... but nothing changes in /etc/graylog/collector-sidecar/collector_sidecar.yml

dploeger commented 7 years ago

Please use a release from the collector sidecar releases page (https://github.com/Graylog2/collector-sidecar/releases). The module will ask the GitHub API for the right os package download url.

I suppose, you meant version 0.1.1.

Am 11. Mai 2017 um 18:54:16, sentinel159868 (notifications@github.com(mailto:notifications@github.com)) schrieb:

graylogcollectorsidecar::dist::redhat: api_url: http://log01..................int:12900/ backends:

  • name: nxlog enabled: true binary_path: "/usr/bin/nxlog" configuration_path: "/etc/graylog/collector-sidecar/generated/nxlog.conf" collector_id: file:/etc/graylog/collector-sidecar/collector-id list_log_files: true log_max_age: '604800' log_path: "/var/log/graylog/collector-sidecar" log_rotation_time: '86400' node_id: api01.................int send_status: true tags:
  • nxlog
  • linux tls_skip_verify: true update_interval: '30' version: 0.1.1-1

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub(https://github.com/dodevops/puppet-graylogcollectorsidecar/issues/1#issuecomment-300850875), or mute the thread(https://github.com/notifications/unsubscribe-auth/AAMavVvT2sletqAFH-TRdYkUbcsMRUM9ks5r4z04gaJpZM4NUPFl).

sentinel159868 commented 7 years ago

Thx Dennis.....

The Puppet Agent runs without erros. But now i'm facing the problem that nothing happens :-/ ? Where's my fault? (Sorry, but i'm new in the puppet-world)

dploeger commented 7 years ago

Did you do the hiera_include('classes') stuff in your manifest and add the graylogcollectorsidecar class to the classes-array in your yaml-file?

sentinel159868 commented 7 years ago

I'm configuring this via foreman. Now i've changed to the main class graylogcollectorsidecar. But also: The configuration doesn't change (i think i've to buy a puppet-book :-D) My yaml file looks for now so:

graylogcollectorsidecar: api_url: http://log01.................int:12900/ backends:

dploeger commented 7 years ago

Perhaps ;-)

The test suite worked for centos 7, so I'm not quite sure, where the problem on your site is. I will look into this some more.

sentinel159868 commented 7 years ago

Thx Dennis!

sentinel159868 commented 7 years ago

Found it! The problem was that the collector was already installed. After i've removed it manually it worked....

dploeger commented 7 years ago

Ah, okay. Great. Thanks.