Skip to content

Commit

Permalink
Merge pull request #213 from puzzle/cf-improvements
Browse files Browse the repository at this point in the history
minor improvements
  • Loading branch information
friendlypenguin authored Oct 25, 2023
2 parents d99939d + 1fa2ca8 commit b173de8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions content/en/docs/11/_index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ ansible-galaxy collection install ansible.eda
Enterprise Linux 9:
```bash
sudo dnf install java-17-openjdk
export JAVA_HOME=/usr/lib/jvm/jre-17-openjdk
sudo dnf install python3-pip
python3 -m venv ~/python
. ~/python/bin/activate
Expand All @@ -35,9 +36,7 @@ pip install ansible ansible-rulebook

ansible-galaxy collection install ansible.eda

sudo dnf install systemd-devel
sudo dnf install gcc
sudo dnf install python3-devel
sudo dnf install systemd-devel gcc python3-devel

pip install -r ~/.ansible/collections/ansible_collections/ansible/eda/requirements.txt
```
Expand Down Expand Up @@ -224,7 +223,7 @@ curl -H 'Content-Type: application/json' -d "{\"message\": \"webservers down\"}"
* It should check for three things:
* check if the website on one of the two webservers is down. (Same as Task 3 above)
* check if the message matches exactly the string "webservers down" (Same as Task 5 above)
* check if the message contains the string "ERROR"
* check if the message contains the string "ERROR" or "error"
* If one of the criterias above are met, do two things:
1. run the ansible shell module to print the string "WEBSERVER ISSUES, REMEDIATION IN PROGRESS." into the journald log. (Use the command `systemd-cat echo "WEBSERVER ISSUES, REMEDIATION IN PROGRESS."`)
2. run playbook `webservers.yml`
Expand Down

0 comments on commit b173de8

Please sign in to comment.