{"action":"created","issue":{"url":"https://api.github.com/repos/pcfens/puppet-filebeat/issues/4","labels_url":"https://api.github.com/repos/pcfens/puppet-filebeat/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/pcfens/puppet-filebeat/issues/4/comments","events_url":"https://api.github.com/repos/pcfens/puppet-filebeat/issues/4/events","html_url":"https://github.com/pcfens/puppet-filebeat/issues/4","id":124248096,"number":4,"title":"class instantiation failing","user":{"login":"harshal-shah","id":16479600,"avatar_url":"https://avatars.githubusercontent.com/u/16479600?v=3","gravatar_id":"","url":"https://api.github.com/users/harshal-shah","html_url":"https://github.com/harshal-shah","followers_url":"https://api.github.com/users/harshal-shah/followers","following_url":"https://api.github.com/users/harshal-shah/following{/other_user}","gists_url":"https://api.github.com/users/harshal-shah/gists{/gist_id}","starred_url":"https://api.github.com/users/harshal-shah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harshal-shah/subscriptions","organizations_url":"https://api.github.com/users/harshal-shah/orgs","repos_url":"https://api.github.com/users/harshal-shah/repos","events_url":"https://api.github.com/users/harshal-shah/events{/privacy}","received_events_url":"https://api.github.com/users/harshal-shah/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-12-29T18:08:47Z","updated_at":"2015-12-30T19:40:10Z","closed_at":null,"body":"Hi, \r\nI downloaded the module for filebeat and tried the default class declaration as below: \r\n\r\nnode 'fbes1.hs.com'{\r\n\tinclude filebeat\r\n\tclass { 'filebeat':\r\n  outputs => {\r\n    'logstash' => {\r\n     'hosts' => ['lsredis.hs.com:5044',],\r\n     'loadbalance' => true,\r\n    },\r\n  },\r\n}\r\n}\r\n\r\nbut the class declaration fails with below error: \r\n\r\n[root@fbes1 ~]# puppet agent -t --noop\r\nInfo: Retrieving pluginfacts\r\nInfo: Retrieving plugin\r\nInfo: Loading facts\r\nError: Could not retrieve catalog from remote server: Error 400 on SERVER: compile error\r\n/etc/puppet/modules/filebeat/templates/filebeat3.yml.erb:6: syntax error, unexpected ')'\r\n) ).to_s)\r\n ^\r\n/etc/puppet/modules/filebeat/templates/filebeat3.yml.erb:7: syntax error, unexpected tIDENTIFIER, expecting ')'\r\n_erbout\r\n       ^\r\nWarning: Not using cache on failed catalog\r\nError: Could not retrieve catalog; skipping run\r\n\r\n\r\n\r\n\r\nmaybe I'm doing something wrong. Please let me know if this needs any fixing."},"comment":{"url":"https://api.github.com/repos/pcfens/puppet-filebeat/issues/comments/168062148","html_url":"https://github.com/pcfens/puppet-filebeat/issues/4#issuecomment-168062148","issue_url":"https://api.github.com/repos/pcfens/puppet-filebeat/issues/4","id":168062148,"user":{"login":"pcfens","id":580770,"avatar_url":"https://avatars.githubusercontent.com/u/580770?v=3","gravatar_id":"","url":"https://api.github.com/users/pcfens","html_url":"https://github.com/pcfens","followers_url":"https://api.github.com/users/pcfens/followers","following_url":"https://api.github.com/users/pcfens/following{/other_user}","gists_url":"https://api.github.com/users/pcfens/gists{/gist_id}","starred_url":"https://api.github.com/users/pcfens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcfens/subscriptions","organizations_url":"https://api.github.com/users/pcfens/orgs","repos_url":"https://api.github.com/users/pcfens/repos","events_url":"https://api.github.com/users/pcfens/events{/privacy}","received_events_url":"https://api.github.com/users/pcfens/received_events","type":"User","site_admin":false},"created_at":"2015-12-30T19:40:10Z","updated_at":"2015-12-30T19:40:10Z","body":"It looks like the default ruby version shipped with RHEL 6 didn't get along with the template, and that the latest version of filebeat doesn't get upset with the normal yaml file header (I think it did when I first wrote this, which is all gsub took care of.\r\n\r\nCould you all try the fix in the [ruby187 branch](https://github.com/pcfens/puppet-filebeat/tree/ruby187) to see if it works out. If it does I'll test it in my primarily Ubuntu/Debian environment and roll a new release."}}