[Openstack-operators] [dnsmasq] setting ntp-server

Carlos Konstanski ckonstanski at pippiandcarlos.com
Fri Aug 18 19:35:25 UTC 2017


I am searching for a way to set NTP servers in instances. Thre are at
least two ways to do this that come to mind: DHCP and cloud.cfg. I would
like to explore DHCP for this discussion.

dnsmasq supports the following configuration:

    dhcp-option=option:ntp-server,<host1>,<host2>,...

In the Ubuntu /etc/init.d/ntp service script the following can be found:

    if [ /var/lib/ntp/ntp.conf.dhcp -nt /etc/ntp.conf ]; then
        NTPD_OPTS="$NTPD_OPTS -c /var/lib/ntp/ntp.conf.dhcp"
    fi

It would seem that the two work together to allow DHCP to override
/etc/ntp.conf.

The question is how to get openstack to configure dnsmasq thusly. There
are two possibilities: a neutron config option or the overriding of the
entire dnsmasq.conf. The former would be mch simpler and less messy. Is
there such a setting in neutron.conf?

Carlos Konstanski



More information about the OpenStack-operators mailing list