11
11
or through the use of the ntp subordinate charm.
16
16
This this mode services need to understand how to relate to the ntpmaster service
17
using the ntp protocol::
17
using the ntp protocol:
20
juju add-relation ntpmaster myservicethatwantsntp
20
juju add-relation ntpmaster myservicethatwantsntp
22
22
This is less useful as every charm has to have master hooks.
27
27
In this mode the ntp subordinate charm is used to configure NTP in other service
28
units to the ntpmaster service::
32
juju deploy myservicethatdoesnotunderstandntp
33
juju add-relation ntp ntpmaster
34
juju add-relation ntp myservicethatdoesnotunderstandntp
36
You can of course have more that one ntpmaster::
38
juju add-unit -n 2 ntpmaster
28
units to the ntpmaster service:
32
juju deploy myservicethatdoesnotunderstandntp
33
juju add-relation ntp ntpmaster
34
juju add-relation ntp myservicethatdoesnotunderstandntp
36
You can of course have more that one ntpmaster:
38
juju add-unit -n 2 ntpmaster
40
40
All services that the ntp charm is subordinate to will be configured to sync with
41
41
all avaliable ntp masters.
46
46
The ntpmaster charm by default will use the standard NTP pool servers that are
47
47
provided by the Ubuntu package. It can also be configured to use specific
50
juju set ntpmaster source="myserver1 myserver2 myserver3"
50
juju set ntpmaster source="myserver1 myserver2 myserver3"
52
52
This would allow use with an internal time source, such as GPS or an atomic
53
53
clock, or with alternative external NTP sources.