{"action":"created","issue":{"url":"https://api.github.com/repos/debops/ansible-dhcpd/issues/11","labels_url":"https://api.github.com/repos/debops/ansible-dhcpd/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/debops/ansible-dhcpd/issues/11/comments","events_url":"https://api.github.com/repos/debops/ansible-dhcpd/issues/11/events","html_url":"https://github.com/debops/ansible-dhcpd/pull/11","id":90668599,"number":11,"title":"Support of multiple MAC addresses for host declaration and a little fix to failover","user":{"login":"redrampage","id":1389959,"avatar_url":"https://avatars.githubusercontent.com/u/1389959?v=3","gravatar_id":"","url":"https://api.github.com/users/redrampage","html_url":"https://github.com/redrampage","followers_url":"https://api.github.com/users/redrampage/followers","following_url":"https://api.github.com/users/redrampage/following{/other_user}","gists_url":"https://api.github.com/users/redrampage/gists{/gist_id}","starred_url":"https://api.github.com/users/redrampage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redrampage/subscriptions","organizations_url":"https://api.github.com/users/redrampage/orgs","repos_url":"https://api.github.com/users/redrampage/repos","events_url":"https://api.github.com/users/redrampage/events{/privacy}","received_events_url":"https://api.github.com/users/redrampage/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-24T12:53:59Z","updated_at":"2015-06-29T22:50:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/debops/ansible-dhcpd/pulls/11","html_url":"https://github.com/debops/ansible-dhcpd/pull/11","diff_url":"https://github.com/debops/ansible-dhcpd/pull/11.diff","patch_url":"https://github.com/debops/ansible-dhcpd/pull/11.patch"},"body":"I'm back again with a new PR.\r\n\r\nI've run into some problems with static DHCP reservations on bonded interfaces:\r\n\r\n* The resulting MAC address assigned to the bond can be inherited from any slave interface, whichever is first added to the bond.\r\n* When using iPXE to boot from LACP enabled interfaces it will choose any of the slave interfaces whichever discovered first.\r\n\r\nSo I wrote a small patch to support assignment of multiple MACs to a single host. It creates a separate host statements for each MAC(because dhcpd wants them to be unique).\r\nIf no 'option host-name' is specified in 'host.options' - it is added. This is made for compatibility with 'use-host-decl-names on' dhcpd option.\r\n\r\nAlso there is a small patch for failover configuration which allows usage of hostnames in inventory file.\r\n\r\nAnd some fixes for group expanding macros."},"comment":{"url":"https://api.github.com/repos/debops/ansible-dhcpd/issues/comments/116873552","html_url":"https://github.com/debops/ansible-dhcpd/pull/11#issuecomment-116873552","issue_url":"https://api.github.com/repos/debops/ansible-dhcpd/issues/11","id":116873552,"user":{"login":"drybjed","id":1043958,"avatar_url":"https://avatars.githubusercontent.com/u/1043958?v=3","gravatar_id":"","url":"https://api.github.com/users/drybjed","html_url":"https://github.com/drybjed","followers_url":"https://api.github.com/users/drybjed/followers","following_url":"https://api.github.com/users/drybjed/following{/other_user}","gists_url":"https://api.github.com/users/drybjed/gists{/gist_id}","starred_url":"https://api.github.com/users/drybjed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drybjed/subscriptions","organizations_url":"https://api.github.com/users/drybjed/orgs","repos_url":"https://api.github.com/users/drybjed/repos","events_url":"https://api.github.com/users/drybjed/events{/privacy}","received_events_url":"https://api.github.com/users/drybjed/received_events","type":"User","site_admin":false},"created_at":"2015-06-29T22:50:32Z","updated_at":"2015-06-29T22:50:32Z","body":"Ah, during the Jinja templating phase then? Yeah, I suppose it would... OK, I'll accept `::1` as a default there, we'lll see if there are any unintended consequences.\r\n\r\nThanks for the contribution. :-) I'll update the documentation later, after I'm back from holiday."}}