aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-11-29 20:57:34 -0200
committerSilvio Rhatto <rhatto@riseup.net>2011-11-29 20:57:34 -0200
commitde96d3620ecf0571eb59192b87da937d36486fac (patch)
tree54846c2971811feec09dfc2d6ecb6a528307340a /manifests
parent7fbbf3ecb328acc7247b6786adae964a58d7b580 (diff)
downloadpuppet-nodo-de96d3620ecf0571eb59192b87da937d36486fac.tar.gz
puppet-nodo-de96d3620ecf0571eb59192b87da937d36486fac.tar.bz2
Using virtual resources at websites::hosting
Diffstat (limited to 'manifests')
-rw-r--r--manifests/subsystems/websites.pp19
1 files changed, 18 insertions, 1 deletions
diff --git a/manifests/subsystems/websites.pp b/manifests/subsystems/websites.pp
index da037ed..2a84c53 100644
--- a/manifests/subsystems/websites.pp
+++ b/manifests/subsystems/websites.pp
@@ -141,9 +141,26 @@ class websites::hosting inherits websites::setup {
include pmwiki
include apache::rails
- apache::site { "images":
+ Apache::site <| tag == $nodename or tag == 'all' or tag == undef |>
+ Database::instance <| tag == $nodename or tag == 'all' or tag == undef |>
+ Ikiwiki::instance <| tag == $nodename or tag == 'all' or tag == undef |>
+
+ Apache::site <| tag != $nodename and tag != 'all' and tag != undef |> {
+ ensure => absent,
+ }
+
+ Database::instance <| tag != $nodename and tag != 'all' and tag != undef |> {
+ ensure => absent,
+ }
+
+ Ikiwiki::instance <| tag != $nodename and tag != 'all' and tag != undef |> {
+ ensure => absent,
+ }
+
+ @apache::site { "images":
docroot => "${apache_www_folder}/images",
mpm => false,
+ tag => 'all',
}
}