-
Notifications
You must be signed in to change notification settings - Fork 160
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
Set env vars for service instead of machine #3930
Merged
pjanotti
merged 78 commits into
signalfx:main
from
pjanotti:move-windows-env-vars-to-service
Jan 23, 2024
Merged
Changes from all commits
Commits
Show all changes
78 commits
Select commit
Hold shift + click to select a range
e6a4634
Set env vars for service instead of machine
pjanotti 8dd68c7
Fix copy and pasted typo
pjanotti 810e4f0
Remove unused variable
pjanotti e5858d6
Update chocolatey to use env vars at the service scope
pjanotti d50a9c5
Fix check for "SPLUNK_ACCESS_TOKEN"
pjanotti 640e405
Handle upgrade in chocolatey
pjanotti 50a8cb5
Get-Package not available on all Windows versions
pjanotti aecc559
Add messages to track stage on chocolatey install
pjanotti bf7f0a4
Adding more messages to chocolatey script
pjanotti da12a5b
Fix service on the registry but no env
pjanotti fe6a0ce
Restore $regKey on install.ps1
pjanotti e091ad7
Add helper allow running the collector manually on Windows
pjanotti 5282d07
Add breaking change to CHANGELOG.md
pjanotti 43f49f1
Add -config_path switch to install.ps1
pjanotti 224ab0b
Fix pipeline collector for Windows ZC IIS test
pjanotti 51ed501
MSI to set SPLUNK_CONFIG at the service scope
pjanotti 9a5310a
Merge branch 'main' into move-windows-env-vars-to-service
pjanotti 75638da
Minor doc updates
pjanotti a82a0bf
Update ansible tests for Windows env vars
pjanotti bb0cce6
Merge branch 'main' into move-windows-env-vars-to-service
pjanotti 802a505
Correct type of *_ENABLE_PROFILING value
pjanotti 32e46d1
Merge branch 'move-windows-env-vars-to-service' of github.com:pjanott…
pjanotti 96b256a
ansible: Windows deployment updates
pjanotti 35c6573
Merge branch 'main' into move-windows-env-vars-to-service
pjanotti 5b7ab83
fix yamllint issues
pjanotti 3c5c1ab
Merge branch 'move-windows-env-vars-to-service' of github.com:pjanott…
pjanotti 831c6d0
fix yamllint
pjanotti d3435b8
Merge branch 'main' into move-windows-env-vars-to-service
pjanotti 1ca8eac
Output vagrant.err in case of failure
pjanotti f51de23
Fix splunk_trace_url check
pjanotti 21944bb
Always try to display the vagrant errors
pjanotti 0d543e5
Check if event log has some info about failure
pjanotti d51b65a
Merge branch 'main' into move-windows-env-vars-to-service
pjanotti c399f39
Remove event log steps: running on mac not Windows
pjanotti c61b1a7
Launch vagrant
pjanotti 82b7846
Init vagrant
pjanotti 44c04f0
Drop launch vagrant step
pjanotti ffcb73e
Fix ansible Windows
pjanotti 8c8e1bb
Fix yamllint issues
pjanotti e34afce
Remove vagrant init
pjanotti 9c77ee1
Merge branch 'main' into move-windows-env-vars-to-service
pjanotti 237bc45
Updates to pass local run of molecule tests
pjanotti 94602d8
Merge branch 'main' into move-windows-env-vars-to-service
pjanotti 3658946
Update chef deployment
pjanotti 0719a1e
Merge branch 'main' into move-windows-env-vars-to-service
pjanotti bf9d767
Proper data type for multi_string registry entry
pjanotti 3c50447
Fix var name typo
pjanotti d00b8e6
Fix order of collector environment variables
pjanotti 6388b90
Experiment custom_vars test
pjanotti 4ff26c6
Pay attention to conditional variables
pjanotti 069ee45
First try with Puppet
pjanotti cbaf5d4
Fix syntax for Puppet
pjanotti 1578caa
Back to curly brackets
pjanotti 4f18580
Try extension fixes
pjanotti 50f9c0f
Fix conditional
pjanotti 782aae0
Remove to_s
pjanotti 4d8465e
Use empty instead of is_empty
pjanotti 6bbc178
Fix re-declaration of registry_key
pjanotti b7dcb09
Fix puppet lint issue
pjanotti 2c3af09
Do not re-use registry_key
pjanotti e87063b
Use array instead of multi_string
pjanotti e1cf478
Ensure side effects
pjanotti 2f6ecf4
Update test to use REG_MULTI_SZ
pjanotti d193f50
Immutability?
pjanotti faca2ce
Fix lint error
pjanotti e1ca7c3
Fix test
pjanotti 52a6ebf
Removing name re-use
pjanotti 1b1007f
Update CHANGELOG and README for Puppet
pjanotti 5edf011
Updates to mass deployments docs
pjanotti eb38784
Update last version deploying with machine wide env vars
pjanotti b140644
Sort service environment variables set via PowerShell
pjanotti 34925c2
Improve handling of collector restart in Ansible
pjanotti b8b7005
Remove extra double-quotes in SPLUNK_CONFIG for Ansible
pjanotti 8287246
Fix Ansible verify SPLUNK_CONFIG strings
pjanotti 7b076c6
Fix Windows testing checking for legacy versions of the collector
pjanotti bc206a2
Update CHANGELOG.md
pjanotti 3ca07b7
Update last version still setting machine wide env vars
pjanotti 33534ea
Merge branch 'main' into move-windows-env-vars-to-service
pjanotti File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,6 @@ | |
ansible.windows.win_package: | ||
path: "{{otel_msi_package.dest}}" | ||
state: present | ||
notify: "restart windows splunk-otel-collector" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. are these removals related and necessary? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, the restart should only happen after the environment variables are set for the service. |
||
|
||
- name: Merge custom config into the default config | ||
ansible.builtin.import_tasks: config_override.yml | ||
|
@@ -48,11 +47,9 @@ | |
content: '{{ updated_config | to_nice_yaml (indent=2) }}' | ||
dest: "{{ splunk_otel_collector_config }}" | ||
when: splunk_config_override != '' | ||
notify: "restart windows splunk-otel-collector" | ||
|
||
- name: Push Custom Config file for splunk-otel-collector, If provided | ||
ansible.windows.win_template: | ||
src: "{{splunk_otel_collector_config_source}}" | ||
dest: "{{splunk_otel_collector_config}}" | ||
when: splunk_otel_collector_config_source != "" | ||
notify: "restart windows splunk-otel-collector" |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Is this removal related to the env var changes? Wonder if there should be a new var to dictate if expected.
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 was failing consistently for me because the status had changed to "started" - I confess that I don't understand how it was working before.