molecule3-docker driver - How to test mutiple scenario with different instances #2911
Unanswered
chanderthakur
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
molecule 3.0.8
ansible==2.10.2 python==3.8
Structure:
.
├── defaults
│ └── main.yml
├── files
│ └── logging.conf
├── handlers
│ └── main.yml
├── meta
│ └── main.yml
├── molecule
│ ├── default
│ │ ├── converge.yml
│ │ ├── INSTALL.rst
│ │ ├── molecule.yml
│ │ ├── prepare.yml
│ │ ├── tests
│ │ │ ├── pycache
│ │ │ │ └── test_default.cpython-38-pytest-6.1.1.pyc
│ │ │ └── test_default.py
│ │ └── verify.yml
│ └── metricbeat-enabled
│ ├── converge.yml
│ ├── INSTALL.rst
│ ├── molecule.yml
│ ├── prepare.yml
│ ├── tests
│ │ ├── pycache
│ │ │ └── test_metricbeat_enabled.cpython-38-pytest-6.1.1.pyc
│ │ └── test_metricbeat_enabled.py
│ └── verify.yml
├── README.md
├── tasks
│ ├── configure.yml
│ ├── install.yml
│ ├── main.yml
│ └── service.yml
├── templates
│ ├── metricbeat-pin.j2
│ └── metricbeat.yml.j2
├── tests
│ ├── inventory
│ └── test.yml
└── vars
└── main.yml
molecule.yml in both scenarios:
dependency:
name: galaxy
driver:
name: docker
lint: |
ansible-lint
platforms:
image: "geerlingguy/docker-ubuntu2004-ansible:latest"
command: ""
volumes:
privileged: true
pre_build_image: true
provisioner:
name: ansible
log: true
verifier:
name: testinfra
=============================================================
Can anybody help in this ? I want to test my two different scenario (in default one I am installing metricbeat and putting the same on disabled n stopped mode and in metricbeat-enable I am doing viceversa). I want two containers/instances for the same. so that can test separately.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions