File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 1+ # This file is maintained by Chef. Do not edit, all changes will be
2+ # overwritten. See opsfiles/chef/cookbooks/core/fb_chrony
3+
4+ # Command-line options for chronyd
5+ OPTIONS="-F 2 -r"
Original file line number Diff line number Diff line change 2424 chrony_conf = '/etc/chrony.conf'
2525 chrony_user = 'chrony'
2626 chrony_group = 'chrony'
27+ chrony_sysconfig = '/etc/sysconfig/chronyd'
2728elsif node . debian_family?
2829 chrony_svc = 'chrony'
2930 chrony_conf = '/etc/chrony/chrony.conf'
3031 chrony_user = '_chrony'
3132 chrony_group = '_chrony'
33+ chrony_sysconfig = '/etc/default/chrony'
3234else
3335 fail 'fb_chrony: unsupported platform, aborting!'
3436end
3537
3638include_recipe 'fb_chrony::packages'
3739
40+ cookbook_file chrony_sysconfig do
41+ source 'chronyd_sysconfig'
42+ mode '0755'
43+ owner node . root_user
44+ group node . root_group
45+ notifies :restart , 'service[chrony]'
46+ end
47+
3848directory '/var/run/chrony' do
3949 owner chrony_user
4050 group chrony_group
You can’t perform that action at this time.
0 commit comments