-
Notifications
You must be signed in to change notification settings - Fork 836
Fix chronyd_specify_remote_server remediation #15100
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
Merged
jan-cerny
merged 10 commits into
ComplianceAsCode:master
from
alanmcanonical:chronyd_fix
Sep 14, 2026
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
3f578b2
Move the logic of checking existance inside for loop for bash_ensure_…
alanmcanonical 7ecb211
Change remediation to append if not exist
alanmcanonical 10ee941
Drop grep suppress flag
alanmcanonical c32cd47
Skip chronyd conf dir tests on Ubuntu
alanmcanonical 51648e8
Remove indent
alanmcanonical b1b679e
Dot escaping
alanmcanonical e21e7fd
Wrapped {{{ servers_list }}} in double quotes and prevent read from i…
alanmcanonical acc6073
Add escape test case
alanmcanonical f6dea80
Comment out invalid server lines
alanmcanonical 732461c
Enable escape_dot.fail.sh only on Ubuntu
alanmcanonical 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
2 changes: 1 addition & 1 deletion
2
linux_os/guide/services/ntp/chronyd_specify_remote_server/tests/confdir.pass.sh
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
9 changes: 9 additions & 0 deletions
9
linux_os/guide/services/ntp/chronyd_specify_remote_server/tests/escape_dot.fail.sh
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,9 @@ | ||
| #!/bin/bash | ||
| # packages = chrony | ||
| # platform = multi_platform_ubuntu | ||
| # variables = var_multiple_time_servers=0.pool.ntp.org,1.pool.ntp.org | ||
|
|
||
| rm -rf /etc/chrony/conf.d | ||
| rm -rf /etc/chrony/sources.d | ||
|
|
||
| echo "server 0xpool-ntp-org" > {{{ chrony_conf_path }}} | ||
2 changes: 1 addition & 1 deletion
2
linux_os/guide/services/ntp/chronyd_specify_remote_server/tests/multiple_sourcedir.pass.sh
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
2 changes: 1 addition & 1 deletion
2
linux_os/guide/services/ntp/chronyd_specify_remote_server/tests/sourcedir.pass.sh
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.