Skip to content

add monitoring setup #8

add monitoring setup

add monitoring setup #8

name: Test install_monitoring playbook
on:
pull_request:
paths:
- "roles/monitoring_client/**"
- "roles/monitoring_server/**"
- ".github/workflows/molecule.yml"
- ".github/workflows/molecule-monitoring.yml"
jobs:
molecule-monitoring:
runs-on: [self-hosted, mirsg-linux]
container: python:3.12-slim-bullseye
strategy:
fail-fast: true
matrix:
scenario:
- centos7_monitoring
- rocky9_monitoring
env:
MOLECULE_RUN_TAGS: monitoring
PY_COLORS: 1
ANSIBLE_FORCE_COLOR: 1
steps:
- name: Check out the codebase
uses: actions/checkout@v4
with:
path: ansible_collections/mirsg/infrastructure
- name: Install dependencies
run: |
apt-get update && apt-get -y install git rsync
- name: Install Python dependencies
shell: bash
run: |
python3 -m pip install --upgrade pip
python3 -m pip install \
ansible \
molecule \
molecule-plugins[docker] \
docker \
passlib \
bcrypt==4.0.1 \
requests
- name: Test with molecule
shell: bash
run: |
cd ansible_collections/mirsg/infrastructure/tests
molecule test --scenario-name ${{ matrix.scenario }}