Skip to content

Commit

Permalink
Merge branch 'startup_options_new' into statrtup_options
Browse files Browse the repository at this point in the history
  • Loading branch information
brakkioris committed Apr 12, 2024
2 parents dd29f4d + 2f39386 commit 7a467eb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
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(' ') }}"

0 comments on commit 7a467eb

Please sign in to comment.