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 > <ckonstan...@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@lists.openstack.org > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
signature.asc
Description: Message signed with OpenPGP
_______________________________________________ OpenStack-operators mailing list OpenStack-operators@lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators