8 Commits

Author SHA1 Message Date
Monty Taylor
e1eb830560 Add flag for unbound's resolv.conf
diskimage-builder does not run services that it installs, but this
is a problem when we lay down the resolv.conf file in puppet with
the service not running. So, put in a flag which defaults to true
(which is current behavior) that a dib invocation of the puppet
can turn off and then dib can plop the file down at the end of the
process.

Change-Id: I05d89ffacfdaf3563b8cb1460af12f114e1a0340
2014-05-30 22:41:07 -07:00
Jeremy Stanley
b353c10eb7 Stop notifying make-resolv-conf-immutable
* modules/unbound/manifests/init.pp: Stop notifying
make-resolv-conf-immutable since it no longer exists.

Change-Id: I843460e0be35412a7a954dcc0afc9574d6c633d4
2014-04-28 17:50:07 +00:00
Monty Taylor
bdcd4ed440 Remove chattr
Now that we create the file at boot time, it's not important that it
be immutable.

Change-Id: I06c60f61f51b791b7006983572b868c6d4459c68
2014-04-28 08:19:08 -07:00
James E. Blair
2e0a4beb13 Always make /etc/resolv.conf immutable
Maybe, just maybe, it will stop the rax file injection.

Change-Id: I4258fa52e43b0a93f30319630291e5ae0f37a548
2014-04-25 09:56:17 -07:00
James E. Blair
5875fb1ef5 Unbound: also override dhclient config on debian
The tripleo cloud uses dhcp, so make sure we override the nameserver
to point to localhost in that case.

Change-Id: If498925fc524ece91e2662a1d78008c8dce9d320
2014-03-23 17:12:06 -07:00
James E. Blair
2f89f3b028 Disable resolvconf on ubuntu
And just use a static resolv.conf file instead.  There are too many
conditions in which resolvconf might find itself, and this is much
simpler anyway.

Change-Id: I71b80e533afa93a659c634db5e6b9abf6134ab58
2014-03-21 11:35:04 -07:00
James E. Blair
8d9f12a278 Make sure resolvconf is enabled
This should be the default, but for some reason, it isn't on some
of our servers, especially older ones.

Change-Id: I1b926bb5583121123f261eb78a95f5cc5ce67273
2014-03-21 11:03:14 -07:00
James E. Blair
e96c2e7c84 Use unbound
On all machines, set up unbound as a caching recursive resolver.
On single-use slaves, set it up to forward cache misses to the
DNS servers obtained by the template host on boot.

Change-Id: I8505f5a277f20b1328900a9a515cd84db77b2b3b
2014-03-18 09:23:38 -07:00