blob: 800e8690b3ca17876041cbf012623a5fef9c1b08 [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
89Peering (simple):
90
91.. code-block:: yaml
92
93 ntp:
94 server:
95 peers:
96 - 192.168.0.241
97 - 192.168.0.242
98
99Peering (extended definitions):
100
101.. code-block:: yaml
102
103 ntp:
104 server:
105 peers:
106 1:
107 host: 192.168.31.1
108 2:
109 host: 192.168.31.2
110 3:
111 host: 192.168.31.3
112
113Enable listen/ignote on specific addresses
114
115.. code-block:: yaml
116
117 ntp:
118 server:
119 1:
120 value: wildcard
121 action: ignore
122 2:
123 value: ::1
124 action: listen
125 3:
126 value: 192.168.31.1
127 action: listen
128
129
Filip Pytloun10e4d6c2015-10-06 16:28:32 +0200130Read more
131=========
132
133* https://collectd.org/wiki/index.php/Plugin:NTPd
Filip Pytlounc4da4342017-02-02 13:02:03 +0100134
135Documentation and Bugs
136======================
137
138To learn how to install and update salt-formulas, consult the documentation
139available online at:
140
141 http://salt-formulas.readthedocs.io/
142
143In the unfortunate event that bugs are discovered, they should be reported to
144the appropriate issue tracker. Use Github issue tracker for specific salt
145formula:
146
147 https://github.com/salt-formulas/salt-formula-ntp/issues
148
149For feature requests, bug reports or blueprints affecting entire ecosystem,
150use Launchpad salt-formulas project:
151
152 https://launchpad.net/salt-formulas
153
154You can also join salt-formulas-users team and subscribe to mailing list:
155
156 https://launchpad.net/~salt-formulas-users
157
158Developers wishing to work on the salt-formulas projects should always base
159their work on master branch and submit pull request against specific formula.
160
161 https://github.com/salt-formulas/salt-formula-ntp
162
163Any questions or feedback is always welcome so feel free to join our IRC
164channel:
165
166 #salt-formulas @ irc.freenode.net