Ejemplo n.º 1
0
 def __init__(self, cli=None):
     self.network = DHCPClient()
     self.fabric = LocalFabric(bootstrap=True)
     self.mongo = MongoInitializer(self.fabric.system)
     self.mongo.fabric = self.fabric
     self.mongo.template_dir = DEFAULT_TEMPLATE_DIR + '/mongo/'
     self.cli = cli
     self.config = read_ferry_config()
Ejemplo n.º 2
0
    def __init__(self, bootstrap=False):
        self.name = "local"
        self.repo = 'public'
        self.cli = DockerCLI(ferry.install.DOCKER_REGISTRY)
        self.docker_user = self.cli.docker_user
        self.inspector = DockerInspector(self.cli)
        self.bootstrap = bootstrap

        # The system returns information regarding
        # the instance types.
        self.system = System()

        # Bootstrap mode means that the DHCP network
        # isn't available yet, so we can't use the network.
        if not bootstrap:
            self.network = DHCPClient(ferry.install._get_gateway())