bootstrap-vz/base/bootstrapinfo.py
Anders Ingemann 668b9896c1 Modularize init script installation
Don't install various init scripts when using cloud-init
2013-12-14 23:18:41 +01:00

15 lines
477 B
Python

class BootstrapInformation(object):
def __init__(self, manifest=None, debug=False):
self.manifest = manifest
from fs import load_volume
self.volume = load_volume(self.manifest.volume)
self.debug = debug
import random
self.run_id = random.randrange(16 ** 8)
import os.path
workspace_dirname = '{id:x}'.format(id=self.run_id)
self.workspace = os.path.join(manifest.bootstrapper['workspace'], workspace_dirname)
self.initd = {'install': {}, 'disable': []}