Skip to content
This repository has been archived by the owner on May 30, 2022. It is now read-only.

Commit

Permalink
Merge pull request #384 from nelsonkopliku/enable_data_collection_fea…
Browse files Browse the repository at this point in the history
…ture_flag

added DATA_COLLECTOR_ENABLED=true to the CI
  • Loading branch information
fabriziosestito committed Oct 27, 2021
2 parents 9015178 + b4a8bde commit 672a7e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ jobs:
TRENTO_USER: ${{ secrets.TRENTO_USER }}
TRENTO_SERVER_HOST: ${{ secrets.TRENTO_SERVER_HOST }}
TRENTO_REPO_OWNER: ${{ github.repository_owner }}
DATA_COLLECTOR_ENABLED: ${{ secrets.DATA_COLLECTOR_ENABLED }}
steps:
- uses: actions/checkout@v2
- name: install and enable agents
Expand All @@ -200,6 +201,8 @@ jobs:
for target_host in ${TRENTO_AGENT_HOSTS//,/ }
do
ssh "$TRENTO_USER@$target_host" "TRENTO_REPO_OWNER=$TRENTO_REPO_OWNER sudo --preserve-env=PATH,TRENTO_REPO_OWNER bash -s" -- < ./install-agent.sh "--rolling" "--use-tgz" "--agent-bind-ip" "$target_host" "--server-ip" "$TRENTO_SERVER_HOST"
ssh "$TRENTO_USER@$target_host" "sudo systemctl set-environment DATA_COLLECTOR_ENABLED=$DATA_COLLECTOR_ENABLED"
ssh "$TRENTO_USER@$target_host" "sudo systemctl set-environment COLLECTOR_HOST=$TRENTO_SERVER_HOST"
ssh "$TRENTO_USER@$target_host" "sudo systemctl enable --now trento-agent.service"
done
Expand Down

0 comments on commit 672a7e4

Please sign in to comment.