Repository navigation
fix(debian): move example configurations out of /etc/vector #25884
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
Open
koen-serry
wants to merge
19
commits into
vectordotdev:master
Choose a base branch
from
koen-serry:fix-debian-conffiles
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
7bc4e40
fix(debian): preserve vector.yaml as a conffile
koen-serry 2d71eb2
Merge branch 'master' into fix-debian-conffiles
koen-serry 985902b
fix(debian): preserve pre-existing vector.yaml when it becomes a conf…
koen-serry a1bc7cb
Merge branch 'master' into fix-debian-conffiles
koen-serry 80f61b8
fix(debian): add rm_conffile transitions for /etc/vector/examples/*.yaml
thomasqueirozb 657e319
fix(debian): use 0.57.0-1 as rm_conffile prior-version
thomasqueirozb bbd27f3
fix(debian): treat obsolete vector.yaml conffile entry as untracked
thomasqueirozb 0c54b36
Merge branch 'master' into fix-debian-conffiles
pront 621d6e9
Merge branch 'master' into fix-debian-conffiles
koen-serry 8ec1d43
fix(debian): complete conffile transitions in postrm and guard foreig…
koen-serry ce5c026
Merge branch 'master' of https://github.com/vectordotdev/vector into …
koen-serry d99827a
chore(changelog): add missing trailing newline to fragment
koen-serry 72c871a
fix(debian): preserve obsolete configs and migrate recent examples
pront 1b4bf55
Merge branch 'master' into fix-debian-conffiles
koen-serry 5cc4668
Merge branch 'master' of https://github.com/vectordotdev/vector into …
koen-serry 675b0f7
chore(changelog): separate authors line from fragment body
koen-serry 82180de
Merge remote-tracking branch 'upstream/master' into fix-debian-conffiles
koen-serry 7a02b19
Merge remote-tracking branch 'upstream/master' into fix-debian-conffiles
koen-serry 77eb212
fix(debian): split out the vector.yaml conffile change
koen-serry 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 hidden or 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 hidden or 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,13 @@ | ||
| # Debian example configurations moved out of /etc/vector {#deb-examples-relocation} | ||
|
|
||
| ## Summary | ||
|
|
||
| The Debian package now installs its example configurations to `/usr/share/doc/vector/examples/` instead of `/etc/vector/examples/`. Examples are documentation rather than administrator-managed configuration, so `/etc` was the wrong location for them. | ||
|
|
||
| ## Migration | ||
|
|
||
| No action is required for most users. The examples are not read by Vector; they are reference material only, and the new copies are installed automatically on upgrade. | ||
|
|
||
| Because the old paths were dpkg conffiles, the upgrade removes unmodified copies from `/etc/vector/examples/` and leaves any file you edited in place, so local changes are never discarded silently. If you edited an example and want to keep it, move it somewhere outside `/etc/vector/examples/`; if you referenced one from your own configuration with a path under `/etc/vector/examples/`, update that path to `/usr/share/doc/vector/examples/`. | ||
|
|
||
| authors: koenserry |
This file contains hidden or 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 hidden or 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,30 @@ | ||
| #!/bin/sh | ||
| set -e | ||
|
|
||
| # Complete the rm_conffile transition started in preinst; see preinst for | ||
| # context. dpkg-maintscript-helper requires rm_conffile to be called from | ||
| # preinst, postinst *and* postrm so that aborted upgrades restore the files | ||
| # it moved aside and purges clean up its backups. | ||
| for _example_conffile in \ | ||
| docs_example.yaml \ | ||
| environment_variables.yaml \ | ||
| es_s3_hybrid.yaml \ | ||
| file_to_cloudwatch_metrics.yaml \ | ||
| file_to_prometheus.yaml \ | ||
| http_sink_custom_retry.yaml \ | ||
| prometheus_to_console.yaml \ | ||
| stdio.yaml \ | ||
| varint_framing_protobuf.yaml \ | ||
| wrapped_json.yaml \ | ||
| namespacing/sinks/es_cluster.yaml \ | ||
| namespacing/sinks/s3_archives.yaml \ | ||
| namespacing/sources/apache_logs.yaml \ | ||
| namespacing/transforms/apache_parser.yaml \ | ||
| namespacing/transforms/apache_sample.yaml \ | ||
| namespacing/vector.yaml | ||
| do | ||
| dpkg-maintscript-helper rm_conffile \ | ||
| "/etc/vector/examples/$_example_conffile" 0.59.0-1~ vector -- "$@" | ||
| done | ||
|
|
||
| #DEBHELPER# |
This file contains hidden or 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 hidden or 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.
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.
Uh oh!
There was an error while loading. Please reload this page.