Skip to content

Instantly share code, notes, and snippets.

@tvass
Created September 6, 2019 10:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tvass/eaaf391f80be12df20f2ab566fa4720a to your computer and use it in GitHub Desktop.
Save tvass/eaaf391f80be12df20f2ab566fa4720a to your computer and use it in GitHub Desktop.
(nv) not tested code to loop over dci topics and start a run
Something like this ...
#!/bin/bash
array=( "7.6" "7.7" "7.8" )
for i in "${array[@]}"
do
cat <<EOF > /path/to/settings.yml
topic: $i
local_repo_ip: x.x.x.x
download_only: true
EOF
/path/to/start/dci-rhel-agent
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment