35e6b139fc
ci / validate (push) Failing after 1m8s
Rework portfolio around Linux operations, Zabbix monitoring, migration validation, and ELK/Grafana log observability. Add AAP-style LVM resize workflow, Zabbix server/proxy/agent automation assets, Linux/AIX monitoring templates, and updated validation CI.
22 lines
755 B
Markdown
22 lines
755 B
Markdown
# Scenario: Simulate Failure and Patch
|
|
|
|
## Description
|
|
|
|
Validate that a service-level failure can be detected, recovered, and followed by a controlled patch workflow. This mirrors a maintenance window where a degraded node is stabilized before package updates are applied.
|
|
|
|
## Commands
|
|
|
|
```bash
|
|
cd professional-infra/linux-operations-automation
|
|
./scripts/simulate_failure.sh service 30 web
|
|
ansible-playbook -i inventory/hosts.ini playbooks/patch.yml
|
|
ansible-playbook -i inventory/hosts.ini playbooks/hardening.yml --check
|
|
```
|
|
|
|
## Expected Result
|
|
|
|
- The simulation records a temporary service failure.
|
|
- The service is restored after cleanup.
|
|
- The patch playbook completes without unreachable hosts.
|
|
- Hardening check mode reports no destructive changes.
|