Hello,
I have a problem in visualization, or the generation of reports or the
foreman.
I have do in clients "report = true" as follows puppet.conf of my
clients:
[Agent]
# The file in puppetd Which stores the list of the classes
Associated with the # configuratiion retrieved. Can be loaded in
# The separate puppet
executable using the -
loadclasses
# Option.
# The default value is '$ confdir / classes.txt'.
classfile = $ Vardar / classes.txt
# Where puppetd caches the local configuration. An
# The INDICATING extension cache format is added automatically.
# The default value is '$ confdir / localconfig'.
localconfig = $ Vardar / localconfigi
runinterval = 14400
report = true
In this puppet server with the following configuration:
[Main]
# The Puppet log directory.
# The default value is '$ Vardar / log'.
logdir = / var / log / puppet
# Where Puppet PID files are kept.
# The default value is '$ Vardar / run'.
rundi = / var / run / puppet
# Where SSL certificates are kept.
# The default value is '$ confdir / ssl'.
ssldir = $ Vardar / ssl
[Puppetd]
# The file in puppetd Which stores the list of the classes
Associated with the # configuratiion retrieved. Can be loaded in
# The separate puppet
executable using the -
loadclasses
# Option.
# The default value is '$ confdir / classes.txt'.
classfile = $ Vardar / classes.txt
# Where puppetd caches the local configuration. An
# The INDICATING extension cache format is added automatically.
# The default value is '$ confdir / localconfig'.
localconfig = $ Vardar / localconfig
# Enable reporting for Foreman
report = true
[Puppetmasterd]
storeconfigs = true
dbadapter = mysql
dbname = puppet
dbuser = puppet
dbpassword = ************
dbserver = localhost
dbsocket = / var / lib / mysql / mysql.sock
rrddir = / var / lib / puppet / rrd
rrdinterval = $ runinterval
rrdgraph = true
reports = store, httpd, foreman, log
Clients when I try to test the command of the puppet of this error
message:
[Root @ v-iba2-stage01 ~] # puppetd - server-v-puppet
master.abrdigital.com.br - test
info: Caching catalog is iba2-v-stage01.abrdigital.com.br
info: Applying configuration version '1327678591 '
notice: Finished catalog run in 1.26 seconds
err: Could not send report: Error 400 on SERVER: Could not autoload
foreman, foreman already defined Function
Any ideas?
Tks!
Douglas
> Hello,
>
> I have a problem in visualization, or the generation of reports or the
> foreman.
>
> I have do in clients "report = true" as follows puppet.conf of my
> clients:
>
> [Agent]
> # The file in puppetd Which stores the list of the classes
> Associated with the # configuratiion retrieved. Can be loaded in
> # The separate puppet
executable using the -
> loadclasses
> # Option.
> # The default value is '$ confdir / classes.txt'.
> classfile = $ Vardar / classes.txt
> # Where puppetd caches the local configuration. An
> # The INDICATING extension cache format is added automatically.
> # The default value is '$ confdir / localconfig'.
> localconfig = $ Vardar / localconfigi
> runinterval = 14400
> report = true
>
> In this puppet server with the following configuration:
>
> [Main]
> # The Puppet log directory.
> # The default value is '$ Vardar / log'.
> logdir = / var / log / puppet
>
> # Where Puppet PID files are kept.
> # The default value is '$ Vardar / run'.
> rundi = / var / run / puppet
>
> # Where SSL certificates are kept.
> # The default value is '$ confdir / ssl'.
> ssldir = $ Vardar / ssl
>
> [Puppetd]
> # The file in puppetd Which stores the list of the classes
> Associated with the # configuratiion retrieved. Can be loaded in
> # The separate puppet
executable using the -
> loadclasses
> # Option.
> # The default value is '$ confdir / classes.txt'.
> classfile = $ Vardar / classes.txt
>
> # Where puppetd caches the local configuration. An
> # The INDICATING extension cache format is added automatically.
> # The default value is '$ confdir / localconfig'.
> localconfig = $ Vardar / localconfig
>
> # Enable reporting for Foreman
> report = true
>
> [Puppetmasterd]
> storeconfigs = true
> dbadapter = mysql
> dbname = puppet
> dbuser = puppet
> dbpassword = ************
> dbserver = localhost
> dbsocket = / var / lib / mysql / mysql.sock
> rrddir = / var / lib / puppet / rrd
> rrdinterval = $ runinterval
> rrdgraph = true
> reports = store, httpd, foreman, log
>
> Clients when I try to test the command of the puppet of this error
> message:
>
>
> [Root @ v-iba2-stage01 ~] # puppetd - server-v-puppet
> master.abrdigital.com.br - test
> info: Caching catalog is iba2-v-stage01.abrdigital.com.br
> info: Applying configuration version '1327678591 '
> notice: Finished catalog run in 1.26 seconds
> err: Could not send report: Error 400 on SERVER: Could not autoload
> foreman, foreman already defined Function
>
>
> Any ideas?
two comments:
- your section names might be wrong (should not be cap, and it depends
on the version of puppet you are running), on 2.6.x it should be [agent]
and [master]
- you really don't need both store and http(d?) reports, just plain
foreman.
Ohad
ยทยทยท
On 01/27/2012 05:53 PM, Douglas Brancaglion wrote:
>
> Tks!
>
> Douglas
>