Added mythtv user and group to mythtv backend installation.

This commit is contained in:
Timo Mkinen 2009-11-26 22:24:18 +02:00
parent 66c88cd9cd
commit 77e3fa32ce
2 changed files with 21 additions and 1 deletions

View file

@ -27,12 +27,17 @@ class mythtv::backend {
$mythtv_dbname = "mythconverg"
}
include user::system
realize(User["mythtv"], Group["mythtv"])
package { ["mythtv-backend",
"mythtv-setup",
"mythtv-docs",
"perl-DBD-MySQL",
"mysql", ]:
ensure => installed,
ensure => installed,
require => [ User["mythtv"],
Group["mythtv"], ],
}
file { "/etc/mythtv/mysql.txt":

View file

@ -136,4 +136,19 @@ class user::system {
gid => 810,
}
# MythTV server daemon
@group { "mythtv":
ensure => present,
gid => 811,
}
@user { "mythtv":
ensure => present,
uid => 811,
gid => 811,
comment => "Service MythTV",
home => "/var/lib/mythtv",
shell => "/sbin/nologin",
require => Group["mythtv"],
}
}