Delete metadata plugin.

It serves a too limited purpose to be included.
This commit is contained in:
Anders Ingemann 2014-04-08 21:47:06 +02:00
parent fc1134f371
commit 72323045d3
3 changed files with 0 additions and 50 deletions

View file

@ -1,5 +0,0 @@
def resolve_tasks(taskset, manifest):
from tasks import WriteMetadata
taskset.add(WriteMetadata)

View file

@ -1,27 +0,0 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Build metadata plugin manifest",
"type": "object",
"properties": {
"provider": {
"type": "string",
"enum": ["ec2"]
},
"plugins": {
"type": "object",
"properties": {
"build_metadata": {
"type": "object",
"properties": {
"path": {
"type": "string"
}
},
"required": ["path"]
}
},
"required": ["build_metadata"]
}
},
"required": ["plugins"]
}

View file

@ -1,18 +0,0 @@
from bootstrapvz.base import Task
from bootstrapvz.common import phases
class WriteMetadata(Task):
description = 'Writing bootstrap metadata to file'
phase = phases.cleaning
@classmethod
def run(cls, info):
metadata_path = info.manifest.plugins['build_metadata']['path']
with open(metadata_path, 'w') as metadata:
metadata.write(('AMI_ID={ami_id}\n'
'AMI_NAME={ami_name}'
'SNAPSHOT_ID={snapshot_id}'
.format(ami_id=info.image,
ami_name=info.ami_name,
snapshot_id=info.snapshot.id)))