{"action":"created","issue":{"url":"https://api.github.com/repos/tylerwalts/puppet-jdk_oracle/issues/55","labels_url":"https://api.github.com/repos/tylerwalts/puppet-jdk_oracle/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/tylerwalts/puppet-jdk_oracle/issues/55/comments","events_url":"https://api.github.com/repos/tylerwalts/puppet-jdk_oracle/issues/55/events","html_url":"https://github.com/tylerwalts/puppet-jdk_oracle/pull/55","id":105764233,"number":55,"title":"make sure to configure the specified java to be the \"best\" version","user":{"login":"fraenki","id":909706,"avatar_url":"https://avatars.githubusercontent.com/u/909706?v=3","gravatar_id":"","url":"https://api.github.com/users/fraenki","html_url":"https://github.com/fraenki","followers_url":"https://api.github.com/users/fraenki/followers","following_url":"https://api.github.com/users/fraenki/following{/other_user}","gists_url":"https://api.github.com/users/fraenki/gists{/gist_id}","starred_url":"https://api.github.com/users/fraenki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fraenki/subscriptions","organizations_url":"https://api.github.com/users/fraenki/orgs","repos_url":"https://api.github.com/users/fraenki/repos","events_url":"https://api.github.com/users/fraenki/events{/privacy}","received_events_url":"https://api.github.com/users/fraenki/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-10T09:01:58Z","updated_at":"2015-09-10T19:39:42Z","closed_at":"2015-09-10T19:39:42Z","pull_request":{"url":"https://api.github.com/repos/tylerwalts/puppet-jdk_oracle/pulls/55","html_url":"https://github.com/tylerwalts/puppet-jdk_oracle/pull/55","diff_url":"https://github.com/tylerwalts/puppet-jdk_oracle/pull/55.diff","patch_url":"https://github.com/tylerwalts/puppet-jdk_oracle/pull/55.patch"},"body":"On Ubuntu 14.04 I've updated from Oracle JDK 1.8.0_51-b16 to JDK 1.8.0_60-b27. I had `$default_java=true` set and thus was expecting the module would change the default Java to the new version. \r\n\r\nApparently the module installed the new Java, but it failed to configure `update-alternatives` accordingly:\r\n\r\n```\r\n# update-alternatives --display java\r\njava - manual mode\r\n  link currently points to /data/jdk1.8.0_51/bin/java\r\n/data/jdk1.8.0_51/bin/java - priority 20000\r\n/data/jdk1.8.0_60/bin/java - priority 20000\r\nCurrent 'best' version is '/data/jdk1.8.0_51/bin/java'.\r\n```\r\nAs you can see, the \"best\" (and therefore symlinked) version is still 1.8.0_51-b16.\r\n\r\nThis PR addresses this and executes a `updates-alternatives --set` to actually activate the specified version."},"comment":{"url":"https://api.github.com/repos/tylerwalts/puppet-jdk_oracle/issues/comments/139356833","html_url":"https://github.com/tylerwalts/puppet-jdk_oracle/pull/55#issuecomment-139356833","issue_url":"https://api.github.com/repos/tylerwalts/puppet-jdk_oracle/issues/55","id":139356833,"user":{"login":"tylerwalts","id":346433,"avatar_url":"https://avatars.githubusercontent.com/u/346433?v=3","gravatar_id":"","url":"https://api.github.com/users/tylerwalts","html_url":"https://github.com/tylerwalts","followers_url":"https://api.github.com/users/tylerwalts/followers","following_url":"https://api.github.com/users/tylerwalts/following{/other_user}","gists_url":"https://api.github.com/users/tylerwalts/gists{/gist_id}","starred_url":"https://api.github.com/users/tylerwalts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tylerwalts/subscriptions","organizations_url":"https://api.github.com/users/tylerwalts/orgs","repos_url":"https://api.github.com/users/tylerwalts/repos","events_url":"https://api.github.com/users/tylerwalts/events{/privacy}","received_events_url":"https://api.github.com/users/tylerwalts/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T19:39:42Z","updated_at":"2015-09-10T19:39:42Z","body":"Thanks!"}}