wiki: Use ramdisk for collab cache by default
This commit is contained in:
parent
f6d297c670
commit
5684831d9e
1 changed files with 16 additions and 26 deletions
|
@ -306,6 +306,22 @@ class wiki::collab {
|
|||
before => Exec["collab-create collab collab"],
|
||||
}
|
||||
|
||||
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 => Exec["collab-create collab collab"],
|
||||
}
|
||||
|
||||
file { [ "/etc/local", "/etc/local/collab" ]:
|
||||
ensure => directory,
|
||||
mode => "0755",
|
||||
|
@ -406,32 +422,6 @@ 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"],
|
||||
},
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
# Install moin package.
|
||||
#
|
||||
# === Parameters
|
||||
|
|
Loading…
Add table
Reference in a new issue