Thanks for the reply, I did try various different path locations before I posted. I'm guessing that the problem is either in the way that puppet looks up hostnames or a problem elsewhere in the actual config.

err: /Stage[main]/Sshd/File[/tmp/that.txt]: Could not evaluate: getaddrinfo: Name or service not known Could not retrieve file metadata for puppet://server/sshd/files/tmp/that.txt: getaddrinfo: Name or service not known at /etc/puppet/modules/sshd/manifests/init.pp:29

on the client I've set:
[puppetd]
server = au-mel-master-1.blah.com

According to http://projects.puppetlabs.com/projects/puppet/wiki/File_Serving_Configuration you need to specify modules for the source as:
puppet://server/modules/<module-name>/file

and in that case puppet://server/modules/sshd/tmp/that.txt should work

but all variations of that line return:
"Could not evaluate: getaddrinfo: Name or service not known Could not retrieve file metadata"

which sounds like it work out the address and all I see on the puppetmaster is
"debug: File[/tmp/that.txt]: Adding default for ignore"

so there is some communication going between the hosts.

Cheers,
Denmat
On , Patrick Mohr <kc7...@gmail.com> wrote:
Try using a path of "puppet://server/sshd/files/that.txt" (I removed the word "modules").



On Jul 22, 2010, at 6:03 AM, denmat wrote:



> Hi all,

>

> Haven't set puppet up for awhile and have an issue with getting files

> served.

>

> I'm running 2.6 gem on fedora12.

>

> class sshd {

>

> file { "/tmp/that.txt":

> source => "puppet://server/modules/sshd/files/that.txt",

> ensure => present,

> mode => 600,

> owner => root,

> group => root,

> }

> }

>

> fileserver.conf

> [modules]

> allow *

>

> [sshd]

> path /etc/puppet/modules/sshd/files

> allow *.hitwise.com

>

> I can stop the ssh service on the client and puppet restarts it, but

> the file will not be sync'd to the client.

>

> /usr/bin/puppetd --no-daemonize --waitforcert 60 --server au-mel-

> master-1.blah.com --verbose --test --fqdn hitw-gc-xen-1.gdn.blah.com --

> debug

> debug: Puppet::Type::Service::ProviderRedhat: Executing '/sbin/

> chkconfig sshd'

> debug: file_metadata supports formats: b64_zlib_yaml marshal pson raw

> yaml; using pson

> err: /Stage[main]/Sshd/File[/tmp/that.txt]: Could not evaluate:

> getaddrinfo: Name or service not known Could not retrieve file

> metadata for puppet://server/modules/sshd/files/tmp/that.txt:

> getaddrinfo: Name or service not known at /etc/puppet/modules/sshd/

> manifests/init.pp:29

>

> I'm using /etc/hosts files while I test this scenario, but the puppet

> master is correctly configured in dns.

>

> What have I done wrong?

>

> Cheers

> Denmat

>

> --

> You received this message because you are subscribed to the Google Groups "Puppet Users" group.

> To post to this group, send email to puppet-us...@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-us...@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-us...@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