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 2f76da2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions infra/scenarios/start-scenario
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

die() {
echo "FATAL: $*" >&2
cat /tmp/ansible-freeipa-scenario
exit 1
}

Expand Down Expand Up @@ -69,7 +70,7 @@ cd "${LABDIR}"

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

podman pod ls
podman network ls
Expand All @@ -78,15 +79,15 @@ 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 | tee -a /tmp/ansible-freeipa-scenario.log

# 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 | tee -a /tmp/ansible-freeipa-scenario.log

# Initial scenario configuration
echo Deploying scenario initial configuration
ansible-playbook -i inventory.yml playbooks/config_*.yml
ansible-playbook -i inventory.yml playbooks/config_*.yml | tee -a /tmp/ansible-freeipa-scenario.log

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

0 comments on commit 2f76da2

Please sign in to comment.