Added class for collab ramdisk cache
This commit is contained in:
parent
a564446fd6
commit
8c1c43773a
1 changed files with 26 additions and 0 deletions
|
@ -326,3 +326,29 @@ class wiki::collab::base {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# Use ramdisk for collab cache.
|
||||||
|
#
|
||||||
|
class wiki::collab::ramcache {
|
||||||
|
|
||||||
|
mount { "/srv/wikis/collab/cache":
|
||||||
|
name => $wiki_datadir ? {
|
||||||
|
undef => "/srv/wikis/collab/cache",
|
||||||
|
default => "${wiki_datadir}/collab/cache",
|
||||||
|
},
|
||||||
|
ensure => mounted,
|
||||||
|
atboot => true,
|
||||||
|
device => "none",
|
||||||
|
fstype => "tmpfs",
|
||||||
|
options => "uid=collab,gid=collab,mode=2770",
|
||||||
|
dump => "0",
|
||||||
|
pass => "0",
|
||||||
|
require => File["/srv/wikis/collab/cache"],
|
||||||
|
before => $operatingsystem ? {
|
||||||
|
"ubuntu" => Service["apache2"],
|
||||||
|
default => Service["httpsd"],
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue