Dynflow runtime for Foreman smart proxy
Ruby Shell
Latest commit 058fa85 Feb 21, 2017 @dhlavac dhlavac committed with iNecas Fixes #15618 - Update README.md
* Fixes #15618 Update README.md

Updated installation and settings of smart_proxy_dynflow and smart_proxy_remote_execution_ssh
Permalink
Failed to load latest commit information.
bin
bundler.plugins.d
config Fixes #17078 - Allow disabling certain ciphers Nov 22, 2016
deploy fixes #15467 - remove scl from init/service files (#22) Jun 20, 2016
lib
logs
settings.d
test Fixes #15442 - use separate settings for client certs (#21) Jun 20, 2016
.gitignore
.rubocop.yml
Gemfile
LICENSE initial commit Jul 16, 2015
README.md
Rakefile
smart_proxy_dynflow.gemspec
smart_proxy_dynflow_core.gemspec

README.md

Clone smart-proxy

git clone https://github.com/theforeman/smart-proxy

Configure smart proxy

Clone all the repositories

for repo in smart_proxy_dynflow smart_proxy_remote_execution_ssh; do
  git clone https://github.com/theforeman/$repo ${repo}
done

In smart-proxy directory

mkdir logs

Then add a line that contains :log_file: logs/proxy.log to file config/settings.yml

Configure smart_proxy_dynflow and smart_proxy_remote_execution_ssh as usually

cat > config/settings.d/dynflow.yml <<EOF
---
:enabled: true
EOF

cat > config/settings.d/remote_execution_ssh.yml <<EOF
---
:enabled: true
EOF

All-in-one solution

Add all the gems to smart-proxy's bundler.d from local checkouts. All comands are started from the smart-proxy's directory

cat <<-END > bundler.d/dynflow.local.rb
gem 'smart_proxy_dynflow', :path => '../smart_proxy_dynflow'
gem 'smart_proxy_dynflow_core', :path => '../smart_proxy_dynflow'
gem 'smart_proxy_remote_execution_ssh', :path => '../smart_proxy_remote_execution_ssh'
gem 'smart_proxy_remote_execution_ssh_core', :path => '../smart_proxy_remote_execution_ssh'
END

Install the gems and start smart proxy

bundle install
bundle exec bin/smart-proxy

Your smart proxy should now be usable

The separate dynflow way

All comands are started from the smart-proxy's directory

cat <<-END > bundler.d/dynflow.local.rb
gem 'smart_proxy_dynflow', :path => '../smart_proxy_dynflow'
gem 'smart_proxy_remote_execution_ssh', :path => '../smart_proxy_remote_execution_ssh'
END

Install smart proxy gems and start it

bundle install
bundle exec bin/smart-proxy

Following commands are started from smart_proxy_dynflow_core folder

Symlink smart_proxy_remote_execuiton_ssh's config from smart-proxy to smart_proxy_dynflow_core

mkdir config/settings.d
ln -s ../../../smart-proxy/config/settings.d/remote_execution_ssh.yml config/settings.d/smart_proxy_remote_execution_ssh_core.yml

Copy smart_proxy_dynflow_core example config and optionally edit it manually

cp config/settings.yml{.example,}

Add the smart_proxy_remote_execution_ssh gem to Gemfile.local.rb

echo "gem 'smart_proxy_remote_execution_ssh_core', :path => '../smart_proxy_remote_execution_ssh'" >> Gemfile.local.rb

Install smart proxy dynflow core's gems and start it

bundle install
bundle exec bin/smart_proxy_dynflow_core.rb