New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #15223: Execute a single directive on the agent #247
Fixes #15223: Execute a single directive on the agent #247
Conversation
share/commands/directive-run
Outdated
@@ -0,0 +1,121 @@ | |||
#!/bin/bash | |||
# @description List directives that can be run on this agent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Run a specific list of directives
share/commands/directive-run
Outdated
fi | ||
if [ ! -f "${BASE_PATH}/rudder-directives.csv" ] | ||
then | ||
echo "Your server didn't generate rudder-directives.csv, maybe you are not up to date" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or node isn't accepted yet within Rudder ?
share/commands/directive-run
Outdated
[ "${mode}" = "audit" ] && AUDIT="true" | ||
fi | ||
|
||
BS="${BS},set_dry_run_mode_${DRY_RUN}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how is DRY_RUN defined ?
PR updated with a new commit |
you have conflict in your PR |
share/lib/common.sh
Outdated
} | ||
|
||
# Check that a bootstrap is necessary | ||
bootstrap_check() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is already in 5.1
share/commands/directive-run
Outdated
|
||
BS="${BS},rudder_end" | ||
|
||
echo rudder agent run ${OPTS} -b "${BS}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you don't want the echo there
PR rebased |
2830d28
to
8a81a9f
Compare
PR updated with a new commit |
4658a46
to
27b959d
Compare
Commit modified |
This PR is not mergeable to upper versions. |
OK, squash merging this PR |
27b959d
to
2a1bc3e
Compare
https://issues.rudder.io/issues/15223