This proxy plugin will not show in Foreman as a proxy feature even if it is successfully installed, because Foreman needs to have a corresponding feature in the database. It is usually done by Foreman plugins.
If you plan to develop your own proxy plugin, I would recommend setting up proxy for development, as it would allow you to debug things easier, progress faster and the whole experience is much more pleasant.
It requires a couple of manual steps, but it is not too difficult:
- clone the smart-proxy and smart_proxy_example repos into your workspace
git clone https://github.com/theforeman/smart-proxy.git
git clone https://github.com/theforeman/smart_proxy_example.git
- configure the proxy to use the plugin
echo 'gemspec :path => "../smart_proxy_example"' > smart-proxy/bundler.d/Gemfile.local.rb
- create plugin config
cp smart_proxy_example/settings.d/example.yml.example smart-proxy/config/settings.d/example.yml
- create proxy config
cp smart-proxy/config/settings.yml.example smart-proxy/config/settings.yml
- uncomment/modify the following lines in smart-proxy/config/settings.yml, which is bare minimum to get the proxy running
:log_file: /var/log/foreman-proxy/proxy.log # change to a writable file
- install dependencies, your local checkout of smart_proxy_example should show among them
- run the proxy
Proxy should now run over http on port 8000. Note that if you do this in the vagrant develop box, you will need to stop the proxy that is already running there, otherwise you will get clash on the port.
You can verify the features of the proxy using your browser: