From 7f997c8d080cbb11937e462dc10e9ae0ddcd7e5c Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 29 Nov 2011 22:51:44 -0200 Subject: Using tags and virtual resources for hosted websites and databases --- templates/puppet/websites.pp.erb | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'templates/puppet/websites.pp.erb') diff --git a/templates/puppet/websites.pp.erb b/templates/puppet/websites.pp.erb index 75dcd0b..b1a82a2 100644 --- a/templates/puppet/websites.pp.erb +++ b/templates/puppet/websites.pp.erb @@ -5,6 +5,7 @@ class websites::admin inherits websites::hosting::admin { # use => [ "Trac admin" ], # redirect_match => "trac", # mpm => false, + # tag => 'all', #} #apache::site { "munin": @@ -13,33 +14,30 @@ class websites::admin inherits websites::hosting::admin { # owner => "munin", # group => "munin", # mpm => false, + # tag => 'all', #} #apache::site { "nagios": # source => true, # docroot => '/usr/share/nagios3/htdocs', # mpm => false, + # tag => 'all', #} } class websites inherits websites::hosting { - # Website definitions - # - # TODO: - # - # - Use virtual resources: - # - Tags by locations where the site can be hosted. - # - Possible integration with cache proxies. - # + # Website definitions: always use virtual resources - #apache::site { "site": + #@apache::site { "site": # source => true, # ticket => '001', # docroot => '/var/www/site', + # tag => 'all', #} - #database::instance { "site": + #@database::instance { "site": # password => 'xxx', + # tag => 'all', #} } -- cgit v1.2.3