{"action":"created","issue":{"url":"https://api.github.com/repos/thias/puppet-nagios/issues/71","labels_url":"https://api.github.com/repos/thias/puppet-nagios/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/thias/puppet-nagios/issues/71/comments","events_url":"https://api.github.com/repos/thias/puppet-nagios/issues/71/events","html_url":"https://github.com/thias/puppet-nagios/pull/71","id":114704885,"number":71,"title":"make optional auth block of httpd-nagios.conf","user":{"login":"vchepkov","id":995234,"avatar_url":"https://avatars.githubusercontent.com/u/995234?v=3","gravatar_id":"","url":"https://api.github.com/users/vchepkov","html_url":"https://github.com/vchepkov","followers_url":"https://api.github.com/users/vchepkov/followers","following_url":"https://api.github.com/users/vchepkov/following{/other_user}","gists_url":"https://api.github.com/users/vchepkov/gists{/gist_id}","starred_url":"https://api.github.com/users/vchepkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vchepkov/subscriptions","organizations_url":"https://api.github.com/users/vchepkov/orgs","repos_url":"https://api.github.com/users/vchepkov/repos","events_url":"https://api.github.com/users/vchepkov/events{/privacy}","received_events_url":"https://api.github.com/users/vchepkov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"thias","id":787766,"avatar_url":"https://avatars.githubusercontent.com/u/787766?v=3","gravatar_id":"","url":"https://api.github.com/users/thias","html_url":"https://github.com/thias","followers_url":"https://api.github.com/users/thias/followers","following_url":"https://api.github.com/users/thias/following{/other_user}","gists_url":"https://api.github.com/users/thias/gists{/gist_id}","starred_url":"https://api.github.com/users/thias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thias/subscriptions","organizations_url":"https://api.github.com/users/thias/orgs","repos_url":"https://api.github.com/users/thias/repos","events_url":"https://api.github.com/users/thias/events{/privacy}","received_events_url":"https://api.github.com/users/thias/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-11-02T23:06:22Z","updated_at":"2015-11-16T23:00:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/thias/puppet-nagios/pulls/71","html_url":"https://github.com/thias/puppet-nagios/pull/71","diff_url":"https://github.com/thias/puppet-nagios/pull/71.diff","patch_url":"https://github.com/thias/puppet-nagios/pull/71.patch"},"body":"apache_httpd_htpasswd_source is optional in server.pp, this change makes block depending\r\non it optional as well"},"comment":{"url":"https://api.github.com/repos/thias/puppet-nagios/issues/comments/157202200","html_url":"https://github.com/thias/puppet-nagios/pull/71#issuecomment-157202200","issue_url":"https://api.github.com/repos/thias/puppet-nagios/issues/71","id":157202200,"user":{"login":"vchepkov","id":995234,"avatar_url":"https://avatars.githubusercontent.com/u/995234?v=3","gravatar_id":"","url":"https://api.github.com/users/vchepkov","html_url":"https://github.com/vchepkov","followers_url":"https://api.github.com/users/vchepkov/followers","following_url":"https://api.github.com/users/vchepkov/following{/other_user}","gists_url":"https://api.github.com/users/vchepkov/gists{/gist_id}","starred_url":"https://api.github.com/users/vchepkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vchepkov/subscriptions","organizations_url":"https://api.github.com/users/vchepkov/orgs","repos_url":"https://api.github.com/users/vchepkov/repos","events_url":"https://api.github.com/users/vchepkov/events{/privacy}","received_events_url":"https://api.github.com/users/vchepkov/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T23:00:39Z","updated_at":"2015-11-16T23:00:39Z","body":"oh, intersting, I can see how it can be useful, if the same file shared between different modules.\r\nHow about we introduce two variables instead?\r\n\r\napache_httpd_htpasswd_path       = '/etc/nagios/.htpasswd' \r\napache_httpd_htpasswd_manage = false\r\n\r\nFirst one would determine location of the file, since some people would have it in /etc/httpd/conf/, for example. And by setting it to undef, one can disable auth block\r\n\r\nsecond one will determine if we want to manage this file by this module.\r\n\r\n\r\n\r\n\r\n"}}