blob: e5a96e87fe090950722f8835e3fc021aa12cb854 [file] [log] [blame]
Filip Pytloun10e4d6c2015-10-06 16:28:32 +02001===
Ondrej Smolad3c67032018-04-04 12:16:05 +02002NTP
Filip Pytloun10e4d6c2015-10-06 16:28:32 +02003===
4
5Network time synchronisation services.
6
7Sample pillars
8==============
9
Ondrej Smolad3c67032018-04-04 12:16:05 +020010NTP client (old version), not used when stratum parameter exists
Filip Pytloun10e4d6c2015-10-06 16:28:32 +020011
12.. code-block:: yaml
13
14 ntp:
15 client:
16 enabled: true
17 strata:
18 - ntp.cesnet.cz
19 - ntp.nic.cz
20
Ondrej Smolad3c67032018-04-04 12:16:05 +020021NTP client (extended definitions with auth)
22
23.. code-block:: yaml
24
25 ntp:
26 client:
27 enabled: true
28 stratum:
29 primary:
30 server: ntp.cesnet.cz
31 key_id: 1
32 secondary:
33 server: ntp.nic.cz
34 key_id: 2
35
36NTP with MD5 auth
37Requires extended definitions
38
39.. code-block:: yaml
40
41 ntp:
42 client:
43 enabled: true
44 auth:
45 enabled: true
46 secrets:
47 1:
48 secret_type: 'M'
49 secret: 'Runrabbitrundigthath'
50 trustedkey: true
51 2:
52 secret_type: 'M'
53 secret: 'Howiwishyouwereherew'
54 trustedkey: true
55 stratum:
56 primary:
57 server: ntp.cesnet.cz
58 key_id: 1
59 secondary:
60 server: ntp.nic.cz
61 key_id: 2
62
63.. code-block:: yaml
64
65 ntp:
66 client:
67 enabled: false
68 server:
69 enabled: true
70 auth:
71 enabled: true
72 secrets:
73 1:
74 secret_type: 'M'
75 secret: 'Runrabbitrundigthath'
76 trustedkey: true
77 2:
78 secret_type: 'M'
79 secret: 'Howiwishyouwereherew'
80 trustedkey: true
81 stratum:
82 primary:
83 server: ntp.cesnet.cz
84 key_id: 1
85 secondary:
86 server: ntp.nic.cz
87 key_id: 2
88
azvyagintsev4e404702018-05-30 20:02:03 +030089Cleanup ntp configurations left by DHCP:
90
91.. code-block:: yaml
92
93 ntp:
94 client:
95 enabled: true
96 remove_dhcp_conf: true # default false
97
Ondrej Smolad3c67032018-04-04 12:16:05 +020098Peering (simple):
99
100.. code-block:: yaml
101
102 ntp:
103 server:
104 peers:
105 - 192.168.0.241
106 - 192.168.0.242
107
108Peering (extended definitions):
109
110.. code-block:: yaml
111
112 ntp:
113 server:
114 peers:
115 1:
116 host: 192.168.31.1
117 2:
118 host: 192.168.31.2
119 3:
120 host: 192.168.31.3
121
122Enable listen/ignote on specific addresses
123
124.. code-block:: yaml
125
126 ntp:
127 server:
128 1:
129 value: wildcard
130 action: ignore
131 2:
132 value: ::1
133 action: listen
134 3:
135 value: 192.168.31.1
136 action: listen
137
138
Filip Pytloun10e4d6c2015-10-06 16:28:32 +0200139Read more
140=========
141
142* https://collectd.org/wiki/index.php/Plugin:NTPd
Filip Pytlounc4da4342017-02-02 13:02:03 +0100143
144Documentation and Bugs
145======================
146
147To learn how to install and update salt-formulas, consult the documentation
148available online at:
149
150 http://salt-formulas.readthedocs.io/
151
152In the unfortunate event that bugs are discovered, they should be reported to
153the appropriate issue tracker. Use Github issue tracker for specific salt
154formula:
155
156 https://github.com/salt-formulas/salt-formula-ntp/issues
157
158For feature requests, bug reports or blueprints affecting entire ecosystem,
159use Launchpad salt-formulas project:
160
161 https://launchpad.net/salt-formulas
162
163You can also join salt-formulas-users team and subscribe to mailing list:
164
165 https://launchpad.net/~salt-formulas-users
166
167Developers wishing to work on the salt-formulas projects should always base
168their work on master branch and submit pull request against specific formula.
169
170 https://github.com/salt-formulas/salt-formula-ntp
171
172Any questions or feedback is always welcome so feel free to join our IRC
173channel:
174
175 #salt-formulas @ irc.freenode.net