The apache module contains many mod manifests [1] that use file
resources with templates [2] that you can pattern your code after. No
need to use apache::vhost at all.

[1] https://github.com/puppetlabs/puppetlabs-apache/tree/master/manifests/mod
[2] https://github.com/puppetlabs/puppetlabs-apache/tree/master/templates/mod

On 11/5/15, Arnau <listsar...@gmail.com> wrote:
> Hi all,
>
> Puppetlab apache module [1] by default purges everything under
> /etc/httpd/conf.d . If you want to add an extra file, you must use
> apache::vhost.
> I'm writing a module for managin thruk. The trhuk rpm packge provides a
> apache conf file (/etc/httpd/conf.d/thruk.conf). At this point I'm
> wondering what is the best way for "translating" the conf file provided by
> the rpm into a apache:vhost.
>
> Is there any automatic way for writing the apache::vhost from a http conf
> file (something like puppet resource ... ? )
>
> How do other people deal with this?
>
> TIA,
> Arnau
>
>
>
> [1] https://forge.puppetlabs.com/puppetlabs/apache
>
> --
> 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 puppet-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/CAM69jx8aMtQoA80VpmVgvGGX2iLytbfB80%2BzURWq%3DiOCLKt-%2BQ%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.
>


-- 


-Hunter

-- 
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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAJaQvGD3zs8CVdPxWhPka-krkXZDwh9DcpPsCCdSU%2BDQmMmxkg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to