mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 18:00:35 +00:00
Refactor ec2 provider a bit
This commit is contained in:
parent
ef343016f0
commit
6230684c62
7 changed files with 6 additions and 6 deletions
|
@ -15,10 +15,10 @@ def main():
|
|||
def run(args):
|
||||
from manifest import load_manifest
|
||||
from manifest import get_provider
|
||||
data = load_manifest(args.manifest)
|
||||
data = load_manifest(args.manifest)
|
||||
provider = get_provider(data)
|
||||
|
||||
manifest = provider.Manifest(args.manifest, data)
|
||||
|
||||
manifest.validate()
|
||||
manifest.load_plugins()
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
|
||||
def modify_tasklist(tasklist, manifest):
|
||||
from providers.ec2.packages import ImagePackages
|
||||
from providers.ec2.tasks.packages import ImagePackages
|
||||
from adminuser import AddSudoPackage
|
||||
tasklist.after(ImagePackages, AddSudoPackage())
|
||||
|
|
|
@ -3,9 +3,9 @@ from manifest import Manifest
|
|||
|
||||
def tasklist(manifest):
|
||||
from common import TaskList
|
||||
import packages
|
||||
import ec2
|
||||
import host
|
||||
from tasks import packages
|
||||
from tasks import ec2
|
||||
from tasks import host
|
||||
task_list = TaskList()
|
||||
task_list.extend([packages.HostPackages(),
|
||||
packages.ImagePackages(),
|
||||
|
|
0
providers/ec2/tasks/__init__.py
Normal file
0
providers/ec2/tasks/__init__.py
Normal file
Loading…
Add table
Reference in a new issue