Cannot select salt states

Manually built smart-proxy 1.12.3 with smart-proxy-salt 6.0.0 with
foreman_salt 6.0.0

Steps:
Importing salt-states - works
Creating new host
Host tab, selecting salt env
Switching to salt states: "Please select a Salt environment first"

in logs:

2016-09-30T22:43:34 [app] [F]
> ActionController::RoutingError (No route matches [GET]
"/javascripts/foreman_salt/states.js"):
>
vendor/ruby/2.3.0/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/debug_exceptions.rb:21:in
call' > vendor/ruby/2.3.0/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/show_exceptions.rb:30:incall'
> vendor/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/rack/logger.rb:38:in
call_app' > vendor/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/rack/logger.rb:22:incall'
>
vendor/ruby/2.3.0/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/request_id.rb:21:in
call' > vendor/ruby/2.3.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:incall'
> vendor/ruby/2.3.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in call' > vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/cache/strategy/local_cache_middleware.rb:28:incall'
>
vendor/ruby/2.3.0/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/static.rb:120:in
call' > vendor/ruby/2.3.0/gems/rack-1.6.4/lib/rack/sendfile.rb:113:incall'
> vendor/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/engine.rb:518:in
call' > vendor/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/application.rb:165:incall'
> vendor/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/railtie.rb:194:in
public_send' > vendor/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/railtie.rb:194:inmethod_missing'
> vendor/ruby/2.3.0/gems/rack-1.6.4/lib/rack/urlmap.rb:66:in block in call' > vendor/ruby/2.3.0/gems/rack-1.6.4/lib/rack/urlmap.rb:50:ineach'
> vendor/ruby/2.3.0/gems/rack-1.6.4/lib/rack/urlmap.rb:50:in call' > /usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:97:inprocess_request'
>
/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:152:in
accept_and_process_next_request' > /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:113:inmain_loop'
> /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:416:in
block (3 levels) in start_threads' > /usr/lib/ruby/vendor_ruby/phusion_passenger/utils.rb:113:inblock in
create_thread_and_abort_on_exception'
>
vendor/ruby/2.3.0/gems/logging-2.1.0/lib/logging/diagnostic_context.rb:450:in
`block in create_with_logging_context'

is this version mismatch or what?

To provide more information, salt foreman plugin was installed via:
gem 'foreman_salt', :git => "url to git", :branch => 'blabla'
and running bundle update, bundle install…
Do I miss some other undocumented magic command to install plugin?
It looks like some initializing code is missing (javascripts should be
translated to assets or something like this)

··· On Saturday, October 1, 2016 at 12:55:21 AM UTC+2, lakier wrote: > > Manually built smart-proxy 1.12.3 with smart-proxy-salt 6.0.0 with > foreman_salt 6.0.0 > > Steps: > Importing salt-states - works > Creating new host > Host tab, selecting salt env > Switching to salt states: "Please select a Salt environment first" > > in logs: > > 2016-09-30T22:43:34 [app] [F] > > ActionController::RoutingError (No route matches [GET] > "/javascripts/foreman_salt/states.js"): > > > vendor/ruby/2.3.0/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/debug_exceptions.rb:21:in > `call' > > > vendor/ruby/2.3.0/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/show_exceptions.rb:30:in > `call' > > > vendor/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/rack/logger.rb:38:in > `call_app' > > > vendor/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/rack/logger.rb:22:in > `call' > > > vendor/ruby/2.3.0/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/request_id.rb:21:in > `call' > > vendor/ruby/2.3.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in > `call' > > vendor/ruby/2.3.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call' > > > vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in > `call' > > > vendor/ruby/2.3.0/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/static.rb:120:in > `call' > > vendor/ruby/2.3.0/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call' > > vendor/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/engine.rb:518:in > `call' > > > vendor/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/application.rb:165:in > `call' > > vendor/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/railtie.rb:194:in > `public_send' > > vendor/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/railtie.rb:194:in > `method_missing' > > vendor/ruby/2.3.0/gems/rack-1.6.4/lib/rack/urlmap.rb:66:in `block in > call' > > vendor/ruby/2.3.0/gems/rack-1.6.4/lib/rack/urlmap.rb:50:in `each' > > vendor/ruby/2.3.0/gems/rack-1.6.4/lib/rack/urlmap.rb:50:in `call' > > > /usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:97:in > `process_request' > > > /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:152:in > `accept_and_process_next_request' > > > /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:113:in > `main_loop' > > /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:416:in > `block (3 levels) in start_threads' > > /usr/lib/ruby/vendor_ruby/phusion_passenger/utils.rb:113:in `block in > create_thread_and_abort_on_exception' > > > vendor/ruby/2.3.0/gems/logging-2.1.0/lib/logging/diagnostic_context.rb:450:in > `block in create_with_logging_context' > > is this version mismatch or what? >

"rake assets:precompile" should compile those, and you may also need
db:migrate and db:seed for DB-related setup.

··· On 01/10/16 21:53, lakier wrote: > To provide more information, salt foreman plugin was installed via: > gem 'foreman_salt', :git => "url to git", :branch => 'blabla' > and running bundle update, bundle install... > Do I miss some other undocumented magic command to install plugin? > It looks like some initializing code is missing (javascripts should be > translated to assets or something like this)


Dominic Cleal
dominic@cleal.org

thanks but:

sudo -u foreman foreman-rake assets:precompile
rake aborted!
LoadError: cannot load such file – uglifier
/usr/share/foreman/vendor/ruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in
require' /usr/share/foreman/vendor/ruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:inrequire'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in
block in require' /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:240:inload_dependency'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in
require&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/autoload/uglifier.rb:1:in<top (required)>'
/usr/share/foreman/vendor/ruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in
require&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:inrequire'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in
block in require&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:240:inload_dependency'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in
require&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/uglifier_compressor.rb:39:ininitialize'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/uglifier_compressor.rb:24:in
new&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/uglifier_compressor.rb:24:ininstance'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/uglifier_compressor.rb:28:in
call&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:75:incall_processor'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:57:in
block in call_processors&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:56:inreverse_each'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:56:in
call_processors&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:134:inload_from_unloaded'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:60:in
block in load&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:317:infetch_asset_from_dependency_cache'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:44:in
load&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/cached_environment.rb:20:inblock in initialize'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/cached_environment.rb:47:in
load&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/base.rb:66:infind_asset'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/base.rb:73:in
find_all_linked_assets&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:134:inblock in find'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:133:in
each&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:133:infind'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:185:in
compile&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-rails-2.3.3/lib/sprockets/rails/task.rb:70:inblock (3 levels) in define'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/rake/sprocketstask.rb:147:in
with_logger&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-rails-2.3.3/lib/sprockets/rails/task.rb:69:inblock (2 levels) in define'
Polyglot::PolyglotLoadError: Failed to load uglifier using extensions
deface, rb
/usr/share/foreman/vendor/ruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:55:in
load&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:68:inrescue in require'
/usr/share/foreman/vendor/ruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in
require&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:inblock in require'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:240:in
load_dependency&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:inrequire'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/autoload/uglifier.rb:1:in
&lt;top (required)&gt;&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:inrequire'
/usr/share/foreman/vendor/ruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in
require&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:inblock in require'
/usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:240:in
load_dependency&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:inrequire'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/uglifier_compressor.rb:39:in
initialize&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/uglifier_compressor.rb:24:innew'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/uglifier_compressor.rb:24:in
instance&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/uglifier_compressor.rb:28:incall'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:75:in
call_processor&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:57:inblock in call_processors'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:56:in
reverse_each&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:56:incall_processors'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:134:in
load_from_unloaded&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:60:inblock in load'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:317:in
fetch_asset_from_dependency_cache&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:44:inload'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/cached_environment.rb:20:in
block in initialize&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/cached_environment.rb:47:inload'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/base.rb:66:in
find_asset&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/base.rb:73:infind_all_linked_assets'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:134:in
block in find&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:133:ineach'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:133:in
find&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:185:incompile'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-rails-2.3.3/lib/sprockets/rails/task.rb:70:in
block (3 levels) in define&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/rake/sprocketstask.rb:147:inwith_logger'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-rails-2.3.3/lib/sprockets/rails/task.rb:69:in
`block (2 levels) in define'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)

foreman was installed with foreman-installer.

Seriously guys, I know no one is getting paid for this project but I was
willing to help developing it, I tully was.
Even though I don't do hipster ruby…
But where the hell is working documentation?
Why for the fuck sake you break builds and leave it?
Does anyone take this project seriously?

··· On Monday, October 3, 2016 at 3:46:19 PM UTC+2, Dominic Cleal wrote: > > On 01/10/16 21:53, lakier wrote: > > To provide more information, salt foreman plugin was installed via: > > gem 'foreman_salt', :git => "url to git", :branch => 'blabla' > > and running bundle update, bundle install... > > Do I miss some other undocumented magic command to install plugin? > > It looks like some initializing code is missing (javascripts should be > > translated to assets or something like this) > > "rake assets:precompile" should compile those, and you may also need > db:migrate and db:seed for DB-related setup. > > -- > Dominic Cleal > dom...@cleal.org >

/config/environments/production.rb

config.assets.js_compressor = :uglifier

config.assets.css_compressor = :sass

fixes but gives:

sudo -u foreman foreman-rake assets:precompile
I, [2016-10-04T20:20:41.200337 #21921] INFO – : Writing
/usr/share/foreman/public/assets/host_checkbox-5ebdd8b1330d287fab1e44c4fbc1b08877b
59a67e1fa30ac99a01d6f19fd2193.js
I, [2016-10-04T20:20:41.200975 #21921] INFO – : Writing
/usr/share/foreman/public/assets/host_checkbox-5ebdd8b1330d287fab1e44c4fbc1b08877b
59a67e1fa30ac99a01d6f19fd2193.js.gz
I, [2016-10-04T20:20:41.308516 #21921] INFO – : Writing
/usr/share/foreman/public/assets/reports-ecabe06bc1b0de48d023fe44f63e36c3d22179fdf
3d2f198af7573872fa9cc26.js.gz
rake aborted!
Sprockets::FileNotFound: couldn't find file 'spice-html5' with type
'application/javascript'
Checked in these paths:
/usr/share/foreman/app/assets/images
/usr/share/foreman/app/assets/javascripts
/usr/share/foreman/app/assets/stylesheets
/usr/share/foreman/vendor/assets/fonts
/usr/share/foreman/vendor/assets/javascripts
/usr/share/foreman/vendor/assets/stylesheets
/usr/share/foreman/vendor/ruby/2.3.0/gems/foreman-tasks-0.7.20/app/assets/javascripts

/usr/share/foreman/vendor/ruby/2.3.0/gems/foreman-tasks-0.7.20/app/assets/stylesheets

/usr/share/foreman/vendor/ruby/2.3.0/bundler/gems/foreman_salt-ad79b95eb1d9/app/assets/javascripts

/usr/share/foreman/vendor/ruby/2.3.0/gems/turbolinks-2.5.3/lib/assets/javascripts

/usr/share/foreman/vendor/ruby/2.3.0/gems/scoped_search-3.3.0/app/assets/images

/usr/share/foreman/vendor/ruby/2.3.0/gems/scoped_search-3.3.0/app/assets/javascripts

/usr/share/foreman/vendor/ruby/2.3.0/gems/scoped_search-3.3.0/app/assets/stylesheets

/usr/share/foreman/vendor/assets/fonts
/usr/share/foreman/app/assets/javascripts/spice.js:1
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/resolve.rb:65:in
resolve!&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/directive_processor.rb:399:inresolve'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/directive_processor.rb:207:in
process_require_directive&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/directive_processor.rb:180:inblock in process_directives'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/directive_processor.rb:178:in
each&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/directive_processor.rb:178:inprocess_directives'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/directive_processor.rb:83:in
_call&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/directive_processor.rb:68:incall'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:75:in
call_processor&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:57:inblock in call_processors'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:56:in
reverse_each&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:56:incall_processors'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:134:in
load_from_unloaded&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:60:inblock in load'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:317:in
fetch_asset_from_dependency_cache&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:44:inload'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/cached_environment.rb:20:in
block in initialize&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/cached_environment.rb:47:inload'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/bundle.rb:23:in
block in call&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/utils.rb:196:indfs'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/bundle.rb:24:in
call&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:75:incall_processor'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:57:in
block in call_processors&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:56:inreverse_each'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:56:in
call_processors&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:134:inload_from_unloaded'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:60:in
block in load&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:317:infetch_asset_from_dependency_cache'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:44:in
load&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/cached_environment.rb:20:inblock in initialize'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/cached_environment.rb:47:in
load&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/base.rb:66:infind_asset'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/base.rb:73:in
find_all_linked_assets&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:134:inblock in find'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:133:in
each&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:133:infind'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:185:in
compile&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-rails-2.3.3/lib/sprockets/rails/task.rb:70:inblock (3 levels) in define'
/usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/rake/sprocketstask.rb:147:in
with_logger&#39; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-rails-2.3.3/lib/sprockets/rails/task.rb:69:inblock (2 levels) in define'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)

··· On Tuesday, October 4, 2016 at 10:18:14 PM UTC+2, lakier wrote: > > thanks but: > > sudo -u foreman foreman-rake assets:precompile > rake aborted! > LoadError: cannot load such file -- uglifier > /usr/share/foreman/vendor/ruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in > `require' > /usr/share/foreman/vendor/ruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in > `require' > /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in > `block in require' > /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:240:in > `load_dependency' > /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in > `require' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/autoload/uglifier.rb:1:in > `' > /usr/share/foreman/vendor/ruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in > `require' > /usr/share/foreman/vendor/ruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in > `require' > /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in > `block in require' > /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:240:in > `load_dependency' > /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in > `require' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/uglifier_compressor.rb:39:in > `initialize' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/uglifier_compressor.rb:24:in > `new' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/uglifier_compressor.rb:24:in > `instance' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/uglifier_compressor.rb:28:in > `call' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:75:in > `call_processor' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:57:in > `block in call_processors' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:56:in > `reverse_each' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:56:in > `call_processors' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:134:in > `load_from_unloaded' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:60:in > `block in load' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:317:in > `fetch_asset_from_dependency_cache' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:44:in > `load' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/cached_environment.rb:20:in > `block in initialize' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/cached_environment.rb:47:in > `load' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/base.rb:66:in > `find_asset' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/base.rb:73:in > `find_all_linked_assets' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:134:in > `block in find' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:133:in > `each' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:133:in > `find' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:185:in > `compile' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-rails-2.3.3/lib/sprockets/rails/task.rb:70:in > `block (3 levels) in define' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/rake/sprocketstask.rb:147:in > `with_logger' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-rails-2.3.3/lib/sprockets/rails/task.rb:69:in > `block (2 levels) in define' > Polyglot::PolyglotLoadError: Failed to load uglifier using extensions > deface, rb > /usr/share/foreman/vendor/ruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:55:in > `load' > /usr/share/foreman/vendor/ruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:68:in > `rescue in require' > /usr/share/foreman/vendor/ruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in > `require' > /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in > `block in require' > /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:240:in > `load_dependency' > /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in > `require' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/autoload/uglifier.rb:1:in > `' > /usr/share/foreman/vendor/ruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in > `require' > /usr/share/foreman/vendor/ruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in > `require' > /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in > `block in require' > /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:240:in > `load_dependency' > /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in > `require' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/uglifier_compressor.rb:39:in > `initialize' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/uglifier_compressor.rb:24:in > `new' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/uglifier_compressor.rb:24:in > `instance' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/uglifier_compressor.rb:28:in > `call' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:75:in > `call_processor' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:57:in > `block in call_processors' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:56:in > `reverse_each' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:56:in > `call_processors' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:134:in > `load_from_unloaded' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:60:in > `block in load' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:317:in > `fetch_asset_from_dependency_cache' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:44:in > `load' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/cached_environment.rb:20:in > `block in initialize' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/cached_environment.rb:47:in > `load' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/base.rb:66:in > `find_asset' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/base.rb:73:in > `find_all_linked_assets' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:134:in > `block in find' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:133:in > `each' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:133:in > `find' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:185:in > `compile' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-rails-2.3.3/lib/sprockets/rails/task.rb:70:in > `block (3 levels) in define' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/rake/sprocketstask.rb:147:in > `with_logger' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-rails-2.3.3/lib/sprockets/rails/task.rb:69:in > `block (2 levels) in define' > Tasks: TOP => assets:precompile > (See full trace by running task with --trace) > > foreman was installed with foreman-installer. > > Seriously guys, I know no one is getting paid for this project but I was > willing to help developing it, I tully was. > Even though I don't do hipster ruby... > But where the hell is working documentation? > Why for the fuck sake you break builds and leave it? > Does anyone take this project seriously? > > On Monday, October 3, 2016 at 3:46:19 PM UTC+2, Dominic Cleal wrote: >> >> On 01/10/16 21:53, lakier wrote: >> > To provide more information, salt foreman plugin was installed via: >> > gem 'foreman_salt', :git => "url to git", :branch => 'blabla' >> > and running bundle update, bundle install... >> > Do I miss some other undocumented magic command to install plugin? >> > It looks like some initializing code is missing (javascripts should be >> > translated to assets or something like this) >> >> "rake assets:precompile" should compile those, and you may also need >> db:migrate and db:seed for DB-related setup. >> >> -- >> Dominic Cleal >> dom...@cleal.org >> >

> thanks but:
>
> sudo -u foreman foreman-rake assets:precompile
> rake aborted!
> LoadError: cannot load such file – uglifier

Install "foreman-assets" to get this dependency for asset
precompilation, or use a packaged version of the plugin where this step
is unnecessary (the assets are shipped in the package).

The extra dependencies are required when installing plugins from source
on top of a packaged installation, not a recommended combination.

> foreman was installed with foreman-installer.

The plugin can be installed by running --enable-foreman-plugin-salt,
which will install the ruby-foreman-salt package (assuming a Debian OS).

> [redacted]
> Does anyone take this project seriously?

Please have a bit more courtesy on this mailing list and follow our
guidelines at Foreman :: Support (they apply equally
here as they do to IRC). I replied and offered help; I don't expect to
be sworn at or insulted in return.

··· On 04/10/16 21:18, lakier wrote:


Dominic Cleal
dominic@cleal.org

> From: "lakier" <stanislaw.jakiel@gmail.com>
> To: "foreman-dev" <foreman-dev@googlegroups.com>
> Cc: dominic@cleal.org
> Sent: Tuesday, October 4, 2016 4:18:14 PM
> Subject: Re: [foreman-dev] Re: Cannot select salt states
>
> thanks but:
>
> sudo -u foreman foreman-rake assets:precompile
> rake aborted!
> LoadError: cannot load such file – uglifier
> /usr/share/foreman/vendor/ruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in
> require&#39; &gt; /usr/share/foreman/vendor/ruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in &gt; require'
> /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in
> block in require&#39; &gt; /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:240:in &gt; load_dependency'
> /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in
> require&#39; &gt; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/autoload/uglifier.rb:1:in &gt; <top (required)>'
> /usr/share/foreman/vendor/ruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in
> require&#39; &gt; /usr/share/foreman/vendor/ruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in &gt; require'
> /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in
> block in require&#39; &gt; /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:240:in &gt; load_dependency'
> /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in
> require&#39; &gt; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/uglifier_compressor.rb:39:in &gt; initialize'
> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/uglifier_compressor.rb:24:in
> new&#39; &gt; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/uglifier_compressor.rb:24:in &gt; instance'
> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/uglifier_compressor.rb:28:in
> call&#39; &gt; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:75:in &gt; call_processor'
> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:57:in
> block in call_processors&#39; &gt; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:56:in &gt; reverse_each'
> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:56:in
> call_processors&#39; &gt; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:134:in &gt; load_from_unloaded'
> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:60:in
> block in load&#39; &gt; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:317:in &gt; fetch_asset_from_dependency_cache'
> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:44:in
> load&#39; &gt; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/cached_environment.rb:20:in &gt; block in initialize'
> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/cached_environment.rb:47:in
> load&#39; &gt; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/base.rb:66:in &gt; find_asset'
> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/base.rb:73:in
> find_all_linked_assets&#39; &gt; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:134:in &gt; block in find'
> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:133:in
> each&#39; &gt; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:133:in &gt; find'
> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:185:in
> compile&#39; &gt; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-rails-2.3.3/lib/sprockets/rails/task.rb:70:in &gt; block (3 levels) in define'
> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/rake/sprocketstask.rb:147:in
> with_logger&#39; &gt; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-rails-2.3.3/lib/sprockets/rails/task.rb:69:in &gt; block (2 levels) in define'
> Polyglot::PolyglotLoadError: Failed to load uglifier using extensions
> deface, rb
> /usr/share/foreman/vendor/ruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:55:in
> load&#39; &gt; /usr/share/foreman/vendor/ruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:68:in &gt; rescue in require'
> /usr/share/foreman/vendor/ruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in
> require&#39; &gt; /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in &gt; block in require'
> /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:240:in
> load_dependency&#39; &gt; /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in &gt; require'
> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/autoload/uglifier.rb:1:in
> &lt;top (required)&gt;&#39; &gt; /usr/share/foreman/vendor/ruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in &gt; require'
> /usr/share/foreman/vendor/ruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in
> require&#39; &gt; /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in &gt; block in require'
> /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:240:in
> load_dependency&#39; &gt; /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in &gt; require'
> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/uglifier_compressor.rb:39:in
> initialize&#39; &gt; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/uglifier_compressor.rb:24:in &gt; new'
> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/uglifier_compressor.rb:24:in
> instance&#39; &gt; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/uglifier_compressor.rb:28:in &gt; call'
> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:75:in
> call_processor&#39; &gt; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:57:in &gt; block in call_processors'
> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:56:in
> reverse_each&#39; &gt; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:56:in &gt; call_processors'
> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:134:in
> load_from_unloaded&#39; &gt; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:60:in &gt; block in load'
> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:317:in
> fetch_asset_from_dependency_cache&#39; &gt; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:44:in &gt; load'
> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/cached_environment.rb:20:in
> block in initialize&#39; &gt; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/cached_environment.rb:47:in &gt; load'
> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/base.rb:66:in
> find_asset&#39; &gt; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/base.rb:73:in &gt; find_all_linked_assets'
> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:134:in
> block in find&#39; &gt; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:133:in &gt; each'
> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:133:in
> find&#39; &gt; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:185:in &gt; compile'
> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-rails-2.3.3/lib/sprockets/rails/task.rb:70:in
> block (3 levels) in define&#39; &gt; /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/rake/sprocketstask.rb:147:in &gt; with_logger'
> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-rails-2.3.3/lib/sprockets/rails/task.rb:69:in
> `block (2 levels) in define'
> Tasks: TOP => assets:precompile
> (See full trace by running task with --trace)
>
> foreman was installed with foreman-installer.
>
> Seriously guys, I know no one is getting paid for this project but I was
> willing to help developing it, I tully was.
> Even though I don't do hipster ruby…
> But where the hell is working documentation?

foreman_salt and foreman project both have documentation:

  1. https://theforeman.org/plugins/foreman_salt/
  2. Foreman

If you find something missing, fixes to documentation get reviewed and
accepted pretty quickly if you want to send us one.

Installing source plugins on top of packaged, production install makes
sense in very few circumstances. Wanting to develop isn't one of
them IMHO. If you want to be a contributor, there's info about how to
set up a full source install on the Contribute page:

Foreman :: Contribute

It's a lot easier than what you are trying to do. At the end of the
day though, there's some expectation that you know or be willing to
learn the common tools used in the Ruby/Rails world. There's no end
of material on the internet about it.

I came to the project not knowing nearly nothing about Ruby, and everyone
was really nice enough to help me through everything to the point I was
able to make useful contributions. And again they were trying to do the
same for you. Shame you didn't see the value in that.

FWIW, I learned Ruby and Rails mostly from these:

http://poignant.guide/
http://railsforzombies.org/

> Why for the fuck sake you break builds and leave it?

What's broken?

> Does anyone take this project seriously?

Yes

··· ----- Original Message -----

On Monday, October 3, 2016 at 3:46:19 PM UTC+2, Dominic Cleal wrote:

On 01/10/16 21:53, lakier wrote:

To provide more information, salt foreman plugin was installed via:
gem ‘foreman_salt’, :git => “url to git”, :branch => ‘blabla’
and running bundle update, bundle install…
Do I miss some other undocumented magic command to install plugin?
It looks like some initializing code is missing (javascripts should be
translated to assets or something like this)

“rake assets:precompile” should compile those, and you may also need
db:migrate and db:seed for DB-related setup.


Dominic Cleal
dom...@cleal.org <javascript:>


You received this message because you are subscribed to the Google Groups
“foreman-dev” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

After turning my Gemfile.local.rb into this pile of shit:

gem 'foreman_salt', :git => "https://github.com/theforeman/foreman_salt.git"
, :branch => "SALT-6.0"
#gem 'sqlite3'
#gem 'spice-html5-rails'
#gem 'jquery_pwstrength_bootstrap_4'

gem 'jquery-turbolinks', '~> 2.1'
gem 'jquery-ui-rails', '< 5.0.0'
gem 'autoprefixer-rails', '~> 5.2'
gem 'patternfly-sass', '~> 2.7'
gem 'gridster-rails', '~> 0.5'
gem 'gettext_i18n_rails_js', '~> 1.0'
gem 'execjs', '>= 1.4.0', '< 3.0'
gem 'ace-rails-ap', '~> 4.1.0'
gem 'uglifier', '>= 1.0.3'
gem 'sass-rails', '~> 5.0'
gem 'spice-html5-rails', '~> 0.1.5'
gem 'quiet_assets', '~> 1.0'
gem 'jquery_pwstrength_bootstrap_4', :require =>
'jquery_pwstrength_bootstrap'
gem 'jquery-rails'
gem 'multi-select-rails'
gem 'select2-rails'
gem 'underscore-rails'
gem 'flot-rails'

it worked…

··· On Tuesday, October 4, 2016 at 10:22:25 PM UTC+2, lakier wrote: > > /config/environments/production.rb > # config.assets.js_compressor = :uglifier > config.assets.css_compressor = :sass > > fixes but gives: > > sudo -u foreman foreman-rake assets:precompile > I, [2016-10-04T20:20:41.200337 #21921] INFO -- : Writing > /usr/share/foreman/public/assets/host_checkbox-5ebdd8b1330d287fab1e44c4fbc1b08877b > 59a67e1fa30ac99a01d6f19fd2193.js > I, [2016-10-04T20:20:41.200975 #21921] INFO -- : Writing > /usr/share/foreman/public/assets/host_checkbox-5ebdd8b1330d287fab1e44c4fbc1b08877b > 59a67e1fa30ac99a01d6f19fd2193.js.gz > I, [2016-10-04T20:20:41.308516 #21921] INFO -- : Writing > /usr/share/foreman/public/assets/reports-ecabe06bc1b0de48d023fe44f63e36c3d22179fdf > 3d2f198af7573872fa9cc26.js.gz > rake aborted! > Sprockets::FileNotFound: couldn't find file 'spice-html5' with type > 'application/javascript' > Checked in these paths: > /usr/share/foreman/app/assets/images > /usr/share/foreman/app/assets/javascripts > /usr/share/foreman/app/assets/stylesheets > /usr/share/foreman/vendor/assets/fonts > /usr/share/foreman/vendor/assets/javascripts > /usr/share/foreman/vendor/assets/stylesheets > /usr/share/foreman/vendor/ruby/2.3.0/gems/foreman-tasks-0.7.20/app/assets/javascripts > > /usr/share/foreman/vendor/ruby/2.3.0/gems/foreman-tasks-0.7.20/app/assets/stylesheets > > /usr/share/foreman/vendor/ruby/2.3.0/bundler/gems/foreman_salt-ad79b95eb1d9/app/assets/javascripts > > /usr/share/foreman/vendor/ruby/2.3.0/gems/turbolinks-2.5.3/lib/assets/javascripts > > /usr/share/foreman/vendor/ruby/2.3.0/gems/scoped_search-3.3.0/app/assets/images > > /usr/share/foreman/vendor/ruby/2.3.0/gems/scoped_search-3.3.0/app/assets/javascripts > > /usr/share/foreman/vendor/ruby/2.3.0/gems/scoped_search-3.3.0/app/assets/stylesheets > > /usr/share/foreman/vendor/assets/fonts > /usr/share/foreman/app/assets/javascripts/spice.js:1 > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/resolve.rb:65:in > `resolve!' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/directive_processor.rb:399:in > `resolve' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/directive_processor.rb:207:in > `process_require_directive' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/directive_processor.rb:180:in > `block in process_directives' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/directive_processor.rb:178:in > `each' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/directive_processor.rb:178:in > `process_directives' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/directive_processor.rb:83:in > `_call' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/directive_processor.rb:68:in > `call' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:75:in > `call_processor' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:57:in > `block in call_processors' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:56:in > `reverse_each' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:56:in > `call_processors' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:134:in > `load_from_unloaded' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:60:in > `block in load' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:317:in > `fetch_asset_from_dependency_cache' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:44:in > `load' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/cached_environment.rb:20:in > `block in initialize' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/cached_environment.rb:47:in > `load' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/bundle.rb:23:in > `block in call' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/utils.rb:196:in > `dfs' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/bundle.rb:24:in > `call' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:75:in > `call_processor' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:57:in > `block in call_processors' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:56:in > `reverse_each' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:56:in > `call_processors' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:134:in > `load_from_unloaded' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:60:in > `block in load' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:317:in > `fetch_asset_from_dependency_cache' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:44:in > `load' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/cached_environment.rb:20:in > `block in initialize' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/cached_environment.rb:47:in > `load' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/base.rb:66:in > `find_asset' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/base.rb:73:in > `find_all_linked_assets' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:134:in > `block in find' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:133:in > `each' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:133:in > `find' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:185:in > `compile' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-rails-2.3.3/lib/sprockets/rails/task.rb:70:in > `block (3 levels) in define' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/rake/sprocketstask.rb:147:in > `with_logger' > /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-rails-2.3.3/lib/sprockets/rails/task.rb:69:in > `block (2 levels) in define' > Tasks: TOP => assets:precompile > (See full trace by running task with --trace) > > > On Tuesday, October 4, 2016 at 10:18:14 PM UTC+2, lakier wrote: >> >> thanks but: >> >> sudo -u foreman foreman-rake assets:precompile >> rake aborted! >> LoadError: cannot load such file -- uglifier >> /usr/share/foreman/vendor/ruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in >> `require' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in >> `require' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in >> `block in require' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:240:in >> `load_dependency' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in >> `require' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/autoload/uglifier.rb:1:in >> `' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in >> `require' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in >> `require' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in >> `block in require' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:240:in >> `load_dependency' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in >> `require' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/uglifier_compressor.rb:39:in >> `initialize' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/uglifier_compressor.rb:24:in >> `new' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/uglifier_compressor.rb:24:in >> `instance' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/uglifier_compressor.rb:28:in >> `call' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:75:in >> `call_processor' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:57:in >> `block in call_processors' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:56:in >> `reverse_each' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:56:in >> `call_processors' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:134:in >> `load_from_unloaded' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:60:in >> `block in load' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:317:in >> `fetch_asset_from_dependency_cache' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:44:in >> `load' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/cached_environment.rb:20:in >> `block in initialize' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/cached_environment.rb:47:in >> `load' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/base.rb:66:in >> `find_asset' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/base.rb:73:in >> `find_all_linked_assets' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:134:in >> `block in find' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:133:in >> `each' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:133:in >> `find' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:185:in >> `compile' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-rails-2.3.3/lib/sprockets/rails/task.rb:70:in >> `block (3 levels) in define' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/rake/sprocketstask.rb:147:in >> `with_logger' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-rails-2.3.3/lib/sprockets/rails/task.rb:69:in >> `block (2 levels) in define' >> Polyglot::PolyglotLoadError: Failed to load uglifier using extensions >> deface, rb >> /usr/share/foreman/vendor/ruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:55:in >> `load' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:68:in >> `rescue in require' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in >> `require' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in >> `block in require' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:240:in >> `load_dependency' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in >> `require' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/autoload/uglifier.rb:1:in >> `' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in >> `require' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in >> `require' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in >> `block in require' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:240:in >> `load_dependency' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in >> `require' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/uglifier_compressor.rb:39:in >> `initialize' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/uglifier_compressor.rb:24:in >> `new' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/uglifier_compressor.rb:24:in >> `instance' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/uglifier_compressor.rb:28:in >> `call' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:75:in >> `call_processor' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:57:in >> `block in call_processors' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:56:in >> `reverse_each' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:56:in >> `call_processors' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:134:in >> `load_from_unloaded' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:60:in >> `block in load' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:317:in >> `fetch_asset_from_dependency_cache' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:44:in >> `load' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/cached_environment.rb:20:in >> `block in initialize' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/cached_environment.rb:47:in >> `load' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/base.rb:66:in >> `find_asset' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/base.rb:73:in >> `find_all_linked_assets' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:134:in >> `block in find' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:133:in >> `each' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:133:in >> `find' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:185:in >> `compile' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-rails-2.3.3/lib/sprockets/rails/task.rb:70:in >> `block (3 levels) in define' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-3.7.0/lib/rake/sprocketstask.rb:147:in >> `with_logger' >> /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-rails-2.3.3/lib/sprockets/rails/task.rb:69:in >> `block (2 levels) in define' >> Tasks: TOP => assets:precompile >> (See full trace by running task with --trace) >> >> foreman was installed with foreman-installer. >> >> Seriously guys, I know no one is getting paid for this project but I was >> willing to help developing it, I tully was. >> Even though I don't do hipster ruby... >> But where the hell is working documentation? >> Why for the fuck sake you break builds and leave it? >> Does anyone take this project seriously? >> >> On Monday, October 3, 2016 at 3:46:19 PM UTC+2, Dominic Cleal wrote: >>> >>> On 01/10/16 21:53, lakier wrote: >>> > To provide more information, salt foreman plugin was installed via: >>> > gem 'foreman_salt', :git => "url to git", :branch => 'blabla' >>> > and running bundle update, bundle install... >>> > Do I miss some other undocumented magic command to install plugin? >>> > It looks like some initializing code is missing (javascripts should be >>> > translated to assets or something like this) >>> >>> "rake assets:precompile" should compile those, and you may also need >>> db:migrate and db:seed for DB-related setup. >>> >>> -- >>> Dominic Cleal >>> dom...@cleal.org >>> >>

Thanks, will check this.
I don't insult you so why you say this? moreover I also offer you my help…
But as a open-source project owner/maintaner you should provide at least
some up-to-date documentation for newcomers to quickly dive in.

··· On Wednesday, October 5, 2016 at 9:00:41 AM UTC+2, Dominic Cleal wrote: > > On 04/10/16 21:18, lakier wrote: > > thanks but: > > > > sudo -u foreman foreman-rake assets:precompile > > rake aborted! > > LoadError: cannot load such file -- uglifier > > Install "foreman-assets" to get this dependency for asset > precompilation, or use a packaged version of the plugin where this step > is unnecessary (the assets are shipped in the package). > > The extra dependencies are required when installing plugins from source > on top of a packaged installation, not a recommended combination. > > > foreman was installed with foreman-installer. > > The plugin can be installed by running --enable-foreman-plugin-salt, > which will install the ruby-foreman-salt package (assuming a Debian OS). > > > [redacted] > > Does anyone take this project seriously? > > Please have a bit more courtesy on this mailing list and follow our > guidelines at https://theforeman.org/support.html (they apply equally > here as they do to IRC). I replied and offered help; I don't expect to > be sworn at or insulted in return. > > -- > Dominic Cleal > dom...@cleal.org >

>
>
> What's broken?
>

http://ci.theforeman.org/job/test_plugin_foreman_salt_master/

it's not the technology knowledge (which is ROR here) the core problem
Problem lies in higher abstraction: you have decided to use dynamic
language to create quite complex piece of software, deliberately giving up
the benefits of compilers
Now: any newcomer to create anything, must master your docs, (btw: here
Foreman :: Plugin Manuals you rather make it clear that it is only *not
recommended *to install plugins from gems - you don't describe
aforementioned steps that I had to make)
On the other hand, if you had used statically typed language the language
type system could be the documentation (not to mention that the compiler
could catch bugs in compile-time rather than run-time)…

if you use dynamic language - your documentation must be perfect, but yet
you ask newcomers to edit it… see the twist?

There is a lot of documentation available, and we do try to keep it up
to date.

For foreman_salt, the best documentation is on the main website at
Foreman :: Plugin Manuals (for 7.0,
used with 1.13). It recommends to use the installer as this will install
the packaged version of the plugin and will take care of any necessary
configuration.

I'd suggest only using source installation instructions for plugins if
you're installing onto a source installation of Foreman too, else you'll
hit the asset compilation issue and you also need to worry about
migrating the database etc. Less so with the Debian packages, but our
packages aren't really designed with mixing in mind - both for Foreman
and the smart proxy.

There are instructions at
Foreman :: Manual for
installing a production version of Foreman from source, and at
Foreman :: Contribute for a development installation
from source. Stick with packages unless you have good reason to change.

Please file bugs in Redmine, or better, pull requests to
https://github.com/theforeman/theforeman.org if the docs are incorrect
or outdated. Thanks.

··· On 05/10/16 09:39, lakier wrote: > Thanks, will check this. > I don't insult you so why you say this? moreover I also offer you my help... > But as a open-source project owner/maintaner you should provide at least > some up-to-date documentation for newcomers to quickly dive in.


Dominic Cleal
dominic@cleal.org

Just jumping in to back Dominic up - we expect all users of our mailing
lists to show respect to each other. My thanks to Dominic for standing up
for that expectation, and with good grace.

I'll send a patch for theforeman.org later on, updating the guidelines to
make it more obvious that they apply here as well as to IRC.

Thanks
Greg

··· On 5 October 2016 at 08:00, Dominic Cleal wrote: > > > [redacted] > > Does anyone take this project seriously? > > Please have a bit more courtesy on this mailing list and follow our > guidelines at https://theforeman.org/support.html (they apply equally > here as they do to IRC). I replied and offered help; I don't expect to > be sworn at or insulted in return.


Greg Sutcliffe
Foreman Community Lead
IRC: gwmngilfen