Added etherpadlite module and system user
This commit is contained in:
parent
b3446cb48e
commit
7752295779
2 changed files with 29 additions and 0 deletions
16
etherpadlite/manifests/init.pp
Normal file
16
etherpadlite/manifests/init.pp
Normal file
|
@ -0,0 +1,16 @@
|
|||
# Install etherpad-lite.
|
||||
#
|
||||
class etherpadlite {
|
||||
|
||||
include user::system
|
||||
realize(User["etherpad"], Group["etherpad"])
|
||||
|
||||
file { "/var/lib/etherpad":
|
||||
ensure => "directory",
|
||||
mode => "0700",
|
||||
owner => "etherpad",
|
||||
group => "etherpad",
|
||||
require => User["etherpad"],
|
||||
}
|
||||
|
||||
}
|
|
@ -231,6 +231,19 @@ class user::system {
|
|||
require => Group["qemu"],
|
||||
}
|
||||
|
||||
# Etherpad
|
||||
@group { "etherpad":
|
||||
ensure => present,
|
||||
gid => 816,
|
||||
}
|
||||
@user { "etherpad":
|
||||
uid => 816,
|
||||
gid => 816,
|
||||
comment => "Service Etherpad",
|
||||
home => "/var/lib/etherpad",
|
||||
shell => "/sbin/nologin",
|
||||
require => Group["etherpad"],
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue