No uploader

Trying to get chef-handler-foreman to work. At the end of a Chef converge,
it says

"ERROR: No uploader registered for foreman reporting, skipping facts upload"
"ERROR: No uploader registered for foreman reporting, skipping report
upload"

So the question is, how does one get and register an uploader?

Hello,

how did you install the handler? You have to modify /etc/chef/client.rb to
register it. See [1] for example how to do it

[1] https://github.com/theforeman/chef-handler-foreman#installation

··· On Tuesday 02 of August 2016 11:46:40 Thomas Fee wrote: > Trying to get chef-handler-foreman to work. At the end of a Chef converge, > it says > > "ERROR: No uploader registered for foreman reporting, skipping facts upload" > "ERROR: No uploader registered for foreman reporting, skipping report > upload" > > So the question is, how does one get and register an uploader?

On the target (Chef) node, I ran "gem install chef_handler_foreman", then
edited /etc/chef/client.rb.

Not have any additional information, I just made that file look like the
documentation you linked to.

log_location STDOUT
chef_server_url "https://172.17.8.101:443"
validation_client_name "chef-validator"

Using default node name (fqdn)

require 'chef_handler_foreman'
foreman_server options :url => 'http://oz.local/foreman:8443'
foreman_facts_upload true
foreman_facts_whitelist ['lsb','network','cpu']
foreman_facts_blacklist ['kernel','counters','interfaces::sit0']
foreman_cache_file '/var/cache/chef_foreman_cache.md5'
foreman_reports_upload true
reports_log_level "notice"

··· On Wednesday, August 3, 2016 at 1:05:36 AM UTC-7, Marek Hulán wrote: > > Hello, > > how did you install the handler? You have to modify /etc/chef/client.rb to > register it. See [1] for example how to do it > > [1] https://github.com/theforeman/chef-handler-foreman#installation > > > On Tuesday 02 of August 2016 11:46:40 Thomas Fee wrote: > > Trying to get chef-handler-foreman to work. At the end of a Chef > converge, > > it says > > > > "ERROR: No uploader registered for foreman reporting, skipping facts > upload" > > "ERROR: No uploader registered for foreman reporting, skipping report > > upload" > > > > So the question is, how does one get and register an uploader? > >

I ran gem install chef_handler_foreman.

Then I edited /etc/chef/client.rb and inserted lines laid out in

··· On Wednesday, August 3, 2016 at 1:05:36 AM UTC-7, Marek Hulán wrote: > > Hello, > > how did you install the handler? You have to modify /etc/chef/client.rb to > register it. See [1] for example how to do it > > [1] https://github.com/theforeman/chef-handler-foreman#installation > > > On Tuesday 02 of August 2016 11:46:40 Thomas Fee wrote: > > Trying to get chef-handler-foreman to work. At the end of a Chef > converge, > > it says > > > > "ERROR: No uploader registered for foreman reporting, skipping facts > upload" > > "ERROR: No uploader registered for foreman reporting, skipping report > > upload" > > > > So the question is, how does one get and register an uploader? > >

Ok, so there's an error in the client.rb, the underscore is missing in
foreman_server_options (see below)

··· On Wednesday 03 of August 2016 01:23:57 Thomas Fee wrote: > On the target (Chef) node, I ran "gem install chef_handler_foreman", then > edited /etc/chef/client.rb. > > Not have any additional information, I just made that file look like the > documentation you linked to. > > log_location STDOUT > chef_server_url "https://172.17.8.101:443" > validation_client_name "chef-validator" > # Using default node name (fqdn) > > require 'chef_handler_foreman' > foreman_server options :url => 'http://oz.local/foreman:8443' ^ here's the underscore missing this actually causes the handler is not being created


Marek

foreman_facts_upload true
foreman_facts_whitelist [‘lsb’,‘network’,‘cpu’]
foreman_facts_blacklist [‘kernel’,‘counters’,‘interfaces::sit0’]
foreman_cache_file '/var/cache/chef_foreman_cache.md5’
foreman_reports_upload true
reports_log_level “notice”

On Wednesday, August 3, 2016 at 1:05:36 AM UTC-7, Marek Hulán wrote:

Hello,

how did you install the handler? You have to modify /etc/chef/client.rb to
register it. See [1] for example how to do it

[1] https://github.com/theforeman/chef-handler-foreman#installation

On Tuesday 02 of August 2016 11:46:40 Thomas Fee wrote:

Trying to get chef-handler-foreman to work. At the end of a Chef

converge,

it says

"ERROR: No uploader registered for foreman reporting, skipping facts

upload"

“ERROR: No uploader registered for foreman reporting, skipping report
upload”

So the question is, how does one get and register an uploader?

Thank you so much!

This reminds me to follow one of my rules: Never type in anything when you
can copy and paste.

··· On Thursday, August 4, 2016 at 8:29:08 AM UTC-7, Marek Hulán wrote: > > Ok, so there's an error in the client.rb, the underscore is missing in > foreman_server_options (see below) > > On Wednesday 03 of August 2016 01:23:57 Thomas Fee wrote: > > On the target (Chef) node, I ran "gem install chef_handler_foreman", > then > > edited /etc/chef/client.rb. > > > > Not have any additional information, I just made that file look like the > > documentation you linked to. > > > > log_location STDOUT > > chef_server_url "https://172.17.8.101:443" > > validation_client_name "chef-validator" > > # Using default node name (fqdn) > > > > require 'chef_handler_foreman' > > foreman_server options :url => 'http://oz.local/foreman:8443' > ^ here's the underscore missing > this actually causes the handler is not being created > > -- > Marek > > > foreman_facts_upload true > > foreman_facts_whitelist ['lsb','network','cpu'] > > foreman_facts_blacklist ['kernel','counters','interfaces::sit0'] > > foreman_cache_file '/var/cache/chef_foreman_cache.md5' > > foreman_reports_upload true > > reports_log_level "notice" > > > > On Wednesday, August 3, 2016 at 1:05:36 AM UTC-7, Marek Hulán wrote: > > > Hello, > > > > > > how did you install the handler? You have to modify > /etc/chef/client.rb to > > > register it. See [1] for example how to do it > > > > > > [1] https://github.com/theforeman/chef-handler-foreman#installation > > > > > > On Tuesday 02 of August 2016 11:46:40 Thomas Fee wrote: > > > > Trying to get chef-handler-foreman to work. At the end of a Chef > > > > > > converge, > > > > > > > it says > > > > > > > > "ERROR: No uploader registered for foreman reporting, skipping facts > > > > > > upload" > > > > > > > "ERROR: No uploader registered for foreman reporting, skipping > report > > > > upload" > > > > > > > > So the question is, how does one get and register an uploader? > >