Filip Pytloun | 10e4d6c | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 1 | === |
Ondrej Smola | d3c6703 | 2018-04-04 12:16:05 +0200 | [diff] [blame] | 2 | NTP |
Filip Pytloun | 10e4d6c | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 3 | === |
| 4 | |
| 5 | Network time synchronisation services. |
| 6 | |
| 7 | Sample pillars |
| 8 | ============== |
| 9 | |
Ondrej Smola | d3c6703 | 2018-04-04 12:16:05 +0200 | [diff] [blame] | 10 | NTP client (old version), not used when stratum parameter exists |
Filip Pytloun | 10e4d6c | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 11 | |
| 12 | .. code-block:: yaml |
| 13 | |
| 14 | ntp: |
| 15 | client: |
| 16 | enabled: true |
| 17 | strata: |
| 18 | - ntp.cesnet.cz |
| 19 | - ntp.nic.cz |
| 20 | |
Ondrej Smola | d3c6703 | 2018-04-04 12:16:05 +0200 | [diff] [blame] | 21 | NTP 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 | |
| 36 | NTP with MD5 auth |
| 37 | Requires 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 | |
azvyagintsev | 4e40470 | 2018-05-30 20:02:03 +0300 | [diff] [blame^] | 89 | Cleanup 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 Smola | d3c6703 | 2018-04-04 12:16:05 +0200 | [diff] [blame] | 98 | Peering (simple): |
| 99 | |
| 100 | .. code-block:: yaml |
| 101 | |
| 102 | ntp: |
| 103 | server: |
| 104 | peers: |
| 105 | - 192.168.0.241 |
| 106 | - 192.168.0.242 |
| 107 | |
| 108 | Peering (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 | |
| 122 | Enable 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 Pytloun | 10e4d6c | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 139 | Read more |
| 140 | ========= |
| 141 | |
| 142 | * https://collectd.org/wiki/index.php/Plugin:NTPd |
Filip Pytloun | c4da434 | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 143 | |
| 144 | Documentation and Bugs |
| 145 | ====================== |
| 146 | |
| 147 | To learn how to install and update salt-formulas, consult the documentation |
| 148 | available online at: |
| 149 | |
| 150 | http://salt-formulas.readthedocs.io/ |
| 151 | |
| 152 | In the unfortunate event that bugs are discovered, they should be reported to |
| 153 | the appropriate issue tracker. Use Github issue tracker for specific salt |
| 154 | formula: |
| 155 | |
| 156 | https://github.com/salt-formulas/salt-formula-ntp/issues |
| 157 | |
| 158 | For feature requests, bug reports or blueprints affecting entire ecosystem, |
| 159 | use Launchpad salt-formulas project: |
| 160 | |
| 161 | https://launchpad.net/salt-formulas |
| 162 | |
| 163 | You can also join salt-formulas-users team and subscribe to mailing list: |
| 164 | |
| 165 | https://launchpad.net/~salt-formulas-users |
| 166 | |
| 167 | Developers wishing to work on the salt-formulas projects should always base |
| 168 | their work on master branch and submit pull request against specific formula. |
| 169 | |
| 170 | https://github.com/salt-formulas/salt-formula-ntp |
| 171 | |
| 172 | Any questions or feedback is always welcome so feel free to join our IRC |
| 173 | channel: |
| 174 | |
| 175 | #salt-formulas @ irc.freenode.net |