Added base collab and user creation to wiki::collab::base.
This commit is contained in:
parent
cfc09068b9
commit
06f2527d92
1 changed files with 22 additions and 0 deletions
|
@ -292,6 +292,28 @@ class wiki::collab::base {
|
||||||
source => "puppet:///modules/wiki/collab-httpd.conf",
|
source => "puppet:///modules/wiki/collab-httpd.conf",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
exec { "collab-create collab collab":
|
||||||
|
path => "/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin",
|
||||||
|
cwd => "/",
|
||||||
|
user => "collab",
|
||||||
|
group => "collab",
|
||||||
|
creates => "/srv/wikis/collab/wikis/collab",
|
||||||
|
require => [ File["/etc/local/collab/collab.ini"],
|
||||||
|
Class["wiki::collab"],
|
||||||
|
File["/srv/wikis/collab/wikis"],
|
||||||
|
File["/srv/wikis/collab/htdocs/.htaccess"],
|
||||||
|
Exec["collab-copy-underlay"], ],
|
||||||
|
}
|
||||||
|
exec { "collab-account-create -f -r collab":
|
||||||
|
path => "/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin",
|
||||||
|
cwd => "/",
|
||||||
|
user => "collab",
|
||||||
|
group => "collab",
|
||||||
|
unless => "egrep '^name=collab$' /srv/wikis/collab/user/*",
|
||||||
|
require => Exec["collab-create collab collab"],
|
||||||
|
before => Cron["collab-htaccess"],
|
||||||
|
}
|
||||||
|
|
||||||
cron { "collab-htaccess":
|
cron { "collab-htaccess":
|
||||||
ensure => present,
|
ensure => present,
|
||||||
command => $operatingsystem ? {
|
command => $operatingsystem ? {
|
||||||
|
|
Loading…
Add table
Reference in a new issue