mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-24 22:23:06 +00:00
Initial molecule thanks to @bbaassssiiee in rh8
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
30abc4b9d0
commit
dadbeaa84e
9 changed files with 205 additions and 0 deletions
34
molecule/default/molecule.yml
Normal file
34
molecule/default/molecule.yml
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
---
|
||||
# Molecule configuration
|
||||
# https://molecule.readthedocs.io/en/latest/
|
||||
|
||||
driver:
|
||||
name: docker
|
||||
|
||||
platforms:
|
||||
- name: ubi9
|
||||
image: registry.access.redhat.com/ubi9/ubi-init
|
||||
pre_build_image: true
|
||||
volumes:
|
||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||
privileged: true
|
||||
command: "/usr/sbin/init"
|
||||
capabilities:
|
||||
- SYS_ADMIN
|
||||
|
||||
provisioner:
|
||||
name: ansible
|
||||
config_options:
|
||||
defaults:
|
||||
interpreter_python: auto_silent
|
||||
callbacks_enabled: profile_tasks, timer
|
||||
|
||||
lint: |
|
||||
set -e
|
||||
yamllint .
|
||||
ansible-lint
|
||||
flake8
|
||||
|
||||
verifier:
|
||||
name: ansible
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue