mirror of
https://github.com/krkn-chaos/krkn.git
synced 2026-04-15 06:57:28 +00:00
This commit adds kraken to CI pipeline and thereby enabling chaos scenarios to be injected on specified jump host.
27 lines
582 B
YAML
27 lines
582 B
YAML
---
|
|
- hosts: orchestration
|
|
gather_facts: true
|
|
remote_user: "{{ orchestration_user }}"
|
|
vars_files:
|
|
- vars/kraken_vars.yml
|
|
|
|
tasks:
|
|
- name: Git clone kraken repository
|
|
git:
|
|
repo: "{{ kraken_repository }}"
|
|
dest: "{{ kraken_dir }}"
|
|
force: yes
|
|
|
|
- name: Generate kraken config file
|
|
template:
|
|
src: kraken.j2
|
|
dest: "{{ kraken_config }}"
|
|
|
|
- name: Start injecting failures
|
|
shell: |
|
|
cd "{{ kraken_dir }}"
|
|
cp -r "{{ scenarios_folder_path }}"* scenarios/
|
|
unset CONFIG
|
|
python3 run_kraken.py
|
|
ignore_errors: yes
|