Hi jason,

Thanks for your reply. But how can i manage template ?
I know recurse for one source.

Gilbert


On Jan 21, 12:02 am, jrojas <[email protected]> wrote:
> file {
>
>     apache-config:
>       source => "puppet://$puppetserver/files/etc/apache2/sites-
> available/${name}",
>       recurse => true;
>
> }
>
> http://reductivelabs.com/trac/puppet/wiki/TypeReference#id348
>
> recurse
>
> Whether and how deeply to do recursive management. Valid values are
> true, false, inf. Values can also match /^[0-9]+$/.
>
> -Jason
> On Jan 20, 2:03 pm, robertpluss <[email protected]> wrote:
>
> > Hi All
>
> > I would like to define multiple file sources for a file but with more
> > than one of content, source, target!
>
> > The goal is to have a template by default for a file but if a specific
> > source file exists for it, then use this source, first.
>
> > something like:
>
> >  source => [
> >                    "puppet://$puppetserver/files/etc/apache2/sites-
> > available/${name}/${hostname}",
> >                    "puppet://$puppetserver/files/etc/apache2/sites-
> > available/${name}/default",
> >                    template("apache2/server_virtual_typo3.erb"),  #
> >  ],
>
> > This get an error!
> > warning: Configuration could not be instantiated: You cannot specify
> > more than one of content, source, target at ...
> > OK I understand template it's a content target. But we can not define
> > multiple target in one  File definition! ( source => [ ... ] , content
> > => template.... )
>
> > How can i solve this problem ?
>
> > Thanks in advanced
>
> > Gilbert
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to