Added mythtv user and group to mythtv backend installation.
This commit is contained in:
parent
66c88cd9cd
commit
77e3fa32ce
2 changed files with 21 additions and 1 deletions
|
@ -27,12 +27,17 @@ class mythtv::backend {
|
||||||
$mythtv_dbname = "mythconverg"
|
$mythtv_dbname = "mythconverg"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
include user::system
|
||||||
|
realize(User["mythtv"], Group["mythtv"])
|
||||||
|
|
||||||
package { ["mythtv-backend",
|
package { ["mythtv-backend",
|
||||||
"mythtv-setup",
|
"mythtv-setup",
|
||||||
"mythtv-docs",
|
"mythtv-docs",
|
||||||
"perl-DBD-MySQL",
|
"perl-DBD-MySQL",
|
||||||
"mysql", ]:
|
"mysql", ]:
|
||||||
ensure => installed,
|
ensure => installed,
|
||||||
|
require => [ User["mythtv"],
|
||||||
|
Group["mythtv"], ],
|
||||||
}
|
}
|
||||||
|
|
||||||
file { "/etc/mythtv/mysql.txt":
|
file { "/etc/mythtv/mysql.txt":
|
||||||
|
|
|
@ -136,4 +136,19 @@ class user::system {
|
||||||
gid => 810,
|
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"],
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue