{"action":"created","issue":{"url":"https://api.github.com/repos/johanek/johanek-redmine/issues/44","labels_url":"https://api.github.com/repos/johanek/johanek-redmine/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/johanek/johanek-redmine/issues/44/comments","events_url":"https://api.github.com/repos/johanek/johanek-redmine/issues/44/events","html_url":"https://github.com/johanek/johanek-redmine/pull/44","id":58963267,"number":44,"title":"Set default webroot to apache docroot","user":{"login":"UnrealQuester","id":3252092,"avatar_url":"https://avatars.githubusercontent.com/u/3252092?v=3","gravatar_id":"","url":"https://api.github.com/users/UnrealQuester","html_url":"https://github.com/UnrealQuester","followers_url":"https://api.github.com/users/UnrealQuester/followers","following_url":"https://api.github.com/users/UnrealQuester/following{/other_user}","gists_url":"https://api.github.com/users/UnrealQuester/gists{/gist_id}","starred_url":"https://api.github.com/users/UnrealQuester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UnrealQuester/subscriptions","organizations_url":"https://api.github.com/users/UnrealQuester/orgs","repos_url":"https://api.github.com/users/UnrealQuester/repos","events_url":"https://api.github.com/users/UnrealQuester/events{/privacy}","received_events_url":"https://api.github.com/users/UnrealQuester/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/johanek/johanek-redmine/labels/make%20it%20work%20by%20default","name":"make it work by default","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/johanek/johanek-redmine/milestones/2","html_url":"https://github.com/johanek/johanek-redmine/milestones/2.2","labels_url":"https://api.github.com/repos/johanek/johanek-redmine/milestones/2/labels","id":983153,"number":2,"title":"2.2","description":"","creator":{"login":"UnrealQuester","id":3252092,"avatar_url":"https://avatars.githubusercontent.com/u/3252092?v=3","gravatar_id":"","url":"https://api.github.com/users/UnrealQuester","html_url":"https://github.com/UnrealQuester","followers_url":"https://api.github.com/users/UnrealQuester/followers","following_url":"https://api.github.com/users/UnrealQuester/following{/other_user}","gists_url":"https://api.github.com/users/UnrealQuester/gists{/gist_id}","starred_url":"https://api.github.com/users/UnrealQuester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UnrealQuester/subscriptions","organizations_url":"https://api.github.com/users/UnrealQuester/orgs","repos_url":"https://api.github.com/users/UnrealQuester/repos","events_url":"https://api.github.com/users/UnrealQuester/events{/privacy}","received_events_url":"https://api.github.com/users/UnrealQuester/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":1,"state":"open","created_at":"2015-02-17T16:31:35Z","updated_at":"2015-02-28T16:17:31Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-02-25T20:22:43Z","updated_at":"2015-02-28T16:51:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/johanek/johanek-redmine/pulls/44","html_url":"https://github.com/johanek/johanek-redmine/pull/44","diff_url":"https://github.com/johanek/johanek-redmine/pull/44.diff","patch_url":"https://github.com/johanek/johanek-redmine/pull/44.patch"},"body":"The default webroot /var/www/html/redmine can only be created if the\r\nparent directory exists. This is not the case for debian based systems\r\nwhere the default docroot is /var/www and not /var/www/html. Taken the\r\ndocroot directly from apache ensures that the directory exists."},"comment":{"url":"https://api.github.com/repos/johanek/johanek-redmine/issues/comments/76534010","html_url":"https://github.com/johanek/johanek-redmine/pull/44#issuecomment-76534010","issue_url":"https://api.github.com/repos/johanek/johanek-redmine/issues/44","id":76534010,"user":{"login":"UnrealQuester","id":3252092,"avatar_url":"https://avatars.githubusercontent.com/u/3252092?v=3","gravatar_id":"","url":"https://api.github.com/users/UnrealQuester","html_url":"https://github.com/UnrealQuester","followers_url":"https://api.github.com/users/UnrealQuester/followers","following_url":"https://api.github.com/users/UnrealQuester/following{/other_user}","gists_url":"https://api.github.com/users/UnrealQuester/gists{/gist_id}","starred_url":"https://api.github.com/users/UnrealQuester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UnrealQuester/subscriptions","organizations_url":"https://api.github.com/users/UnrealQuester/orgs","repos_url":"https://api.github.com/users/UnrealQuester/repos","events_url":"https://api.github.com/users/UnrealQuester/events{/privacy}","received_events_url":"https://api.github.com/users/UnrealQuester/received_events","type":"User","site_admin":false},"created_at":"2015-02-28T16:51:11Z","updated_at":"2015-02-28T16:51:11Z","body":"As long as the user has declared his apache class *before* redmine, the value will be set. Catalog parse order is important here. Thankfully, puppet will display a helpful error message in this case. The only way to make it work so that the user can declare apache after redmine is to set webroot to undef and add extra logic to redmine::params. This will get pretty ugly as we would also need a new variable like real_webroot that needs to be set and used everywhere in place of webroot."}}