> # /etc/puppet/puppet.conf
>
> [development]
> modulepath = /etc/puppetmodules/development/modules/
> [production]
> modulepath = /etc/puppetmodules/production/modules/
>
> In manifest there is an entry....like following..
> .
> .
> .
> file { "/var/lib/conf/my.xml":
> owner => 'root',
> source => "puppet://puppet/<moduleanme>/my.xml" ,
> }
What version is the puppetmaster? I faintly remember that "modules" used
to be a component of the path at some point...
> ..
> when i run puppetd at client :
>
> $ puppetd --test --debug --environment production
>
> then it is using file source
> to /etc/puppet/modules/<modulename>/files/
> but expected is ....
> /etc/puppetmodules/production/modules/<modulename>/files/
>
>
> what should i do, to choose file within module ?
This is actually supposed to work as you described. Silly question: Have
you reloaded the master configuration?
> how to use source to specify obsolute path like
> "/etc/lib/puppet/myfile/my.xml"
>
> file{ "/path/to/file":
> source => ........,
> }
You just specify it. But it's not a path on the puppetmaster then. The
source is local to the system running puppetd.
To use a file on your puppetmaster, use "content => file(...)" instead.
Cheers,
Felix
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.