I have followed the documentation give in foreman site, Still reports are
not showing up.
My puppet.conf file
File managed with puppet
Module: 'puppet'
[main]
# Where Puppet's general dynamic and/or growing data is kept
vardir = /opt/puppetlabs/puppet/cache
# The Puppet log directory.
# The default value is '$vardir/log'.
logdir = /var/log/puppetlabs/puppet
# Where Puppet PID files are kept.
# The default value is '$vardir/run'.
rundir = /var/run/puppetlabs
# Where SSL certificates are kept.
# The default value is '$confdir/ssl'.
ssldir = /etc/puppetlabs/puppet/ssl
# Allow services in the 'puppet' group to access key (Foreman + proxy)
privatekeydir = $ssldir/private_keys { group = service }
hostprivkey = $privatekeydir/$certname.pem { mode = 640 }
show_diff = false
reports = log, foreman
Next part of the file is managed by a different template
Module: 'puppet'
[agent]
# The file in which puppetd stores a list of the classes
# associated with the retrieved configuration. Can be loaded in
# the separate puppet executable using the --loadclasses
# option.
# The default value is '$statedir/classes.txt'.
classfile = $statedir/classes.txt
# Where puppetd caches the local configuration. An
# extension indicating the cache format is added automatically.
# The default value is '$confdir/localconfig'.
localconfig = $vardir/localconfig
# Disable the default schedules as they cause continual skipped
# resources to be displayed in Foreman - only for Puppet >= 3.4
default_schedules = false
report = true
pluginsync = true
masterport = 8140
environment = production
certname = <%= fqdn %>
server = <%= puppet server fqdn %>
listen = false
splay = false
splaylimit = 1800
runinterval = 1800
noop = false
usecacheonfailure = true
Next part of the file is managed by a different template
Hi,
My production log during the puppet agent run,
2016-11-14T11:46:40 [app] [I] Import facts for '<Client_FQDN>' completed.
Added: 0, Updated: 5, Deleted 0 facts
2016-11-14T11:46:40 [app] [I] Completed 201 Created in 105ms (Views: 1.7ms
> ActiveRecord: 54.5ms)
2016-11-14T11:46:40 [app] [I] Started GET "/node/<Client_FQDN>?format=yml"
for 192.168.119.44 at 2016-11-14 11:46:40 +0100
2016-11-14T11:46:40 [app] [I] Processing by HostsController#externalNodes
as YML
2016-11-14T11:46:40 [app] [I] Parameters: {"name"=>"<Client_FQDN>"}
2016-11-14T11:46:40 [app] [I] Rendered text template (0.0ms)
2016-11-14T11:46:40 [app] [I] Completed 200 OK in 72ms (Views: 0.3ms |
ActiveRecord: 4.5ms)
Thanks.
···
On Friday, November 11, 2016 at 11:53:51 AM UTC+1, Akash Kaveti wrote:
>
> Hi All,
>
> I have followed the documentation give in foreman site, Still reports are
> not showing up.
> My puppet.conf file
> ### File managed with puppet ###
> ## Module: 'puppet'
>
> [main]
> # Where Puppet's general dynamic and/or growing data is kept
> vardir = /opt/puppetlabs/puppet/cache
>
> # The Puppet log directory.
> # The default value is '$vardir/log'.
> logdir = /var/log/puppetlabs/puppet
>
> # Where Puppet PID files are kept.
> # The default value is '$vardir/run'.
> rundir = /var/run/puppetlabs
>
> # Where SSL certificates are kept.
> # The default value is '$confdir/ssl'.
> ssldir = /etc/puppetlabs/puppet/ssl
>
> # Allow services in the 'puppet' group to access key (Foreman + proxy)
> privatekeydir = $ssldir/private_keys { group = service }
> hostprivkey = $privatekeydir/$certname.pem { mode = 640 }
>
> show_diff = false
> reports = log, foreman
>
>
> ## Server config
>
> reports = foreman
>
> environmentpath = /etc/puppetlabs/code/environments
> basemodulepath =
> /etc/puppetlabs/code/environments/common:/etc/puppetlabs/code/modules:/opt/puppetlabs/puppet/modules
>
> hiera_config = $confdir/hiera.yaml
> ### Next part of the file is managed by a different template ###
> ## Module: 'puppet'
>
> [agent]
> # The file in which puppetd stores a list of the classes
> # associated with the retrieved configuration. Can be loaded in
> # the separate ``puppet`` executable using the ``--loadclasses``
> # option.
> # The default value is '$statedir/classes.txt'.
> classfile = $statedir/classes.txt
>
> # Where puppetd caches the local configuration. An
> # extension indicating the cache format is added automatically.
> # The default value is '$confdir/localconfig'.
> localconfig = $vardir/localconfig
>
> # Disable the default schedules as they cause continual skipped
> # resources to be displayed in Foreman - only for Puppet >= 3.4
> default_schedules = false
>
> report = true
> pluginsync = true
> masterport = 8140
> environment = production
> certname = <%= fqdn %>
> server = <%= puppet server fqdn %>
> listen = false
> splay = false
> splaylimit = 1800
> runinterval = 1800
> noop = false
> usecacheonfailure = true
> ### Next part of the file is managed by a different template ###
> ## Module: 'puppet'
>
> [master]
> autosign = /etc/puppetlabs/puppet/autosign.conf { mode = 0664 }
> external_nodes = /etc/puppetlabs/puppet/node.rb
> node_terminus = exec
> ca = true
> ssldir = /etc/puppetlabs/puppet/ssl
> certname = <%= fqdn %>
> parser = current
> strict_variables = false
>
> my foreman.yaml file,
>
> ---
> :url: " "
> :ssl_ca: "/etc/puppetlabs/puppet/ssl/ca/ca_crt.pem"
> :ssl_cert: "/etc/puppetlabs/puppet/ssl/certs/<%= fqdn %>.pem"
> :ssl_key: "/etc/puppetlabs/puppet/ssl/private_keys/<%= fqdn %>.pem"
> :user:
> :password:
> :puppetdir: "/opt/puppetlabs/puppet/cache"
> :puppetuser: "puppet"
> :facts: true
> :timeout: 60
> :report_timeout: 60
> :threads: null
>
>
> I have foreman.rb at
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/reports/foreman.rb.
>
> Thank you.
>
>
>
>
When I checked pupperserver logs, this is the error.
2016-11-14 11:58:53,352 ERROR [qtp895696639-72] [puppetserver] Puppet
Report processor failed: Could not send report to Foreman at https://foreman.bonner.cogno.loc/api/config_reports: Could not generate DH
keypair
···
On Friday, November 11, 2016 at 11:53:51 AM UTC+1, Akash Kaveti wrote:
>
> Hi All,
>
> I have followed the documentation give in foreman site, Still reports are
> not showing up.
> My puppet.conf file
> ### File managed with puppet ###
> ## Module: 'puppet'
>
> [main]
> # Where Puppet's general dynamic and/or growing data is kept
> vardir = /opt/puppetlabs/puppet/cache
>
> # The Puppet log directory.
> # The default value is '$vardir/log'.
> logdir = /var/log/puppetlabs/puppet
>
> # Where Puppet PID files are kept.
> # The default value is '$vardir/run'.
> rundir = /var/run/puppetlabs
>
> # Where SSL certificates are kept.
> # The default value is '$confdir/ssl'.
> ssldir = /etc/puppetlabs/puppet/ssl
>
> # Allow services in the 'puppet' group to access key (Foreman + proxy)
> privatekeydir = $ssldir/private_keys { group = service }
> hostprivkey = $privatekeydir/$certname.pem { mode = 640 }
>
> show_diff = false
> reports = log, foreman
>
>
> ## Server config
>
> reports = foreman
>
> environmentpath = /etc/puppetlabs/code/environments
> basemodulepath =
> /etc/puppetlabs/code/environments/common:/etc/puppetlabs/code/modules:/opt/puppetlabs/puppet/modules
>
> hiera_config = $confdir/hiera.yaml
> ### Next part of the file is managed by a different template ###
> ## Module: 'puppet'
>
> [agent]
> # The file in which puppetd stores a list of the classes
> # associated with the retrieved configuration. Can be loaded in
> # the separate ``puppet`` executable using the ``--loadclasses``
> # option.
> # The default value is '$statedir/classes.txt'.
> classfile = $statedir/classes.txt
>
> # Where puppetd caches the local configuration. An
> # extension indicating the cache format is added automatically.
> # The default value is '$confdir/localconfig'.
> localconfig = $vardir/localconfig
>
> # Disable the default schedules as they cause continual skipped
> # resources to be displayed in Foreman - only for Puppet >= 3.4
> default_schedules = false
>
> report = true
> pluginsync = true
> masterport = 8140
> environment = production
> certname = <%= fqdn %>
> server = <%= puppet server fqdn %>
> listen = false
> splay = false
> splaylimit = 1800
> runinterval = 1800
> noop = false
> usecacheonfailure = true
> ### Next part of the file is managed by a different template ###
> ## Module: 'puppet'
>
> [master]
> autosign = /etc/puppetlabs/puppet/autosign.conf { mode = 0664 }
> external_nodes = /etc/puppetlabs/puppet/node.rb
> node_terminus = exec
> ca = true
> ssldir = /etc/puppetlabs/puppet/ssl
> certname = <%= fqdn %>
> parser = current
> strict_variables = false
>
> my foreman.yaml file,
>
> ---
> :url: "https://foreman.bonner.cogno.loc"
> :ssl_ca: "/etc/puppetlabs/puppet/ssl/ca/ca_crt.pem"
> :ssl_cert: "/etc/puppetlabs/puppet/ssl/certs/<%= fqdn %>.pem"
> :ssl_key: "/etc/puppetlabs/puppet/ssl/private_keys/<%= fqdn %>.pem"
> :user:
> :password:
> :puppetdir: "/opt/puppetlabs/puppet/cache"
> :puppetuser: "puppet"
> :facts: true
> :timeout: 60
> :report_timeout: 60
> :threads: null
>
>
> I have foreman.rb at
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/reports/foreman.rb.
>
> Thank you.
>
>
>
>
Thankyou for the reply,
I was confused, bwhich method should I follow from link you have provided.
Should I change/ paste the DH parameters to my puppetserver pem file?
or should I change in foreman-ssl.conf file?
Thanks.
···
On Friday, November 11, 2016 at 11:53:51 AM UTC+1, Akash Kaveti wrote:
>
> Hi All,
>
> I have followed the documentation give in foreman site, Still reports are
> not showing up.
> My puppet.conf file
> ### File managed with puppet ###
> ## Module: 'puppet'
>
> [main]
> # Where Puppet's general dynamic and/or growing data is kept
> vardir = /opt/puppetlabs/puppet/cache
>
> # The Puppet log directory.
> # The default value is '$vardir/log'.
> logdir = /var/log/puppetlabs/puppet
>
> # Where Puppet PID files are kept.
> # The default value is '$vardir/run'.
> rundir = /var/run/puppetlabs
>
> # Where SSL certificates are kept.
> # The default value is '$confdir/ssl'.
> ssldir = /etc/puppetlabs/puppet/ssl
>
> # Allow services in the 'puppet' group to access key (Foreman + proxy)
> privatekeydir = $ssldir/private_keys { group = service }
> hostprivkey = $privatekeydir/$certname.pem { mode = 640 }
>
> show_diff = false
> reports = log, foreman
>
>
> ## Server config
>
> reports = foreman
>
> environmentpath = /etc/puppetlabs/code/environments
> basemodulepath =
> /etc/puppetlabs/code/environments/common:/etc/puppetlabs/code/modules:/opt/puppetlabs/puppet/modules
>
> hiera_config = $confdir/hiera.yaml
> ### Next part of the file is managed by a different template ###
> ## Module: 'puppet'
>
> [agent]
> # The file in which puppetd stores a list of the classes
> # associated with the retrieved configuration. Can be loaded in
> # the separate ``puppet`` executable using the ``--loadclasses``
> # option.
> # The default value is '$statedir/classes.txt'.
> classfile = $statedir/classes.txt
>
> # Where puppetd caches the local configuration. An
> # extension indicating the cache format is added automatically.
> # The default value is '$confdir/localconfig'.
> localconfig = $vardir/localconfig
>
> # Disable the default schedules as they cause continual skipped
> # resources to be displayed in Foreman - only for Puppet >= 3.4
> default_schedules = false
>
> report = true
> pluginsync = true
> masterport = 8140
> environment = production
> certname = <%= fqdn %>
> server = <%= puppet server fqdn %>
> listen = false
> splay = false
> splaylimit = 1800
> runinterval = 1800
> noop = false
> usecacheonfailure = true
> ### Next part of the file is managed by a different template ###
> ## Module: 'puppet'
>
> [master]
> autosign = /etc/puppetlabs/puppet/autosign.conf { mode = 0664 }
> external_nodes = /etc/puppetlabs/puppet/node.rb
> node_terminus = exec
> ca = true
> ssldir = /etc/puppetlabs/puppet/ssl
> certname = <%= fqdn %>
> parser = current
> strict_variables = false
>
> my foreman.yaml file,
>
> ---
> :url: "https://foreman.bonner.cogno.loc"
> :ssl_ca: "/etc/puppetlabs/puppet/ssl/ca/ca_crt.pem"
> :ssl_cert: "/etc/puppetlabs/puppet/ssl/certs/<%= fqdn %>.pem"
> :ssl_key: "/etc/puppetlabs/puppet/ssl/private_keys/<%= fqdn %>.pem"
> :user:
> :password:
> :puppetdir: "/opt/puppetlabs/puppet/cache"
> :puppetuser: "puppet"
> :facts: true
> :timeout: 60
> :report_timeout: 60
> :threads: null
>
>
> I have foreman.rb at
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/reports/foreman.rb.
>
> Thank you.
>
>
>
>
···
On Mon, Nov 14, 2016 at 03:20:22AM -0800, Akash Kaveti wrote:
> When I checked pupperserver logs, this is the error.
> 2016-11-14 11:58:53,352 ERROR [qtp895696639-72] [puppetserver] Puppet
> Report processor failed: Could not send report to Foreman at
> https://foreman.bonner.cogno.loc/api/config_reports: Could not generate DH
> keypair