{"action":"created","issue":{"url":"https://api.github.com/repos/nornir-automation/nornir/issues/238","repository_url":"https://api.github.com/repos/nornir-automation/nornir","labels_url":"https://api.github.com/repos/nornir-automation/nornir/issues/238/labels{/name}","comments_url":"https://api.github.com/repos/nornir-automation/nornir/issues/238/comments","events_url":"https://api.github.com/repos/nornir-automation/nornir/issues/238/events","html_url":"https://github.com/nornir-automation/nornir/issues/238","id":355348806,"node_id":"MDU6SXNzdWUzNTUzNDg4MDY=","number":238,"title":"Create a modified host_vars and group_vars inventory plugin","user":{"login":"ktbyers","id":899716,"node_id":"MDQ6VXNlcjg5OTcxNg==","avatar_url":"https://avatars0.githubusercontent.com/u/899716?v=4","gravatar_id":"","url":"https://api.github.com/users/ktbyers","html_url":"https://github.com/ktbyers","followers_url":"https://api.github.com/users/ktbyers/followers","following_url":"https://api.github.com/users/ktbyers/following{/other_user}","gists_url":"https://api.github.com/users/ktbyers/gists{/gist_id}","starred_url":"https://api.github.com/users/ktbyers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktbyers/subscriptions","organizations_url":"https://api.github.com/users/ktbyers/orgs","repos_url":"https://api.github.com/users/ktbyers/repos","events_url":"https://api.github.com/users/ktbyers/events{/privacy}","received_events_url":"https://api.github.com/users/ktbyers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-29T21:57:43Z","updated_at":"2018-09-03T13:12:14Z","closed_at":null,"author_association":"COLLABORATOR","body":"I am thinking about creating a modification to SimpleInventory or a different inventory plugin that had the Ansible `group_vars` and `host_vars` concept in a simplified form. \r\n\r\nSomething like:\r\n\r\n```\r\n$ tree .\r\n.\r\n├── groups.yaml\r\n├── group_vars\r\n│   ├── ios\r\n│   ├── junos\r\n│   └── nxos\r\n├── hosts.yaml\r\n└── host_vars\r\n    ├── host1\r\n    ├── host2\r\n    └── host3\r\n```\r\n\r\nWhere any `*.yaml` files in group_vars/group_name or in host_vars/host_name would be included in inventory (in addition to processing hosts.yaml and groups.yaml). If used with SimpleInventory, you could add some parameter `enable_directories=True`\r\n\r\nI would probably not want to name it host_vars and group_vars just to make it clear it is not Ansible and we are not following the rules of ansible inventory.\r\n\r\nI like the group_vars and host_vars flexibility, but don't really want some other aspects of using the Ansible pluggin. \r\n\r\nNo ansible name mappings. No ansible INI-style format. No trying to maintain compatibility with Ansible inventory format across time. Also only directory processing so it wouldn't support group_vars/group_name.yaml or host_vars/host_name.yaml processing.\r\n\r\nLooking for feedback before I do much work here."},"comment":{"url":"https://api.github.com/repos/nornir-automation/nornir/issues/comments/418111406","html_url":"https://github.com/nornir-automation/nornir/issues/238#issuecomment-418111406","issue_url":"https://api.github.com/repos/nornir-automation/nornir/issues/238","id":418111406,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODExMTQwNg==","user":{"login":"dmfigol","id":1923704,"node_id":"MDQ6VXNlcjE5MjM3MDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1923704?v=4","gravatar_id":"","url":"https://api.github.com/users/dmfigol","html_url":"https://github.com/dmfigol","followers_url":"https://api.github.com/users/dmfigol/followers","following_url":"https://api.github.com/users/dmfigol/following{/other_user}","gists_url":"https://api.github.com/users/dmfigol/gists{/gist_id}","starred_url":"https://api.github.com/users/dmfigol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmfigol/subscriptions","organizations_url":"https://api.github.com/users/dmfigol/orgs","repos_url":"https://api.github.com/users/dmfigol/repos","events_url":"https://api.github.com/users/dmfigol/events{/privacy}","received_events_url":"https://api.github.com/users/dmfigol/received_events","type":"User","site_admin":false},"created_at":"2018-09-03T13:12:14Z","updated_at":"2018-09-03T13:12:14Z","author_association":"NONE","body":"I would love to have it as part of SimpleInventory so that users need to do less, since it is very common task, but I also agree with your reasoning.\r\nIn this case, shouldn't it be a method of Nornir class?"}}
{"actor":{"display_login":"dmfigol"}}