{"action":"created","issue":{"url":"https://api.github.com/repos/sous-chefs/apache2/issues/458","repository_url":"https://api.github.com/repos/sous-chefs/apache2","labels_url":"https://api.github.com/repos/sous-chefs/apache2/issues/458/labels{/name}","comments_url":"https://api.github.com/repos/sous-chefs/apache2/issues/458/comments","events_url":"https://api.github.com/repos/sous-chefs/apache2/issues/458/events","html_url":"https://github.com/sous-chefs/apache2/issues/458","id":194387371,"node_id":"MDU6SXNzdWUxOTQzODczNzE=","number":458,"title":"apache_module should not overwrite load files","user":{"login":"375gnu","id":1612688,"node_id":"MDQ6VXNlcjE2MTI2ODg=","avatar_url":"https://avatars0.githubusercontent.com/u/1612688?v=4","gravatar_id":"","url":"https://api.github.com/users/375gnu","html_url":"https://github.com/375gnu","followers_url":"https://api.github.com/users/375gnu/followers","following_url":"https://api.github.com/users/375gnu/following{/other_user}","gists_url":"https://api.github.com/users/375gnu/gists{/gist_id}","starred_url":"https://api.github.com/users/375gnu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/375gnu/subscriptions","organizations_url":"https://api.github.com/users/375gnu/orgs","repos_url":"https://api.github.com/users/375gnu/repos","events_url":"https://api.github.com/users/375gnu/events{/privacy}","received_events_url":"https://api.github.com/users/375gnu/received_events","type":"User","site_admin":false},"labels":[{"id":718307727,"node_id":"MDU6TGFiZWw3MTgzMDc3Mjc=","url":"https://api.github.com/repos/sous-chefs/apache2/labels/Status:%20Pending%20Contributor","name":"Status: Pending Contributor","color":"191919","default":false},{"id":718307723,"node_id":"MDU6TGFiZWw3MTgzMDc3MjM=","url":"https://api.github.com/repos/sous-chefs/apache2/labels/Type:%20Bug","name":"Type: Bug","color":"b60205","default":false}],"state":"open","locked":false,"assignee":{"login":"damacus","id":40786,"node_id":"MDQ6VXNlcjQwNzg2","avatar_url":"https://avatars1.githubusercontent.com/u/40786?v=4","gravatar_id":"","url":"https://api.github.com/users/damacus","html_url":"https://github.com/damacus","followers_url":"https://api.github.com/users/damacus/followers","following_url":"https://api.github.com/users/damacus/following{/other_user}","gists_url":"https://api.github.com/users/damacus/gists{/gist_id}","starred_url":"https://api.github.com/users/damacus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damacus/subscriptions","organizations_url":"https://api.github.com/users/damacus/orgs","repos_url":"https://api.github.com/users/damacus/repos","events_url":"https://api.github.com/users/damacus/events{/privacy}","received_events_url":"https://api.github.com/users/damacus/received_events","type":"User","site_admin":false},"assignees":[{"login":"damacus","id":40786,"node_id":"MDQ6VXNlcjQwNzg2","avatar_url":"https://avatars1.githubusercontent.com/u/40786?v=4","gravatar_id":"","url":"https://api.github.com/users/damacus","html_url":"https://github.com/damacus","followers_url":"https://api.github.com/users/damacus/followers","following_url":"https://api.github.com/users/damacus/following{/other_user}","gists_url":"https://api.github.com/users/damacus/gists{/gist_id}","starred_url":"https://api.github.com/users/damacus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damacus/subscriptions","organizations_url":"https://api.github.com/users/damacus/orgs","repos_url":"https://api.github.com/users/damacus/repos","events_url":"https://api.github.com/users/damacus/events{/privacy}","received_events_url":"https://api.github.com/users/damacus/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2016-12-08T16:51:52Z","updated_at":"2018-11-26T20:11:24Z","closed_at":null,"author_association":"NONE","body":"### Cookbook version\r\n3.2.2\r\n\r\n### Chef-client version\r\n12.16.42\r\n\r\n### Platform Details\r\nUbuntu 14.04\r\n\r\n### Scenario:\r\nI want to install and enable mod_security2.\r\n\r\n### Steps to Reproduce:\r\npackage %w[libapache2-mod-security2 modsecurity-crs]\r\napache_module 'security2'\r\n\r\n### Expected Result:\r\nmod_security2.load provided with package to be used.\r\n\r\n### Actual Result:\r\nmod_security2.load is overwritten with incorrect version:\r\n```\r\n         * file[/etc/apache2/mods-available/security2.load] action create\r\n           - update content in file /etc/apache2/mods-available/security2.load from 8a3b11 to 078ef6\r\n           --- /etc/apache2/mods-available/security2.load\t2014-01-16 07:53:00.000000000 +0000\r\n           +++ /etc/apache2/mods-available/.chef-security220161208-13005-tf2t91.load\t2016-12-08 16:22:17.995719528 +0000\r\n           @@ -1,4 +1,2 @@\r\n           -# Depends: unique_id\r\n           -LoadFile libxml2.so.2\r\n            LoadModule security2_module /usr/lib/apache2/modules/mod_security2.so\r\n```\r\n\r\nSo \r\n```\r\n  file \"#{node['apache']['dir']}/mods-available/#{params[:name]}.load\" do\r\n    content \"LoadModule #{params[:identifier]} #{params[:module_path]}\\n\"\r\n    mode '0644'\r\n  end\r\n```\r\nshould check for *.load file presence."},"comment":{"url":"https://api.github.com/repos/sous-chefs/apache2/issues/comments/441780932","html_url":"https://github.com/sous-chefs/apache2/issues/458#issuecomment-441780932","issue_url":"https://api.github.com/repos/sous-chefs/apache2/issues/458","id":441780932,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTc4MDkzMg==","user":{"login":"josephholsten","id":7495,"node_id":"MDQ6VXNlcjc0OTU=","avatar_url":"https://avatars3.githubusercontent.com/u/7495?v=4","gravatar_id":"","url":"https://api.github.com/users/josephholsten","html_url":"https://github.com/josephholsten","followers_url":"https://api.github.com/users/josephholsten/followers","following_url":"https://api.github.com/users/josephholsten/following{/other_user}","gists_url":"https://api.github.com/users/josephholsten/gists{/gist_id}","starred_url":"https://api.github.com/users/josephholsten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josephholsten/subscriptions","organizations_url":"https://api.github.com/users/josephholsten/orgs","repos_url":"https://api.github.com/users/josephholsten/repos","events_url":"https://api.github.com/users/josephholsten/events{/privacy}","received_events_url":"https://api.github.com/users/josephholsten/received_events","type":"User","site_admin":false},"created_at":"2018-11-26T20:11:24Z","updated_at":"2018-11-26T20:11:24Z","author_association":"MEMBER","body":"it would be awesome to have full-on documentation pages instead of a readme the size of war & peace. macos cookbook has a good example."}}
{"actor":{"display_login":"josephholsten"}}