Just one precision...

Le 21/09/2013 04:27, François Lafont wrote :

> Is it possible with Puppet to copy the file:
> 
> /a/path/foo        # <-- in node-source
> 
> from "node-source" to "node-destination", but with a different path. By 
> example:
> 
> /another/path/bar  # <-- in node-destination
> 
> I know it's possible with exported files when the path is the same in 
> node-source and node-destination but here the paths are different.

I thought this code could work:

For node-source

@@file {'/another/path/bar':
  path   => "/another/path/bar",
  source => "/a/path/foo",
  tag    => "exported",
  #...
}

and for node-destination

File <<| tag == "exported" |>>

but it doesn't work because [source => "/a/path/foo"] uses the "/a/path/foo" 
file of node-destination (if exists), not the /a/path/foo file of note-source.

--
François Lafont

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to