mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00
Delete metadata plugin.
It serves a too limited purpose to be included.
This commit is contained in:
parent
fc1134f371
commit
72323045d3
3 changed files with 0 additions and 50 deletions
|
@ -1,5 +0,0 @@
|
|||
|
||||
|
||||
def resolve_tasks(taskset, manifest):
|
||||
from tasks import WriteMetadata
|
||||
taskset.add(WriteMetadata)
|
|
@ -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"]
|
||||
}
|
|
@ -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)))
|
Loading…
Add table
Reference in a new issue