Hi guys, hope you are doing well.

I'm trying to configure  puppet reports using this 
guide: https://theforeman.org/manuals/1.3/index.html#3.5.4PuppetReports
I copied the file 
to /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/reports/foreman.rb 
and the I configured the following:

$foreman_url='<%= @https://servername:8443 -%>'

# if CA is specified, remote Foreman host will be verified
$foreman_ssl_ca = "<%= @/etc/puppetlabs/foreman/ssl/ca/ca.pem -%>"
# ssl_cert and key are required if require_ssl_puppetmasters is enabled in 
Foreman
$foreman_ssl_cert = "<%= 
@/etc/puppetlabs/foreman/ssl/certs/foreman.local.pem -%>"
$foreman_ssl_key = "<%= 
@/etc/puppetlabs/foreman/ssl/private_keys/foreman.local.pem -%>"

On puppet.conf
storeconfigs = true
storeconfigs_backend = puppetdb
reports = store,puppetdb,foreman


But in the logs I get this error:

 Puppet Report processor failed: Could not send report to Foreman at <%= 
@https://servername:8443 -%>/api/reports: bad URI(is not URI?): <%= 
@https://servername:8443 -%>

Using:
puppetserver version: 2.7.2
puppet -V
4.10.1

Can you please help me on this?

Thanks
Regards

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to