cloud-init manage-resolv-conf not working as expected
New to using cloud-init with OpenStack so please be patient and kind ;-)
I am having trouble getting manage-resolv-conf to work from my cloud-config file. The target instance has Ubuntu 12-04 as the OS. I do not see the nameservers (and other setting) being set in the /etc/resolv.conf file, nor do I see the comments that cloud-init puts in there indicating is it managed by cloud-init.
My cloud-config looks like this:
#cloud-config
manage_resolv_conf: true
manage-resolv-conf: True
manage_etc_hosts: true
# Automatically configure resolv.conf when the instance boots for the first time.
resolv_conf:
nameservers: ['10.0.
searchdomains:
- novalocal
domain: novalocal
options:
rotate: true
timeout: 1
fqdn: Test19.novalocal
Question #1 - What is the correct syntax of manage-resolv-conf: ? Is it with "-" or "_" ? I believe it is "-" , but I have seen examples using both. I have tried it both ways but still no success.
Question #2 - I read somewhere that this may only supported on RedHat distributions. Is that correct ?
If question #2 is false, then why else might this not be working ?
Any suggestions, help or guidance would be appreciated.
Jay R.
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Jay Rosenthal for more information if necessary.