Ejemplo n.º 1
0
    def driver(self):
        driver_name = self._get_driver_name()
        driver = None

        if driver_name == 'azure':
            driver = azure.Azure(self)
        elif driver_name == 'delegated':
            driver = delegated.Delegated(self)
        elif driver_name == 'docker':
            driver = docker.Docker(self)
        elif driver_name == 'ec2':
            driver = ec2.EC2(self)
        elif driver_name == 'gce':
            driver = gce.GCE(self)
        elif driver_name == 'lxc':
            driver = lxc.LXC(self)
        elif driver_name == 'lxd':
            driver = lxd.LXD(self)
        elif driver_name == 'openstack':
            driver = openstack.Openstack(self)
        elif driver_name == 'vagrant':
            driver = vagrant.Vagrant(self)

        driver.name = driver_name

        return driver
Ejemplo n.º 2
0
    def driver(self):
        driver_name = self._get_driver_name()
        driver = None

        if driver_name == 'docker':
            driver = dockr.Dockr(self)
        elif driver_name == 'ec2':
            driver = ec2.Ec2(self)
        elif driver_name == 'gce':
            driver = gce.Gce(self)
        elif driver_name == 'lxc':
            driver = lxc.Lxc(self)
        elif driver_name == 'lxd':
            driver = lxd.Lxd(self)
        elif driver_name == 'openstack':
            driver = openstack.Openstack(self)
        elif driver_name == 'static':
            driver = static.Static(self)
        elif driver_name == 'vagrant':
            driver = vagrant.Vagrant(self)
        else:
            util.exit_with_invalid_section('driver', driver_name)

        driver.name = driver_name

        return driver
Ejemplo n.º 3
0
    def driver(self):
        driver_name = self._get_driver_name()
        driver = None

        if driver_name == 'azure':
            driver = azure.Azure(self)
        elif driver_name == 'delegated':
            driver = delegated.Delegated(self)
        elif driver_name == 'digitalocean':
            driver = digitalocean.DigitalOcean(self)
        elif driver_name == 'docker':
            driver = docker.Docker(self)
        elif driver_name == 'ec2':
            driver = ec2.EC2(self)
        elif driver_name == 'gce':
            driver = gce.GCE(self)
        elif driver_name == 'hetznercloud':
            driver = hetznercloud.HetznerCloud(self)
        elif driver_name == 'linode':
            driver = linode.Linode(self)
        elif driver_name == 'lxc':
            driver = lxc.LXC(self)
        elif driver_name == 'lxd':
            driver = lxd.LXD(self)
        elif driver_name == 'openstack':
            driver = openstack.Openstack(self)
        elif driver_name == 'podman':
            driver = podman.Podman(self)
        elif driver_name == 'vagrant':
            driver = vagrant.Vagrant(self)

        driver.name = driver_name

        return driver
Ejemplo n.º 4
0
def molecule_drivers():
    return [
        dockr.Dockr(None).name,
        ec2.Ec2(None).name,
        lxc.Lxc(None).name,
        lxd.Lxd(None).name,
        openstack.Openstack(None).name,
        static.Static(None).name,
        vagrant.Vagrant(None).name,
    ]
Ejemplo n.º 5
0
def molecule_drivers():
    return [
        delegated.Delegated(None).name,
        docker.Docker(None).name,
        ec2.Ec2(None).name,
        gce.Gce(None).name,
        lxc.Lxc(None).name,
        lxd.Lxd(None).name,
        openstack.Openstack(None).name,
        vagrant.Vagrant(None).name,
    ]
Ejemplo n.º 6
0
def molecule_drivers():
    return [
        azure.Azure(None).name,
        delegated.Delegated(None).name,
        docker.Docker(None).name,
        ec2.EC2(None).name,
        gce.GCE(None).name,
        lxc.LXC(None).name,
        lxd.LXD(None).name,
        openstack.Openstack(None).name,
        vagrant.Vagrant(None).name,
    ]
Ejemplo n.º 7
0
def molecule_drivers():
    return [
        azure.Azure(None).name,
        delegated.Delegated(None).name,
        digitalocean.DigitalOcean(None).name,
        docker.Docker(None).name,
        ec2.EC2(None).name,
        gce.GCE(None).name,
        linode.Linode(None).name,
        lxc.LXC(None).name,
        lxd.LXD(None).name,
        openstack.Openstack(None).name,
        podman.Podman(None).name,
        vagrant.Vagrant(None).name,
    ]
Ejemplo n.º 8
0
def _instance(patched_config_validate, config_instance):
    return openstack.Openstack(config_instance)
Ejemplo n.º 9
0
def openstack_instance(molecule_driver_section_data, config_instance):
    config_instance.merge_dicts(config_instance.config,
                                molecule_driver_section_data)

    return openstack.Openstack(config_instance)