Skip to content
molecule.yml 2.19 KiB
Newer Older
nimrod's avatar
nimrod committed
---
ansible:
nimrod's avatar
nimrod committed
  playbook: tests/playbook.yml
  diff: True
  config_file: ../ansible.cfg
dependency:
  requirements_file: tests/requirements.yml
nimrod's avatar
nimrod committed

vagrant:
  providers:
  - name: virtualbox
    type: virtualbox
nimrod's avatar
nimrod committed
  platforms:
    box: fnichol/openbsd-6.0-i386
  - name: openbsd59
    box: fnichol/openbsd-5.9-i386
  - name: xenial
    box: ubuntu/xenial32
nimrod's avatar
nimrod committed
  - name: precise
    box: hashicorp/precise32
nimrod's avatar
nimrod committed
    box: deb/jessie-i386
nimrod's avatar
nimrod committed
    box: deb/wheezy-i386
nimrod's avatar
nimrod committed
  instances:
  - name: example
nimrod's avatar
nimrod committed
    options:
        append_platform_to_hostname: yes
  raw_config_args:
  - 'vm.synced_folder ".", "/vagrant", disabled: true'
  - 'vbguest.auto_update = false if Vagrant.has_plugin?("vbguest")'
  - 'landrush.enabled = false if Vagrant.has_plugin?("landrush")'
  - 'landrush_ip.override = false if Vagrant.has_plugin?("landrush")'
  - |
      vm.provider "virtualbox" do |v|
        v.customize "pre-boot", ["modifyvm", :id, "--hwvirtex", "off"]
      end

docker:
  containers:
  - name: example-xenial
    image: ubuntu
    image_version: xenial
    command: /sbin/init
    volume_mounts:
      - /sys/fs/cgroup:/sys/fs/cgroup
      - /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket
    environment:
        DEBIAN_FRONTEND: noninteractive
        container: docker
  - name: example-trusty
    image: ubuntu-upstart
    image_version: trusty
    environment:
        DEBIAN_FRONTEND: noninteractive
        container: docker
  - name: example-precise
    image: ubuntu
    image_version: precise
    environment:
        DEBIAN_FRONTEND: noninteractive
        container: docker
  - name: example-jessie
    image: debian
    image_version: jessie
    command: /sbin/init
    cap_add:
      - SYS_ADMIN
    volume_mounts:
      - /sys/fs/cgroup:/sys/fs/cgroup
      - /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket
    environment:
        DEBIAN_FRONTEND: noninteractive
        container: docker
  - name: example-wheezy
    image: debian
    image_version: wheezy
    environment:
        DEBIAN_FRONTEND: noninteractive
        container: docker