ansible/awx

Suggested inventories from scm project filter out yml files that could be plugin configs

Open

#3,491 opened on 2019年3月25日

GitHub で見る
 (5 comments) (0 reactions) (0 assignees)Python (13,071 stars) (3,333 forks)batch import
component:apihelp wantedtype:bug

説明

ISSUE TYPE
  • Bug Report
COMPONENT NAME
  • API
SUMMARY

Inventory plugins are configured via .yml or .yaml files. The UI hits the api/v2/projects/<id>/inventories/ endpoint and this offers a filtered down list of files that could be used for inventories. While in the past it may have made sense to filter out yaml files, now it does not because that is how one uses inventory plugins.

ENVIRONMENT
  • AWX version: devel
STEPS TO REPRODUCE

Create project with .yml inventory plugin config files. Create an inventory source that uses the project as SCM source.

EXPECTED RESULTS

The inventory plugin config files show up when you make a scm sourced inventory source.

ACTUAL RESULTS

Files did not show up in UI.

While you can specify it via source_path on the inventory source with a POST to the API, this file not showing up in the list prevents users from specifying it through UI.

ADDITIONAL INFORMATION

@AlanCoding says we need to clarify what we want to do. Hypothetically we could only accept files that match the core distributed inventory plugins, but this would prevent users from using cusom plugins, which we want them to be able to do. Seems like we might have to just let .yml and .yaml files through.

コントリビューターガイド