{"action":"created","issue":{"url":"https://api.github.com/repos/sunggun-yu/chef-mongodb3/issues/39","repository_url":"https://api.github.com/repos/sunggun-yu/chef-mongodb3","labels_url":"https://api.github.com/repos/sunggun-yu/chef-mongodb3/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/sunggun-yu/chef-mongodb3/issues/39/comments","events_url":"https://api.github.com/repos/sunggun-yu/chef-mongodb3/issues/39/events","html_url":"https://github.com/sunggun-yu/chef-mongodb3/pull/39","id":155488412,"number":39,"title":"Adding support for ubuntu 15.04 and 16.04","user":{"login":"mskurski","id":3276138,"avatar_url":"https://avatars.githubusercontent.com/u/3276138?v=3","gravatar_id":"","url":"https://api.github.com/users/mskurski","html_url":"https://github.com/mskurski","followers_url":"https://api.github.com/users/mskurski/followers","following_url":"https://api.github.com/users/mskurski/following{/other_user}","gists_url":"https://api.github.com/users/mskurski/gists{/gist_id}","starred_url":"https://api.github.com/users/mskurski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mskurski/subscriptions","organizations_url":"https://api.github.com/users/mskurski/orgs","repos_url":"https://api.github.com/users/mskurski/repos","events_url":"https://api.github.com/users/mskurski/events{/privacy}","received_events_url":"https://api.github.com/users/mskurski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-05-18T12:26:12Z","updated_at":"2016-07-31T08:41:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sunggun-yu/chef-mongodb3/pulls/39","html_url":"https://github.com/sunggun-yu/chef-mongodb3/pull/39","diff_url":"https://github.com/sunggun-yu/chef-mongodb3/pull/39.diff","patch_url":"https://github.com/sunggun-yu/chef-mongodb3/pull/39.patch"},"body":"There were few breaking changes in Ubuntu 15.04 and 16.04 which made this cookbook incompatible like:\r\n- different provider (they went back to systemd)\r\n- mongod service for ubuntu 16.04 needs some additional configuration\r\n\r\nI got some problems with running Ubuntu 16.04 on Vagrant machine (private network required by Vagrant doesn't work properly on official vagrant box for Ubuntu 16.04 and network interfaces names were also changed and Vagrant expects eth0/eth1) so just to simplify this process you can use below configuration:\r\n\r\n**Vagrantfile**\r\n```\r\n# this line should be commented or removed from your Vagrantfile\r\n#config.vm.host_name = 'your host'\r\n\r\nconfig.vm.box = \"geerlingguy/ubuntu1604\"\r\nconfig.vm.provision :shell, path: \"./bin/ubuntu_vm_fix.sh\"\r\n```\r\n\r\n**./bin/ubuntu_vm_fix.sh**\r\n```\r\n#!/usr/bin/env bash\r\n\r\n# https://github.com/mitchellh/vagrant/issues/7288\r\nif ! grep -q \"127.0.0.1 vagrant.local ubuntu-xenial\" /etc/hosts;\r\nthen\r\n  echo \"#### adding hostname for private network to /etc/hosts (required by vagrant)\"\r\n  echo \"127.0.0.1 vagrant.local ubuntu-xenial\" | sudo tee -a /etc/hosts\r\nfi\r\n\r\n# fix network ubuntu/xenial\r\n# disable Predictable Network Interface Names\r\nip a show dev eth1 > /dev/null\r\n    if (($? > 0)); then\r\n    echo \"#### eth1 not exists (eth1 and eth2 is expected by vagrant)\"\r\n    echo \"#### turning off Predictable Network Interface Names\"\r\n    grep -q \"net.ifnames=0\" /etc/default/grub\r\n    if (($? > 0)); then\r\n      echo \"GRUB_CMDLINE_LINUX=\\\"net.ifnames=0\"\\\" | sudo tee -a /etc/default/grub\r\n      sudo update-grub\r\n      echo \"#### restart box to disable Predictable Network Interface Names\"\r\n    fi\r\nfi\r\n```\r\n\r\nJust let me know if you will have any problems or questions\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/sunggun-yu/chef-mongodb3/issues/comments/236418360","html_url":"https://github.com/sunggun-yu/chef-mongodb3/pull/39#issuecomment-236418360","issue_url":"https://api.github.com/repos/sunggun-yu/chef-mongodb3/issues/39","id":236418360,"user":{"login":"aight8","id":1138623,"avatar_url":"https://avatars.githubusercontent.com/u/1138623?v=3","gravatar_id":"","url":"https://api.github.com/users/aight8","html_url":"https://github.com/aight8","followers_url":"https://api.github.com/users/aight8/followers","following_url":"https://api.github.com/users/aight8/following{/other_user}","gists_url":"https://api.github.com/users/aight8/gists{/gist_id}","starred_url":"https://api.github.com/users/aight8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aight8/subscriptions","organizations_url":"https://api.github.com/users/aight8/orgs","repos_url":"https://api.github.com/users/aight8/repos","events_url":"https://api.github.com/users/aight8/events{/privacy}","received_events_url":"https://api.github.com/users/aight8/received_events","type":"User","site_admin":false},"created_at":"2016-07-31T08:41:22Z","updated_at":"2016-07-31T08:41:22Z","body":"?"}}
{"actor":{"display_login":"aight8"}}