Ask Your Question

What are the rules governing a the "source" resource declaration in a manifest?

asked 2015-06-22 22:58:47 -0500

Anthony57 gravatar image

For Puppet manifests, what server does the "source" declaration path directory refer to by default? Is it the target node of the manifest?

To use a different server in a source => statement, should I use double quotes? Why not single like other values in a manifest? Do I use an FQDN? Or just a hostname? I believe I am supposed to use three forward slashes, why?

Are other methods valid for referring to third servers without the triple forward slashes?

edit retag flag offensive close merge delete


Are you referring to ? If not, what are the docs related to your questions?

giavac gravatar imagegiavac ( 2015-06-23 03:24:33 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-06-23 11:32:00 -0500

GregLarkin gravatar image

A URL that looks like "puppet:///modules/..." means "retrieve the file from the master that served my catalog". You can set up another Puppet master that simply functions as a file server and write your source attributes like so to fetch from it instead:

source => "puppet://"

The triple-slash is shorthand for "no server name, so use the master I connected to". Single- vs. double-quotes only affects variable interpolation inside a string, nothing else.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-06-22 22:58:47 -0500

Seen: 98 times

Last updated: Jun 23 '15