{"action":"created","issue":{"url":"https://api.github.com/repos/pcfens/puppet-filebeat/issues/20","repository_url":"https://api.github.com/repos/pcfens/puppet-filebeat","labels_url":"https://api.github.com/repos/pcfens/puppet-filebeat/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/pcfens/puppet-filebeat/issues/20/comments","events_url":"https://api.github.com/repos/pcfens/puppet-filebeat/issues/20/events","html_url":"https://github.com/pcfens/puppet-filebeat/issues/20","id":146003034,"number":20,"title":"to_yaml changes everytime","user":{"login":"liuyu","id":104815,"avatar_url":"https://avatars.githubusercontent.com/u/104815?v=3","gravatar_id":"","url":"https://api.github.com/users/liuyu","html_url":"https://github.com/liuyu","followers_url":"https://api.github.com/users/liuyu/followers","following_url":"https://api.github.com/users/liuyu/following{/other_user}","gists_url":"https://api.github.com/users/liuyu/gists{/gist_id}","starred_url":"https://api.github.com/users/liuyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liuyu/subscriptions","organizations_url":"https://api.github.com/users/liuyu/orgs","repos_url":"https://api.github.com/users/liuyu/repos","events_url":"https://api.github.com/users/liuyu/events{/privacy}","received_events_url":"https://api.github.com/users/liuyu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pcfens/puppet-filebeat/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2016-04-05T14:14:39Z","updated_at":"2016-04-08T15:47:26Z","closed_at":null,"body":"Hello, I install filebeat.\r\n\r\n Although generating facts.yaml dynamically is definitely something i want  ,but Puppet will change it almost everytime . \r\n\r\nI search [one-blog](http://tech-pills.gabrielsambarino.com/puppet-managed-facts-yaml-changes-everytime/)  to fix it .  I try to change `<%= @filebeat_config.to_yaml() %>` to `<%= @filebeat_config.to_yaml.sort() %>`  and any parameters is did't work . \r\n\r\nsome many people encounter this problem. say: \"I have the same problem and this is not a bug in the module itself. In the routes.yaml.erb template there's a call to the method 'to_yaml', which in Ruby 1.8.7 is not stable which means the order of the dumped lines is not always the same. In Ruby >=1.9 this is no longer the case.\r\nUnless the module developer's do not want the replace the call to_yaml with something dirty and very hacky for us Ruby 1.8.7 users, we will have to live with this, I'm afraid.\"\r\n\r\nMy env ：\r\n```bash\r\n# ruby --version\r\nruby 1.8.7 (2012-02-08 patchlevel 358) [x86_64-linux]\r\n\r\n# puppet --version\r\n3.7.3\r\n```"},"comment":{"url":"https://api.github.com/repos/pcfens/puppet-filebeat/issues/comments/207488698","html_url":"https://github.com/pcfens/puppet-filebeat/issues/20#issuecomment-207488698","issue_url":"https://api.github.com/repos/pcfens/puppet-filebeat/issues/20","id":207488698,"user":{"login":"blysik","id":58610,"avatar_url":"https://avatars.githubusercontent.com/u/58610?v=3","gravatar_id":"","url":"https://api.github.com/users/blysik","html_url":"https://github.com/blysik","followers_url":"https://api.github.com/users/blysik/followers","following_url":"https://api.github.com/users/blysik/following{/other_user}","gists_url":"https://api.github.com/users/blysik/gists{/gist_id}","starred_url":"https://api.github.com/users/blysik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blysik/subscriptions","organizations_url":"https://api.github.com/users/blysik/orgs","repos_url":"https://api.github.com/users/blysik/repos","events_url":"https://api.github.com/users/blysik/events{/privacy}","received_events_url":"https://api.github.com/users/blysik/received_events","type":"User","site_admin":false},"created_at":"2016-04-08T15:47:26Z","updated_at":"2016-04-08T15:47:26Z","body":"I haven't actually tested the branch yet, just looked at it.    I'm still early in the investigation of moving from 'beaver' to 'filebeat'."}}