The --environment/-e argument will take the path to a directory containing
an env.d directory. This defaults to playbooks/inventory/ in the
OpenStack-Ansible codebase.
Contents of this directory are populated into the environment before the
env.d found in the directory specified by --config.
Using the --check flag when running dynamic_inventory.py will run the
inventory build process and look for known errors, but not write any files to
disk.
If any groups defined in the openstack_user_config.yml or conf.d files
are not found in the environment, a warning will be raised.
This check does not do YAML syntax validation, though it will fail if there are unparseable errors.
The --debug/-d parameter allows writing of a detailed log file for
debugging the inventory script’s behavior. The output is written to
inventory.log in the current working directory.
The inventory.log file is appended to, not overwritten.
Like --check, this flag is not invoked when running from ansible.
When adding groups, keep the following in mind:
However, groups cannot contain child groups and hosts.
When the dynamic inventory script creates a container name, the host on
which the container resides is added to the lxc_hosts inventory group.
Using this name for a group in the configuration will result in a runtime error.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.