-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use otelcol-config for config manipulations (#103)
* Use otelcol-config for config manipulations * Remove write_sumologic_extension * Install otelcol-config in test-install-script job (#111) Signed-off-by: Eric Chlebek <[email protected]> * Remove the concept of systemd from install script Signed-off-by: Eric Chlebek <[email protected]> * Remove systemd concepts Signed-off-by: Eric Chlebek <[email protected]> * Remove unused code Signed-off-by: Eric Chlebek <[email protected]> * Move much of the script to otelcol-config * Deprecate all systemd configuration manipulation * Deprecate several flags on Linux * Preserve Mac OS functionality Signed-off-by: Eric Chlebek <[email protected]> * Fix infinite loop in script Remove unnecessary tests Signed-off-by: Eric Chlebek <[email protected]> * Return 2 on incorrect usage Signed-off-by: Eric Chlebek <[email protected]> * Hardcode app version for now Also fix some test bugs Signed-off-by: Eric Chlebek <[email protected]> * Don't try to get latest release in install script tests Signed-off-by: Eric Chlebek <[email protected]> * Install package repositories with install.sh Signed-off-by: Eric Chlebek <[email protected]> * Fix debian package uninstallation Signed-off-by: Eric Chlebek <[email protected]> * Add -y to package removal calls Signed-off-by: Eric Chlebek <[email protected]> * Test speculative change Signed-off-by: Eric Chlebek <[email protected]> * Support --purge for apt-get Signed-off-by: Eric Chlebek <[email protected]> * Use --purge in script tests Signed-off-by: Eric Chlebek <[email protected]> * Remove autoconfirm tests on linux Signed-off-by: Eric Chlebek <[email protected]> * Don't do user checks Signed-off-by: Eric Chlebek <[email protected]> * Fixes for darwin and windows Signed-off-by: Eric Chlebek <[email protected]> * Fix add-tag routine Signed-off-by: Eric Chlebek <[email protected]> * Don't show usage for no args when token env set Signed-off-by: Eric Chlebek <[email protected]> * use --quiet for calling package managers Signed-off-by: Eric Chlebek <[email protected]> * Fix crash when otelcol-config is not yet installed Signed-off-by: Eric Chlebek <[email protected]> * Use more --quiet Signed-off-by: Eric Chlebek <[email protected]> * Use otelcol-config for darwin-specific subroutine Signed-off-by: Eric Chlebek <[email protected]> * Replace common.yaml with 00-otelcol-config-settings.yaml Signed-off-by: Eric Chlebek <[email protected]> * Complain when installation token not provided Signed-off-by: Eric Chlebek <[email protected]> * Use otelcol-config for configuration in install.sh Use `otelcol-config` in `install.sh` to perform configuration on both Linux and macOS. The `--download-only` flag will now only work for macOS as it is not applicable to other platforms. The `--skip-config` flag has been removed as it is no longer applicable to installations. The `--skip-token` flag has been deprecated and install.sh will now exit with an error if no token has been provided. Add `DARWIN_PKG_URL` for overriding the URL used to download macOS packages in `install.sh`. Move test-install-script job to build_packages workflow Ownership and permissions of files should no longer be changed by `install.sh`. Added `conf.d-available` directory to Linux & macOS packages. Added `opamp.d` directory to Linux & macOS packages. The `ci-builds` repository is now used in CI for install script tests. Set timeout for test-install-script to 15 mins. Print launchdaemon state while waiting for start. In cases where we detect an existing installation of the collector made with the previous install script (without a package manager), we clean it up, backup its config, and setup the collector using the package manager. Add .op directory to .gitignore Use service wrapper on linux & macOS to change which flags are used to start the `otelcol-sumo` service depending on the existance of the `sumologic-remote.yaml` file. Co-authored-by: Cyril Cressent <[email protected]> Co-authored-by: Eric Chlebek <[email protected]> Signed-off-by: Justin Kolberg <[email protected]> --------- Signed-off-by: Eric Chlebek <[email protected]> Signed-off-by: Justin Kolberg <[email protected]> Co-authored-by: Eric Chlebek <[email protected]> Co-authored-by: Eric Chlebek <[email protected]>
- Loading branch information
1 parent
ae4886d
commit 563a140
Showing
40 changed files
with
1,486 additions
and
2,740 deletions.
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 was deleted.
Oops, something went wrong.
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
Empty file.
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
extensions: | ||
sumologic: | ||
ephemeral: true |
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
Oops, something went wrong.