Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/davidallendj/configurator-plugin-example

An example showing how to create a plugin for the [configurator](https://github.com/OpenCHAMI/configurator)
https://github.com/davidallendj/configurator-plugin-example

Last synced: 1 day ago
JSON representation

An example showing how to create a plugin for the [configurator](https://github.com/OpenCHAMI/configurator)

Awesome Lists containing this project

README

        

# Configurator Plugin Example

This repository is simply demonstrates how to create an external generator plugin for the configurator. If you're making a completely new plugin, make sure you initialize the Go project first:

```bash
go mod init github.com/mynewplugin
```

Then, the plugin can be modified and built using the following command:

```bash
go build -buildmode=plugin -o testplugin.so testplugin.go
```

To use the plugin with the `configurator`, drop the `testplugin.so` file in a directory under the `plugins` list in the `config.yaml` file. Then, add a target with the template files to use when generating new configs.