This should make Ubuntu based systems handle forcing resolv.conf for us
in a proper fashion. We may still need to do some work for Fedora based
images.
Change-Id: I354c8905d8958dd05ca977a9d82c37c47baa2ded
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
}
file_line { 'add_resolver':
- path => '/etc/cloud/cloud.cfg.d/10_rackspace.cfg',
+ path => $::operatingsystem ? {
+ 'Ubuntu' => '/etc/cloud/cloud.cfg',
+ default => '/etc/cloud/cloud.cfg.d/10_rackspace.cfg',
+ },
line => ' - resolv_conf',
after => ' - update_etc_hosts',
}