-
Notifications
You must be signed in to change notification settings - Fork 222
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
Don't require APM to enable datadog-installer #588
Conversation
02fa5a4
to
3982874
Compare
3982874
to
a7999a4
Compare
And use it to enable the installer installation
f8de2d2
to
faf8566
Compare
faf8566
to
f200ce8
Compare
.circleci/config.yml
Outdated
- run: ANSIBLE_JINJA2_NATIVE="<<parameters.jinja2_native>>" ansible-playbook -i ./ci_test/inventory/<<parameters.inventory>> "./ci_test/install_installer.yaml" | ||
- run: datadog-installer version | ||
- run: ANSIBLE_JINJA2_NATIVE="<<parameters.jinja2_native>>" ansible-playbook -i ./ci_test/inventory/<<parameters.inventory>> "./ci_test/install_installer.yaml" -e datadog_apm_instrumentation_enabled="<<parameters.apm_enabled>>" -e datadog_remote_updates="<<parameters.remote_updates>>" | ||
- run: bash -c 'if [ -n "<<parameters.apm_enabled>>" ] || [ "<<parameters.remote_updates>>" = "true" ]; then datadog-installer version; elif command -v datadog-installer; then echo datadog-installer should not be installed; exit 2; else echo datadog-installer is not installed as expected; fi' |
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.
nit: I am not sure we need datadog-installer is not installed as expected
and I am a bit curious about whether it's possible to have smaller lines
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.
agreed on the line size, this is handled in a follow up PR: 3a07803
Although as it's currently kind of blocked, I'll cherry pick it here
Regarding the echo ... as expected
this was to avoid having a large chunk of shell script being displayed with no insight, I find it a bit reassuring to have the test job saying what failed/succeeded
This PR allows the datadog-installer to be enabled trough a new
remote_updates
variable