Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix container hostname for RFC 1034/1035
In lxc-container create this update will ensure we're using good hostnames. This is required in some logging cases as well as SSL. This will also allow a deployer to customize the domain name based on their needs. A new variable has been created called ``lxc_container_domain`` with a default value of "openstack.local". This change has no upgrade impact as any changes that need to happen within an existing environment will be automatically taken care of without impacting the functionality of an existing deployment. This is largely based on Ib31a48dd480ecb376a6a8c5b35b09dfa5d2e58f6, with the intent being to move the tasks from a playbook in the integrated repo to the lxc_container_create role, and with the addition of limiting 127.0.0.1 to localhost within /etc/hosts. Change-Id: I9e72699354a467478742281cab74690e66b6a652 Co-Authored-By: Kevin Carter <kevin.carter@rackspace.com>
- Loading branch information
1 parent
b92f1c0
commit ccddfc7
Showing
3 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
releasenotes/notes/RFC-1034-and-1035-container-update-6e880e4b45e11cf0.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
features: | ||
- LXC containers will now have a proper RFC1034/5 hostname set during post | ||
build tasks. A localhost entry for 127.0.1.1 will be created by converting | ||
all of the "_" in the ``inventory_hostname`` to "-". Containers will be | ||
created with a default domain of *openstack.local*. | ||
This domain name can be customized to meet your deployment needs by | ||
setting the option ``lxc_container_domain``. | ||
upgrade: | ||
- LXC containers will now have a proper RFC1034/5 hostname set during post | ||
build tasks. A localhost entry for 127.0.1.1 will be created by converting | ||
all of the "_" in the ``inventory_hostname`` to "-". Containers will be | ||
created with a default domain of *openstack.local*. | ||
This domain name can be customized to meet your deployment needs by | ||
setting the option ``lxc_container_domain``. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters