Skip to content

Commit

Permalink
FIXUP: redirect output to log file.
Browse files Browse the repository at this point in the history
  • Loading branch information
rjeffman committed Feb 11, 2025
1 parent cfa3326 commit 81572c5
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions infra/scenarios/start-scenario
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash -eu

die() {
echo "FATAL: $*" >&2
[ $# -gt 0 ] && echo "FATAL: $*" >&2
exit 1
}

Expand Down Expand Up @@ -69,24 +69,25 @@ cd "${LABDIR}"

# Start compose
echo Starting compose
podman-compose up -d > /tmp/ansible-freeipa-scenario.log 2>&1
podman-compose up -d || die "Could not create compose"

podman --version
podman pod ls
podman network ls
podman ps --all
ansible-galaxy collection list

# Deploy external nodes
echo Deploying external nodes
ansible-playbook -i inventory.yml playbooks/deploy_*.yml
ansible-playbook -i inventory.yml playbooks/deploy_*.yml || die

# Deploy IPA cluster
echo Deploying IPA cluster
ansible-playbook -i inventory.yml playbooks/install-cluster.yml
ansible-playbook -i inventory.yml playbooks/install-cluster.yml || die

# Initial scenario configuration
echo Deploying scenario initial configuration
ansible-playbook -i inventory.yml playbooks/config_*.yml
ansible-playbook -i inventory.yml playbooks/config_*.yml || die

# Print container names
echo -e "\n\nScenario containers:"
Expand Down

0 comments on commit 81572c5

Please sign in to comment.