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

Abel Lopez alopgeek at gmail.com
Fri Aug 18 21:09:28 UTC 2017


Another option is to make customized guest images that are preconfigured as you like them.

In a previous role, I had to maintain all linux distro guest images for use inside a corporate cloud deploy. This included pointing ntpd to corp IT ntp servers for compliance.

I did this by creating a custom element for diskimage-builder, and we would periodically update the images.

> On Aug 18, 2017, at 12:35 PM, Carlos Konstanski <ckonstanski at pippiandcarlos.com> wrote:
> 
> 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
> 
> _______________________________________________
> OpenStack-operators mailing list
> OpenStack-operators at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20170818/27ff0a76/attachment.sig>


More information about the OpenStack-operators mailing list