not able to sign the certificate of puppet master

729 views
Skip to first unread message

Spriya

unread,
Sep 2, 2014, 9:55:15 AM9/2/14
to puppet...@googlegroups.com
Hi,

I installed puppet using open source. when i tryied to run puppet agent -t it is throwing me error.

puppet agent -t
Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: getaddrinfo: Name or service not known
Info: Retrieving pluginfacts
Error: /File[/var/lib/puppet/facts.d]: Failed to generate additional resources using 'eval_generate': getaddrinfo: Name or service not known
Error: /File[/var/lib/puppet/facts.d]: Could not evaluate: Could not retrieve file metadata for puppet://puppet/pluginfacts: getaddrinfo: Name or service not known
Wrapped exception:
getaddrinfo: Name or service not known
Info: Retrieving plugin
Error: /File[/var/lib/puppet/lib]: Failed to generate additional resources using 'eval_generate': getaddrinfo: Name or service not known
Error: /File[/var/lib/puppet/lib]: Could not evaluate: Could not retrieve file metadata for puppet://puppet/plugins: getaddrinfo: Name or service not known
Wrapped exception:
getaddrinfo: Name or service not known


[main]
    # The Puppet log directory.
    # The default value is '$vardir/log'.
    logdir = /var/log/puppet

    # Where Puppet PID files are kept.
    # The default value is '$vardir/run'.
    rundir = /var/run/puppet

    # Where SSL certificates are kept.
    # The default value is '$confdir/ssl'.
    ssldir = $vardir/ssl

[agent]
    # The file in which puppetd stores a list of the classes
    # associated with the retrieved configuratiion.  Can be loaded in
    # the separate ``puppet`` executable using the ``--loadclasses``
    # option.
    # The default value is '$confdir/classes.txt'.
    classfile = $vardir/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
[master]
 certname = hostname



please help me





jcbollinger

unread,
Sep 3, 2014, 1:52:58 PM9/3/14
to puppet...@googlegroups.com


The agent does not know the correct hostname of the master.  It is trying to look it up via the default name, 'puppet,' but the system's resolver does not find anything by that name.  Add a

    server = <puppet.master.fqdn>

to the [agent] section of your puppet.conf.


John

Spriya

unread,
Sep 3, 2014, 4:53:19 PM9/3/14
to puppet...@googlegroups.com

Thank you john. It really helped me a lot.

Vivek Mishra

unread,
Jun 3, 2016, 4:27:30 AM6/3/16
to Puppet Users
Hi John,

I am facing a similar type of error. Can you help me.

sudo puppet agent -tWarning: Unable to fetch my node definition, but the agent run will continue:Warning: getaddrinfo: Name or service not knownInfo: Retrieving pluginfactsError: /File[/var/lib/puppet/facts.d]: Failed to generate additional resources using 'eval_generate': getaddrinfo: Name or service not knownError: /File[/var/lib/puppet/facts.d]: Could not evaluate: Could not retrieve file metadata for puppet://puppet1-puppet-master/pluginfacts: getaddrinfo: Name or service not knownInfo: Retrieving pluginError: /File[/var/lib/puppet/lib]: Failed to generate additional resources using 'eval_generate': getaddrinfo: Name or service not knownError: /File[/var/lib/puppet/lib]: Could not evaluate: Could not retrieve file metadata for puppet://puppet1-puppet-master/plugins: getaddrinfo: Name or service not knownError: Could not retrieve catalog from remote server: getaddrinfo: Name or service not knownWarning: Not using cache on failed catalogError: Could not retrieve catalog; skipping runError: Could not send report: getaddrinfo: Name or service not known

Lowe Schmidt

unread,
Jun 3, 2016, 8:06:27 AM6/3/16
to puppet...@googlegroups.com
Vivek, the solution is already in this thread. Read jcbollingers answer

--
Lowe Schmidt | +46 723 867 157

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/fc097b9a-3028-4651-aca1-ac2eae32056a%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages