Smart Proxy features

I have a relatively simple question. I am currently developing a foreman plugin as well as a smart proxy plugin. I can get my smart proxy to show up in the foreman plugin web interface, but how do I get the foreman plugin to show up in smart proxy features? When I hit refresh features, it just shows “logs” as a feature. Thanks.

stephen-nelsonjr https://community.theforeman.org/u/stephen-nelsonjr
July 16

I have a relatively simple question. I am currently developing a foreman
plugin as well as a smart proxy plugin. I can get my smart proxy to show up
in the foreman plugin web interface, but how do I get the foreman plugin to
show up in smart proxy features? When I hit refresh features, it just shows
“logs” as a feature. Thanks.

Foreman needs to know about the feature in adavance, it usually maps to
some API calls that are unique to that feature… so


in
core, or via a foreman plugin.

How to Create a Smart-Proxy Plugin - Foreman is the page that describes how to write a plugin. I hope you at least found that :slight_smile:

Assuming you have gotten to the Plugin Initialization then you also need to create a config file. By default all plugins are disabled. Creating a settings.d/my_plugin.yml with the following content is probably what you’re looking for.

---
# Can be true, false, or http/https to enable just one of the protocols
:enabled: true

Then you should see it if you go to http://proxy.example.com:8080/features. If you’ve done all that, then you should continue with what @ohadlevy suggested.

Thanks! I got through all of it already but thank you for checking! Hopefully what @ohadlevy suggested will assist me.