-
Notifications
You must be signed in to change notification settings - Fork 675
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add lxc_host dynamic group to inventory.
Previously, it was difficult to target only the hosts holding LXC containers. This change will add a host to the implicit 'lxc_hosts' group any time a container is created in association with that host. Users cannot define this group in their configuration. Doing so will result in an runtime error. This approach allows for specific targeting without using complicated Jinja calculations as seen in commit 7669501. As such, the work in that review has been replaced with this change. Change-Id: I10faf5880a61abcc77f017573e0fd76d033224eb
- Loading branch information
Showing
6 changed files
with
65 additions
and
39 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
This file was deleted.
Oops, something went wrong.
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
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
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,6 @@ | ||
--- | ||
features: | ||
- The inventory script will now dynamically populate the ``lxc_hosts`` group | ||
dynamically based on which machines have container affinities defined. | ||
|
||
This group is not allowed in user-defined configuration. |
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