Thanks Peter for the response!

I did this:

Using the guide from HowtoForge posted earlier....

I fudged the in-place manifests file to:


## site.pp ##

# This file (/etc/puppetlabs/puppet/manifests/site.pp) is the main entry point
# used when an agent connects to a master and asks for an updated configuration.
#
# Global objects like filebuckets and resource defaults should go in this file,
# as should the default node definition. (The default node can be omitted
# if you use the console and don't define any other nodes in site.pp. See
# http://docs.puppetlabs.com/guides/language_guide.html#nodes for more on
# node definitions.)

## Active Configurations ##

# PRIMARY FILEBUCKET
# This configures puppet agent and puppet inspect to back up file contents when
# they run. The Puppet Enterprise console needs this to display file contents
# and differences.

# Define filebucket 'main':
#filebucket { 'main':
#  server => 'learn.localdomain',
#  path   => false,
#}

# Make filebucket 'main' the default backup location for all File resources:
#File { backup => 'main' }

# DEFAULT NODE
# Node definitions in this file are merged with node data from the console. See
# http://docs.puppetlabs.com/guides/language_guide.html#nodes for more on
# node definitions.

# The default node definition matches any node lacking a more specific node
# definition. If there are no other nodes in this file, classes declared here
# will be included in every node's catalog, *in addition* to any classes
# specified in the console for that node.

#node default {
  # This is where you can declare classes for all nodes.
  # Example:
  #   class { 'my_class': }
#}


# Create "/tmp/testfile" if it doesn't exist.
class test_class {
    file { "/tmp/testfile":
       ensure => present,
       mode   => 644,
       owner  => root,
       group  => root
    }
}

# tell puppet on which client to run the class
node pc.jabber.com {
    include test_class
}



The domain is just using local DNS server which is not on web to
pre-test a jabber implementation.


On both systems when I run: puppet agent --test I keep getting these errors:


Server:

[root@ps ~]# /opt/puppet/bin/puppet agent --test
info: Retrieving plugin
err: /File[/var/opt/lib/pe-puppet/lib]: Failed to generate additional
resources using 'eval_generate: getaddrinfo: Name or service not known
err: /File[/var/opt/lib/pe-puppet/lib]: Could not evaluate:
getaddrinfo: Name or service not known Could not retrieve file
metadata for puppet://learn.localdomain/plugins: getaddrinfo: Name or
service not known
info: Loading facts in facter_dot_d
info: Loading facts in facter_dot_d
info: Loading facts in facter_dot_d
info: Loading facts in facter_dot_d
err: Could not retrieve catalog from remote server: getaddrinfo: Name
or service not known
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
err: Could not send report: getaddrinfo: Name or service not known


Client:


[root@pc ~]# puppet agent --test
err: Could not retrieve catalog from remote server: hostname was not
match with the server certificate
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
err: Could not send report: hostname was not match with the server certificate


.....am creating the cert via: puppetd -t

but not having much luck?? :-(



Regards,


Kaya


On Tue, Apr 10, 2012 at 1:55 PM, Peter Berghold <salty.cowd...@gmail.com> wrote:
> Kaya,
>
> The manifest file(s) are something you create to tell puppet what you want
> done.   Starting with a file in (normally) /etc/puppet/manifests/site.pp
>
> HTH
>
>
> On Tue, Apr 10, 2012 at 7:18 AM, Kaya Saman <kayasa...@gmail.com> wrote:
>>
>> Hi,
>>
>> I am totally new to Puppet and for the last few weeks I've been trying
>> to read as many documents and howto's as possible to try to understand
>> how Puppet works.
>>
>>
>> Currently, after going through:
>>
>> http://www.howtoforge.com/installing_puppet_on_ubuntu
>>
>> http://docs.puppetlabs.com/pe/2.5/quick_start.html
>>
>>
>> http://that-matt.com/2010/08/puppet-retrieved-certificate-does-not-match-private-key/
>>
>> http://bitcube.co.uk/content/puppet-errors-explained
>>
>> https://www.cs.drexel.edu/node/14569
>>
>>
>> I am noticing that the client system is not generating a manifests file???
>>
>>
>> Currently I created a new SSL certificate on the client by doing:
>>
>> puppet -t
>>
>>
>> As for the server... I am using the training OVF image learn.puppet
>> from the puppetlabs.com website.
>>
>>
>> Running: puppet agent --test on the client gives me this output:
>>
>>
>> err: Could not retrieve catalog from remote server: hostname was not
>> match with the server certificate
>> warning: Not using cache on failed catalog
>> err: Could not retrieve catalog; skipping run
>> err: Could not send report: hostname was not match with the server
>> certificate
>>
>>
>> I signed the certificate on the server by doing:
>>
>>
>> puppetca --list
>> puppetca --sign <fqdn>
>>
>>
>> This should be pretty trivial however, for whatever reason things
>> aren't working..... could anyone give me a hand?
>>
>>
>> Thanks.
>>
>>
>>
>> Kaya
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Puppet Users" group.
>> To post to this group, send email to puppet-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> puppet-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/puppet-users?hl=en.
>>
>
>
>
> --
> Peter L. Berghold
> Owner, Shark River Technical Solutions LLC
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to