Re: [foreman-dev] Re: Cannot select salt states
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. 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 https://theforeman.org/plugins/foreman_salt/7.0/index.html (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 https://theforeman.org/manuals/1.13/index.html#3.4InstallFromSource for installing a production version of Foreman from source, and at https://theforeman.org/contribute.html 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. -- Dominic Cleal domi...@cleal.org -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [foreman-dev] Re: Cannot select salt states
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 > -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [foreman-dev] Re: Cannot select salt states
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' >
Re: [foreman-dev] Re: Cannot select salt states
/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'
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' /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'