Ask Your Question
0

Change the hostnames of nodes after deployment?

asked 2015-10-09 20:19:31 -0500

5-jason-h gravatar image

Can I change the hostnames of "node1.domain.tld" to "node1.mydomain.com" without breaking services?

It looks like if I do, ill have to change /etc/hosts on every node. But will I break anything?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-10-10 21:21:15 -0500

vblando gravatar image

If you're using IP on your configurations, then it will not break. You need to edit /etc/openstack-dashboard/local_settings though and modify this line

 ALLOWED_HOSTS = ['192.168.1.1', '*', 'localhost', ]

You also need to modify your http config in /etc/httpd/conf.d

don't forget to backup the files before editing :)

edit flag offensive delete link more

Comments

I don't have a local_settings file in that directory.

I have found a horizon site apache config file under the sites-enabled directory. Im thinking that if I edit that and then edit the /etc/hosts to match my domain, it should work?

5-jason-h gravatar image5-jason-h ( 2015-10-10 23:37:12 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-10-09 20:19:31 -0500

Seen: 22 times

Last updated: Oct 10 '15