Skip to content
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

feat: Implements CIS Benchmark - 2.1.2 Ensure chrony is configured #236

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ timesync_ntp_provider: chrony
timesync_chrony_custom_settings:
- "logdir /var/log/chrony"
- "log measurements statistics tracking"

# List of daeomn options that will be configured at startup of the services
# using 'OPTIONS' variable in '/etc/sysconfig/chronyd'. For all available
# options, see 'chronyd(8)' man page.
timesync_chrony_service_settings: []
```

## Example Playbooks
Expand Down
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ timesync_min_sources: 1
timesync_ntp_hwts_interfaces: []
timesync_ntp_provider: ""
timesync_max_distance: 0
timesync_chrony_service_settings: []
2 changes: 1 addition & 1 deletion templates/chronyd.sysconfig.j2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ ansible_managed | comment }}
{{ "system_role:timesync" | comment(prefix="", postfix="") }}

OPTIONS=""
OPTIONS="{{ timesync_chrony_service_settings | default([]) | join(' ') }}"
Loading