³ª»Û °ÍÀº µèÁöµµ ¸»°í º¸Áöµµ ¸»°í, ¸»ÇÏÁöµµ ¸»¶ó
2009-Apr-02 06:43 UTC
[Puppet Users] apache2 template
anyone have an apache2 virtualhosts template they like and would like to share? For example I would like to provision quickly website1.com website2.com website3.com and have the docroots be in /home/vhosts/website1.com/htdocs/ /home/vhosts/website2.com/htdocs/ /home/vhosts/website3.com/htdocs/ thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
> anyone have an apache2 virtualhosts template they like and would like > to share?I don''t have configured this for my setup yet, but I found this at github: http://github.com/littleidea/puppet-apache2/tree/master Maybe you can use that one and just add a template-part for how your virtualhosts should look like? Regards, Rolf --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
2009/4/2 ³ª»Û °ÍÀº µèÁöµµ ¸»°í º¸Áöµµ ¸ <gormmantatinus@gmail.com>> > anyone have an apache2 virtualhosts template they like and would like > to share?There''s an example in the Puppet book. I''ve adapted that for my own needs. Probably too long to post here, and in places it''s not puppet-y enough (too many execs for my liking, as I couldn''t take the time to make the relationship between site owners and sites work with realised resources). Anyway, some code is here: http://pastebin.ca/1380359 Gary -- Gary Law Email: garylaw@garylaw.net Chat googletalk/messenger: gary.law@gmail.com iChat/jabber/AIM: gary.law@mac.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Hi,> anyone have an apache2 virtualhosts template they like and would like > to share? > > For example I would like to provision quickly > > website1.com > website2.com > website3.com > > and have the docroots be in > > /home/vhosts/website1.com/htdocs/ > /home/vhosts/website2.com/htdocs/ > /home/vhosts/website3.com/htdocs/Have a look at http://github.com/camptocamp/puppet-apache/tree/master The apache::vhost and apache::vhost-ssl definitions do exactly that. You can use it this way: include apache apache::vhost { ["website1.com", "website2.com", "website3.com"]: } You''ll just have to modify the $wwwroot variable. By default, sites are created under /var/www/ Marc --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---