Files @ b55cb83f8342
Branch filter:

Location: majic-ansible-roles/roles/backup/molecule/default/molecule.yml

branko
Noticket: Added workaround to development process for outdated Molecule version:

- Unfortunately, the Molecule version used for running tests does not
generate valid Ruby 3.x code. For now just work around the way Hash
is unpacked in function calls to optional arguments (until the test
stack gets a revamp).
---

dependency: {}

driver:
  name: vagrant
  provider:
    name: virtualbox

lint:
  name: yamllint
  options:
    config-file: ../../.yamllint.yml

platforms:

  - name: parameters-mandatory-bullseye
    groups:
      - parameters-mandatory
    box: debian/bullseye64
    memory: 256
    cpus: 1
    # @WORKAROUND: Boot-time hanging due to clock source
    #     Prevents the VMs from hanging during boot time, seems
    #     related to VirtualBox KVM-compatible clock
    #     implementation. Might be possible to alleviate by switching
    #     to VirtualBox > 6.1. Workaround needs to be removed from all
    #     roles/tests in that case.
    provider_raw_config_args:
      - "customize ['modifyvm', :id, '--paravirtprovider', 'minimal']"

  - name: parameters-optional-bullseye
    groups:
      - parameters-optional
    box: debian/bullseye64
    memory: 256
    cpus: 1
    provider_raw_config_args:
      - "customize ['modifyvm', :id, '--paravirtprovider', 'minimal']"

  - name: parameters-mandatory-bookworm
    groups:
      - parameters-mandatory
    box: debian/bookworm64
    memory: 256
    cpus: 1
    provider_raw_config_args:
      - "customize ['modifyvm', :id, '--paravirtprovider', 'minimal']"

  - name: parameters-optional-bookworm
    groups:
      - parameters-optional
    box: debian/bookworm64
    memory: 256
    cpus: 1
    provider_raw_config_args:
      - "customize ['modifyvm', :id, '--paravirtprovider', 'minimal']"

provisioner:
  name: ansible
  config_options:
    defaults:
      force_valid_group_names: "ignore"
      interpreter_python: "/usr/bin/python3"
    ssh_connection:
      pipelining: "True"
  lint:
    name: ansible-lint

scenario:
  name: default

verifier:
  name: testinfra
  lint:
    name: flake8