plugin-example-inven-collector
is an example inventory collector plugin for Cloudforet. This plugin helps you implement custom inventory collection.
To develop the plugin, follow these steps:
- Fork the repository (https://github.com/cloudforet-io/plugin-example-inven-collector.git)
- Clone the repository.
git clone https://github.com/{Your repository}/plugin-example-inven-collector.git
cd plugin-example-inven-collector
- Python Virtual environment
python3 -m venv venv
source venv/bin/activate
- Install dependencies
pip3 install -e .
spaceone run plugin-server plugin -m src
pip3 install spacectl
spacectl config init -f test/local.yml
List API spec
spacectl api-resources
Collector.init
spacectl exec init inventory.Collector -f test/init.yml
Collector.verify
spacectl exec verify inventory.Collector -f test/verify.yml
Collector.collect
spacectl exec collect inventory.Collector -f test/collect.yml