Skip to content

Commit 7a467eb

Browse files
committed
Merge branch 'startup_options_new' into statrtup_options
2 parents dd29f4d + 2f39386 commit 7a467eb

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@ timesync_ntp_provider: chrony
112112
timesync_chrony_custom_settings:
113113
- "logdir /var/log/chrony"
114114
- "log measurements statistics tracking"
115+
116+
# List of daeomn options that will be configured at startup of the services
117+
# using 'OPTIONS' variable in '/etc/sysconfig/chronyd'. For all available
118+
# options, see 'chronyd(8)' man page.
119+
timesync_chrony_service_settings: []
115120
```
116121
117122
## Example Playbooks

defaults/main.yml

+1
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ timesync_min_sources: 1
77
timesync_ntp_hwts_interfaces: []
88
timesync_ntp_provider: ""
99
timesync_max_distance: 0
10+
timesync_chrony_service_settings: []

templates/chronyd.sysconfig.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{{ ansible_managed | comment }}
22
{{ "system_role:timesync" | comment(prefix="", postfix="") }}
33

4-
OPTIONS=""
4+
OPTIONS="{{ timesync_chrony_service_settings | default([]) | join(' ') }}"

0 commit comments

Comments
 (0)