-
Notifications
You must be signed in to change notification settings - Fork 881
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update_etc_hosts broken for all distros but ubuntu #2347
Comments
Launchpad user Tomas Karasek(tomas-karasek) wrote on 2013-01-24T15:36:47.746821+00:00 Hi, I am not sure if this is alrady addressed in the fix, but if you mark distro as "rhel" in /etc/cloud/cloud.cfg: and enable update_etc_hosts module (which is enabled by default), you get: 2013-01-24 16:15:37,362 - cloud.py[WARNING]: No template found at /etc/cloud/templates/hosts.rhel.tmpl for template named hosts.rhel as there is no hosts.redhat.tmpl. When I do and re-run update_etc_hosts, then it works properly |
Launchpad user Craig Tracey(craigtracey) wrote on 2013-01-24T16:12:19.200270+00:00 Yes Tomas, that is correct. This fix addresses that specific problem. Your workaround is the appropriate workaround until this fix is released. |
Launchpad user Scott Moser(smoser) wrote on 2013-01-31T13:21:51.300316+00:00 fixed in trunk at revno 775. |
Launchpad user Scott Moser(smoser) wrote on 2013-05-15T20:02:46.764865+00:00 fixed in 0.7.2 |
This bug was originally filed in Launchpad as LP: #1100036
Launchpad details
Launchpad user Craig Tracey(craigtracey) wrote on 2013-01-15T21:34:43.536208+00:00
Right now hosts templates are named:
As the code is written such that it calls:
tpl_fn_name = cloud.get_template_filename("hosts.%s" %
(cloud.distro.name))
This will only work for the 'ubuntu' distro.
The text was updated successfully, but these errors were encountered: