{"action":"created","comment":{"url":"https://api.github.com/repos/coreos/docs/pulls/comments/37815025","id":37815025,"diff_hunk":"@@ -0,0 +1,95 @@\n+# Getting Started with Ignition #\n+\n+Before getting started, make sure that Ignition is supported on your platform.\n+For a full list of supported platforms, refer [here][supported platforms].\n+\n+Ignition uses a JSON config to represent the set of changes to be made. The\n+format of this config is detailed [here][config format]. One of the most\n+important parts of this config is the version number. This **must** match the\n+version number accepted by Ignition. If the config version isn't accepted by\n+Ignition, Ignition will fail to run and prevent the machine from booting. This\n+can be seen by inspecting the console output of the failed instance. For more\n+information, check out the [troubleshooting](#Troubleshooting) section.\n+\n+Let's take a look at a few example configs.\n+\n+[supported platforms]: supported-platforms.md\n+[config format]: https://github.com/coreos/ignition/blob/master/doc/ignition.md#configuration\n+\n+## Example Configs ##\n+\n+Each of these examples is written in version 1 of the config. Always double\n+check to make sure that your config matches the version that Ignition is\n+expecting.\n+\n+### BTRFS Root ###\n+\n+This config will find the device with the filesystem label \"ROOT\" (the root\n+filesystem) and reformat it to BTRFS, maintaining the filesystem label. The\n+force flag is needed here because CoreOS currently ships with an EXT4 root\n+filesystem. Without this flag, Ignition would recognize that there is existing\n+data and refuse to overwrite it.\n+\n+```json\n+{\n+\t\"ignitionVersion\": 1,\n+\t\"storage\": {\n+\t\t\"filesystems\": [\n+\t\t\t{\n+\t\t\t\t\"device\": \"/dev/disk/by-label/ROOT\",\n+\t\t\t\t\"format\": \"btrfs\",\n+\t\t\t\t\"create\": {\n+\t\t\t\t\t\"force\": true,\n+\t\t\t\t\t\"options\": [\n+\t\t\t\t\t\t\"--label=ROOT\"\n+\t\t\t\t\t\t]\n+\t\t\t\t}\n+\t\t\t}\n+\t\t]\n+\t}\n+}\n+```\n+\n+### Metadata Agent Service ###","path":"ignition/getting-started-with-ignition.md","position":53,"original_position":53,"commit_id":"5536108725d8633062a8955ff4cc24caab43a875","original_commit_id":"5536108725d8633062a8955ff4cc24caab43a875","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},"body":"Oh, this is a much more interesting example. This is how you read EC2 metadata.","created_at":"2015-08-24T22:54:51Z","updated_at":"2015-08-24T22:54:51Z","html_url":"https://github.com/coreos/docs/pull/569#discussion_r37815025","pull_request_url":"https://api.github.com/repos/coreos/docs/pulls/569","_links":{"self":{"href":"https://api.github.com/repos/coreos/docs/pulls/comments/37815025"},"html":{"href":"https://github.com/coreos/docs/pull/569#discussion_r37815025"},"pull_request":{"href":"https://api.github.com/repos/coreos/docs/pulls/569"}}},"pull_request":{"url":"https://api.github.com/repos/coreos/docs/pulls/569","id":43084350,"html_url":"https://github.com/coreos/docs/pull/569","diff_url":"https://github.com/coreos/docs/pull/569.diff","patch_url":"https://github.com/coreos/docs/pull/569.patch","issue_url":"https://api.github.com/repos/coreos/docs/issues/569","number":569,"state":"open","locked":false,"title":"WIP: ignition: add initial docs","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},"body":"","created_at":"2015-08-21T21:46:08Z","updated_at":"2015-08-24T22:54:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a4cf00f3d559dcbf82cc0702b859a0171586cd35","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/coreos/docs/pulls/569/commits","review_comments_url":"https://api.github.com/repos/coreos/docs/pulls/569/comments","review_comment_url":"https://api.github.com/repos/coreos/docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coreos/docs/issues/569/comments","statuses_url":"https://api.github.com/repos/coreos/docs/statuses/5536108725d8633062a8955ff4cc24caab43a875","head":{"label":"crawford:ignition","ref":"ignition","sha":"5536108725d8633062a8955ff4cc24caab43a875","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},"repo":{"id":21834243,"name":"docs","full_name":"crawford/docs","owner":{"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},"private":false,"html_url":"https://github.com/crawford/docs","description":"Documentation for CoreOS in markdown","fork":true,"url":"https://api.github.com/repos/crawford/docs","forks_url":"https://api.github.com/repos/crawford/docs/forks","keys_url":"https://api.github.com/repos/crawford/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crawford/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crawford/docs/teams","hooks_url":"https://api.github.com/repos/crawford/docs/hooks","issue_events_url":"https://api.github.com/repos/crawford/docs/issues/events{/number}","events_url":"https://api.github.com/repos/crawford/docs/events","assignees_url":"https://api.github.com/repos/crawford/docs/assignees{/user}","branches_url":"https://api.github.com/repos/crawford/docs/branches{/branch}","tags_url":"https://api.github.com/repos/crawford/docs/tags","blobs_url":"https://api.github.com/repos/crawford/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crawford/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crawford/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/crawford/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crawford/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/crawford/docs/languages","stargazers_url":"https://api.github.com/repos/crawford/docs/stargazers","contributors_url":"https://api.github.com/repos/crawford/docs/contributors","subscribers_url":"https://api.github.com/repos/crawford/docs/subscribers","subscription_url":"https://api.github.com/repos/crawford/docs/subscription","commits_url":"https://api.github.com/repos/crawford/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/crawford/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/crawford/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/crawford/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/crawford/docs/contents/{+path}","compare_url":"https://api.github.com/repos/crawford/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crawford/docs/merges","archive_url":"https://api.github.com/repos/crawford/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crawford/docs/downloads","issues_url":"https://api.github.com/repos/crawford/docs/issues{/number}","pulls_url":"https://api.github.com/repos/crawford/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/crawford/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/crawford/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crawford/docs/labels{/name}","releases_url":"https://api.github.com/repos/crawford/docs/releases{/id}","created_at":"2014-07-14T20:19:12Z","updated_at":"2014-07-14T15:19:28Z","pushed_at":"2015-08-23T21:16:10Z","git_url":"git://github.com/crawford/docs.git","ssh_url":"git@github.com:crawford/docs.git","clone_url":"https://github.com/crawford/docs.git","svn_url":"https://github.com/crawford/docs","homepage":"http://coreos.com/docs","size":4659,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"coreos:master","ref":"master","sha":"413ce3e145c7b991550df62eedfda13acd527216","user":{"login":"coreos","id":3730757,"avatar_url":"https://avatars.githubusercontent.com/u/3730757?v=3","gravatar_id":"","url":"https://api.github.com/users/coreos","html_url":"https://github.com/coreos","followers_url":"https://api.github.com/users/coreos/followers","following_url":"https://api.github.com/users/coreos/following{/other_user}","gists_url":"https://api.github.com/users/coreos/gists{/gist_id}","starred_url":"https://api.github.com/users/coreos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coreos/subscriptions","organizations_url":"https://api.github.com/users/coreos/orgs","repos_url":"https://api.github.com/users/coreos/repos","events_url":"https://api.github.com/users/coreos/events{/privacy}","received_events_url":"https://api.github.com/users/coreos/received_events","type":"Organization","site_admin":false},"repo":{"id":11597120,"name":"docs","full_name":"coreos/docs","owner":{"login":"coreos","id":3730757,"avatar_url":"https://avatars.githubusercontent.com/u/3730757?v=3","gravatar_id":"","url":"https://api.github.com/users/coreos","html_url":"https://github.com/coreos","followers_url":"https://api.github.com/users/coreos/followers","following_url":"https://api.github.com/users/coreos/following{/other_user}","gists_url":"https://api.github.com/users/coreos/gists{/gist_id}","starred_url":"https://api.github.com/users/coreos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coreos/subscriptions","organizations_url":"https://api.github.com/users/coreos/orgs","repos_url":"https://api.github.com/users/coreos/repos","events_url":"https://api.github.com/users/coreos/events{/privacy}","received_events_url":"https://api.github.com/users/coreos/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coreos/docs","description":"Documentation for CoreOS in markdown","fork":false,"url":"https://api.github.com/repos/coreos/docs","forks_url":"https://api.github.com/repos/coreos/docs/forks","keys_url":"https://api.github.com/repos/coreos/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coreos/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coreos/docs/teams","hooks_url":"https://api.github.com/repos/coreos/docs/hooks","issue_events_url":"https://api.github.com/repos/coreos/docs/issues/events{/number}","events_url":"https://api.github.com/repos/coreos/docs/events","assignees_url":"https://api.github.com/repos/coreos/docs/assignees{/user}","branches_url":"https://api.github.com/repos/coreos/docs/branches{/branch}","tags_url":"https://api.github.com/repos/coreos/docs/tags","blobs_url":"https://api.github.com/repos/coreos/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coreos/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coreos/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/coreos/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coreos/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/coreos/docs/languages","stargazers_url":"https://api.github.com/repos/coreos/docs/stargazers","contributors_url":"https://api.github.com/repos/coreos/docs/contributors","subscribers_url":"https://api.github.com/repos/coreos/docs/subscribers","subscription_url":"https://api.github.com/repos/coreos/docs/subscription","commits_url":"https://api.github.com/repos/coreos/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/coreos/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/coreos/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/coreos/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/coreos/docs/contents/{+path}","compare_url":"https://api.github.com/repos/coreos/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coreos/docs/merges","archive_url":"https://api.github.com/repos/coreos/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coreos/docs/downloads","issues_url":"https://api.github.com/repos/coreos/docs/issues{/number}","pulls_url":"https://api.github.com/repos/coreos/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/coreos/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/coreos/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coreos/docs/labels{/name}","releases_url":"https://api.github.com/repos/coreos/docs/releases{/id}","created_at":"2013-07-23T02:02:24Z","updated_at":"2015-08-23T16:56:41Z","pushed_at":"2015-08-23T21:16:10Z","git_url":"git://github.com/coreos/docs.git","ssh_url":"git@github.com:coreos/docs.git","clone_url":"https://github.com/coreos/docs.git","svn_url":"https://github.com/coreos/docs","homepage":"http://coreos.com/docs","size":7561,"stargazers_count":574,"watchers_count":574,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":329,"mirror_url":null,"open_issues_count":40,"forks":329,"open_issues":40,"watchers":574,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coreos/docs/pulls/569"},"html":{"href":"https://github.com/coreos/docs/pull/569"},"issue":{"href":"https://api.github.com/repos/coreos/docs/issues/569"},"comments":{"href":"https://api.github.com/repos/coreos/docs/issues/569/comments"},"review_comments":{"href":"https://api.github.com/repos/coreos/docs/pulls/569/comments"},"review_comment":{"href":"https://api.github.com/repos/coreos/docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coreos/docs/pulls/569/commits"},"statuses":{"href":"https://api.github.com/repos/coreos/docs/statuses/5536108725d8633062a8955ff4cc24caab43a875"}}}}