plugin-spaceone-inven-collector is an Inventory Collector Plugin for SpaceONE, designed to collect resources from Github. This plugin has been developed with a new plugin framework.
Since the current spaceone-inventory package is in a pre-release state, follow the steps below to configure the package.
Set up a virtual environment using the venv library.
python3 -m venv venv
source venv/bin/activate
Install the package with the following commands in the created virtual environment.
pip3 install -r pkg/pip_requirements.txt
pip3 install --pre spaceone-inventory
If you are using PyCharm, configure the virtual environment as the interpreter.
After following the above steps, run the Plugin Server.
After running the Plugin Server, perform tests for each method with the following commands.
spacectl api-resources
spacectl exec init inventory.Collector -f test/init.yml
spacectl exec verify inventory.Collector -f test/verify.yml
spacectl exec collect inventory.Collector -f test/collect.yml
Metadata will be defined as a dictionary and will be converted to YAML.
The spaceone-inventory package is in a pre-release state, so the --pre
option must be added when using pip install.