Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variables to control plugins #317

Closed
wants to merge 1 commit into from
Closed

Conversation

ylmrx
Copy link

@ylmrx ylmrx commented Jul 2, 2020

  • PLUGINS: list of plugins in this form -> PLUGINS="plug1,plug2"
  • PLUGINS_CONFIG: json string -> dict()

Related Issue:

New Behavior

Use the environment variable PLUGINS and PLUGINS_CONFIG so you can use the image (+ plugins you installed there) "as-is" without editing its configuration files.

...

Contrast to Current Behavior

You need to play with custom dockerfile and init scripts in order to get plugins to work, now you only need to pip install from custom dockerfile.

...

Discussion: Benefits and Drawbacks

  • Why do you think this project and the community will benefit from your
    proposed change?

Adding line in order to INSTALL a plugin is ok, but getting the relevant variables in netbox environment, within docker is super-sketchy : much easier with just env vars.

  • What are the drawbacks of this change?

I don't see any.

  • Is it backwards-compatible?

Yes.

  • Anything else that you think is relevant to the discussion of this PR.

No!

...

Changes to the Wiki

...

Proposed Release Note Entry

...

Double Check

  • I have read the comments and followed the PR template.
  • I have explained my PR according to the information in the comments.
  • My PR targets the develop branch.

…ugins:

  - PLUGINS: list of plugins in this form -> PLUGINS="plug1,plug2"
  - PLUGINS_CONFIG: json string -> dict()
@cimnine cimnine added the enhancement The issue describes an enhancement that we would like to implement in the future. label Jul 13, 2020
@cimnine cimnine changed the title add 2 environment variables to configurations in order to control plugins Variables to control plugins Jul 13, 2020
@cimnine cimnine mentioned this pull request Jul 13, 2020
@cimnine
Copy link
Collaborator

cimnine commented Jul 13, 2020

Thanks for your PR. I don't like the JSON parsing, but such dynamic configuration is an issue in other PRs as well. That's why I've started a discussion issue here: #318

@cimnine cimnine added the discussion This issue requires further input from the community. label Oct 18, 2020
@cimnine
Copy link
Collaborator

cimnine commented Oct 18, 2020

Please let me know if #343 would be a good enough solution for your use-case.

@cimnine cimnine closed this Oct 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion This issue requires further input from the community. enhancement The issue describes an enhancement that we would like to implement in the future.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants