{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/bugs/issues/796","labels_url":"https://api.github.com/repos/coreos/bugs/issues/796/labels{/name}","comments_url":"https://api.github.com/repos/coreos/bugs/issues/796/comments","events_url":"https://api.github.com/repos/coreos/bugs/issues/796/events","html_url":"https://github.com/coreos/bugs/issues/796","id":108036060,"number":796,"title":"Higher level abstraction for defining units","user":{"login":"crawford","id":368848,"avatar_url":"https://avatars.githubusercontent.com/u/368848?v=3","gravatar_id":"","url":"https://api.github.com/users/crawford","html_url":"https://github.com/crawford","followers_url":"https://api.github.com/users/crawford/followers","following_url":"https://api.github.com/users/crawford/following{/other_user}","gists_url":"https://api.github.com/users/crawford/gists{/gist_id}","starred_url":"https://api.github.com/users/crawford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crawford/subscriptions","organizations_url":"https://api.github.com/users/crawford/orgs","repos_url":"https://api.github.com/users/crawford/repos","events_url":"https://api.github.com/users/crawford/events{/privacy}","received_events_url":"https://api.github.com/users/crawford/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-24T01:00:35Z","updated_at":"2015-09-24T01:00:38Z","closed_at":"2015-09-24T01:00:36Z","body":"<a href=\"https://github.com/errordeveloper\"><img src=\"https://avatars.githubusercontent.com/u/251467?v=3\" align=\"left\" width=\"96\" height=\"96\" hspace=\"10\"></img></a> **Issue by [errordeveloper](https://github.com/errordeveloper)**\n_Wednesday Feb 04, 2015 at 13:54 GMT_\n_Originally opened as https://github.com/coreos/coreos-cloudinit/issues/312_\n\n----\n\nI think it could help validator if instead of writing:\r\n```yaml\r\n  - name: weave-network.target\r\n    command: start\r\n    enable: true\r\n    content: |\r\n      [Unit]\r\n      Requires=weave.service\r\n      RefuseManualStart=no\r\n      Wants=weave.service\r\n      [Install]\r\n      WantedBy=multi-user.target\r\n```\r\n\r\nI could write:\r\n```yaml\r\n  - name: weave-network.target\r\n    command: start\r\n    enable: true\r\n    unit:\r\n      Requires: [ \"weave.service\" ]\r\n      RefuseManualStart: no\r\n      Wants: [ \"weave.service\" ]\r\n    install:\r\n      WantedBy: [ \"multi-user.target\" ]\r\n```\n"},"comment":{"url":"https://api.github.com/repos/coreos/bugs/issues/comments/142772585","html_url":"https://github.com/coreos/bugs/issues/796#issuecomment-142772585","issue_url":"https://api.github.com/repos/coreos/bugs/issues/796","id":142772585,"user":{"login":"crawford","id":368848,"avatar_url":"https://avatars.githubusercontent.com/u/368848?v=3","gravatar_id":"","url":"https://api.github.com/users/crawford","html_url":"https://github.com/crawford","followers_url":"https://api.github.com/users/crawford/followers","following_url":"https://api.github.com/users/crawford/following{/other_user}","gists_url":"https://api.github.com/users/crawford/gists{/gist_id}","starred_url":"https://api.github.com/users/crawford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crawford/subscriptions","organizations_url":"https://api.github.com/users/crawford/orgs","repos_url":"https://api.github.com/users/crawford/repos","events_url":"https://api.github.com/users/crawford/events{/privacy}","received_events_url":"https://api.github.com/users/crawford/received_events","type":"User","site_admin":false},"created_at":"2015-09-24T01:00:38Z","updated_at":"2015-09-24T01:00:38Z","body":"<a href=\"https://github.com/errordeveloper\"><img src=\"https://avatars.githubusercontent.com/u/251467?v=3\" align=\"left\" width=\"48\" height=\"48\" hspace=\"10\"></img></a> **Comment by [errordeveloper](https://github.com/errordeveloper)**\n_Wednesday Feb 04, 2015 at 23:43 GMT_\n\n----\n\nSure, but having some basic validation would be nice... I spoke with @kelseyhightower, this was for the purpose of writing down the idea.\n"}}