Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add provider metadata to metdata files on build. #387

Merged
merged 1 commit into from
Jul 2, 2015

Conversation

fnichol
Copy link
Contributor

@fnichol fnichol commented Jul 2, 2015

The build metadata produced by bin/bento is modified to contain
Vagrant provider-compatible metadata as in the following example:

{
  "name": "chef/debian-8.0",
  "version": "2.0.20150702012417",
  "build_timestamp": "20150702012417",
  "git_revision": "9c7e4544c57fd9da497eda416fb7486cf941d6d7_dirty",
  "box_basename": "chef__debian-8.0-2.0.20150702012417.git.9c7e4544c57fd9da497eda416fb7486cf941d6d7_dirty",
  "template": "debian-8.0-amd64",
  "providers": [
    {
      "name": "parallels",
      "file": "chef__debian-8.0-2.0.20150702012417.git.9c7e4544c57fd9da497eda416fb7486cf941d6d7_dirty.parallels.box",
      "checksum_type": "sha256",
      "checksum": "5ce86c9c31edadf69500b1c680be3d2afa88d1def2c972c82a066cc482855d41"
    },
    {
      "name": "virtualbox",
      "file": "chef__debian-8.0-2.0.20150702012417.git.9c7e4544c57fd9da497eda416fb7486cf941d6d7_dirty.virtualbox.box",
      "checksum_type": "sha256",
      "checksum": "e36b86613bf80ad2fee01e9d0ad2dd7b012c6dcd53ef6f3fee356450a8bf4db1"
    },
    {
      "name": "vmware_desktop",
      "file": "chef__debian-8.0-2.0.20150702012417.git.9c7e4544c57fd9da497eda416fb7486cf941d6d7_dirty.vmware.box",
      "checksum_type": "sha256",
      "checksum": "71a5a2c13565f13e3a142346973bca01efe5c10ff380df3cd3b99b09efd399b6"
    }
  ]
}

The provider data will help for future publishing to Atlas and will
allow for a standalone "metadata server" to provide Atlas-like download
capabilities for Vagrant clients.

Also note that the following metadata attributes are dropped as of this
commit:

  • atlas_org: the team/org information will be added directly to the
    box name. For example the box called "debian-8.0" would now be called
    "chef/debian-8.0"
  • arch: This piece of metadata wasn't used anywhere directly and can
    most likely be captured in a future description attribute.

The build metadata produced by `bin/bento` is modified to contain
Vagrant provider-compatible metadata as in the following example:

    {
      "name": "chef/debian-8.0",
      "version": "2.0.20150702012417",
      "build_timestamp": "20150702012417",
      "git_revision": "9c7e4544c57fd9da497eda416fb7486cf941d6d7_dirty",
      "box_basename": "chef__debian-8.0-2.0.20150702012417.git.9c7e4544c57fd9da497eda416fb7486cf941d6d7_dirty",
      "template": "debian-8.0-amd64",
      "providers": [
        {
          "name": "parallels",
          "file": "chef__debian-8.0-2.0.20150702012417.git.9c7e4544c57fd9da497eda416fb7486cf941d6d7_dirty.parallels.box",
          "checksum_type": "sha256",
          "checksum": "5ce86c9c31edadf69500b1c680be3d2afa88d1def2c972c82a066cc482855d41"
        },
        {
          "name": "virtualbox",
          "file": "chef__debian-8.0-2.0.20150702012417.git.9c7e4544c57fd9da497eda416fb7486cf941d6d7_dirty.virtualbox.box",
          "checksum_type": "sha256",
          "checksum": "e36b86613bf80ad2fee01e9d0ad2dd7b012c6dcd53ef6f3fee356450a8bf4db1"
        },
        {
          "name": "vmware_desktop",
          "file": "chef__debian-8.0-2.0.20150702012417.git.9c7e4544c57fd9da497eda416fb7486cf941d6d7_dirty.vmware.box",
          "checksum_type": "sha256",
          "checksum": "71a5a2c13565f13e3a142346973bca01efe5c10ff380df3cd3b99b09efd399b6"
        }
      ]
    }

The provider data will help for future publishing to Atlas and will
allow for a standalone "metadata server" to provide Atlas-like download
capabilities for Vagrant clients.

Also note that the following metadata attributes are dropped as of this
commit:

* `atlas_org`: the team/org information will be added directly to the
  box name. For example the box called "debian-8.0" would now be called
  "chef/debian-8.0"
* `arch`: This piece of metadata wasn't used anywhere directly and can
  most likely be captured in a future description attribute.
@fnichol fnichol self-assigned this Jul 2, 2015
fnichol added a commit that referenced this pull request Jul 2, 2015
Add provider metadata to metdata files on build.
@fnichol fnichol merged commit 766eb08 into master Jul 2, 2015
@fnichol fnichol removed the Reviewing label Jul 2, 2015
@fnichol fnichol deleted the add-provider-metadata branch July 2, 2015 16:25
@fnichol fnichol removed their assignment Jul 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant