Converted tabs to spaces from firewall and mythtv modules.
This commit is contained in:
parent
335b2e7735
commit
31b1277c8e
2 changed files with 84 additions and 84 deletions
|
@ -10,7 +10,7 @@
|
|||
# Database name (defaults to mythconverg).
|
||||
#
|
||||
# $mythtv_dbuser:
|
||||
# Database user name (defaults to mythtv).
|
||||
# Database user name (defaults to mythtv).
|
||||
#
|
||||
# $mythtv_dbpass:
|
||||
# Database password.
|
||||
|
@ -18,13 +18,13 @@
|
|||
class mythtv::backend {
|
||||
|
||||
if ! $mythtv_dbhost {
|
||||
$mythtv_dbhost = "localhost"
|
||||
$mythtv_dbhost = "localhost"
|
||||
}
|
||||
if ! $mythtv_dbuser {
|
||||
$mythtv_dbuser = "mythtv"
|
||||
$mythtv_dbuser = "mythtv"
|
||||
}
|
||||
if ! $mythtv_dbname {
|
||||
$mythtv_dbname = "mythconverg"
|
||||
$mythtv_dbname = "mythconverg"
|
||||
}
|
||||
|
||||
include user::system
|
||||
|
@ -36,29 +36,29 @@ class mythtv::backend {
|
|||
"mythtv-setup",
|
||||
"mythtv-docs",
|
||||
"perl-DBD-MySQL", ]:
|
||||
ensure => installed,
|
||||
ensure => installed,
|
||||
require => [ User["mythtv"],
|
||||
Group["mythtv"], ],
|
||||
}
|
||||
|
||||
file { "/etc/mythtv/mysql.txt":
|
||||
ensure => present,
|
||||
content => template("mythtv/mysql.txt.erb"),
|
||||
mode => 0640,
|
||||
owner => root,
|
||||
group => mythtv,
|
||||
notify => Service["mythbackend"],
|
||||
require => Package["mythtv-backend"],
|
||||
ensure => present,
|
||||
content => template("mythtv/mysql.txt.erb"),
|
||||
mode => 0640,
|
||||
owner => root,
|
||||
group => mythtv,
|
||||
notify => Service["mythbackend"],
|
||||
require => Package["mythtv-backend"],
|
||||
}
|
||||
|
||||
file { "/etc/mythtv/config.xml":
|
||||
ensure => present,
|
||||
content => template("mythtv/config.xml.erb"),
|
||||
mode => 0640,
|
||||
owner => root,
|
||||
group => mythtv,
|
||||
notify => Service["mythbackend"],
|
||||
require => Package["mythtv-backend"],
|
||||
ensure => present,
|
||||
content => template("mythtv/config.xml.erb"),
|
||||
mode => 0640,
|
||||
owner => root,
|
||||
group => mythtv,
|
||||
notify => Service["mythbackend"],
|
||||
require => Package["mythtv-backend"],
|
||||
}
|
||||
|
||||
file { "/etc/sysconfig/mythbackend":
|
||||
|
@ -72,16 +72,16 @@ class mythtv::backend {
|
|||
}
|
||||
|
||||
file { "/root/.mythtv":
|
||||
ensure => "/etc/mythtv",
|
||||
force => true,
|
||||
require => Package["mythtv-backend"],
|
||||
ensure => "/etc/mythtv",
|
||||
force => true,
|
||||
require => Package["mythtv-backend"],
|
||||
}
|
||||
|
||||
service { "mythbackend":
|
||||
ensure => running,
|
||||
enable => true,
|
||||
hasstatus => true,
|
||||
require => Package["mythtv-backend"],
|
||||
ensure => running,
|
||||
enable => true,
|
||||
hasstatus => true,
|
||||
require => Package["mythtv-backend"],
|
||||
}
|
||||
|
||||
file { "/etc/cron.daily/mythorphans":
|
||||
|
@ -102,23 +102,23 @@ class mythtv::backend {
|
|||
class mythtv::cron inherits mythtv::backend {
|
||||
|
||||
package { [ "perl-MythTV", "perl-Net-UPnP" ]:
|
||||
ensure => installed,
|
||||
ensure => installed,
|
||||
}
|
||||
|
||||
file { "/etc/cron.daily/mythfilldatabase":
|
||||
ensure => present,
|
||||
source => "puppet:///mythtv/mythfilldatabase",
|
||||
mode => 0755,
|
||||
owner => root,
|
||||
group => root,
|
||||
ensure => present,
|
||||
source => "puppet:///mythtv/mythfilldatabase",
|
||||
mode => 0755,
|
||||
owner => root,
|
||||
group => root,
|
||||
}
|
||||
|
||||
file { "/etc/cron.daily/mythoptimize":
|
||||
ensure => present,
|
||||
source => "puppet:///mythtv/mythoptimize",
|
||||
mode => 0755,
|
||||
owner => root,
|
||||
group => root,
|
||||
ensure => present,
|
||||
source => "puppet:///mythtv/mythoptimize",
|
||||
mode => 0755,
|
||||
owner => root,
|
||||
group => root,
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -129,7 +129,7 @@ class mythtv::cron inherits mythtv::backend {
|
|||
class mythtv::mythweb {
|
||||
|
||||
package { [ "mythweb", "mythweather" ]:
|
||||
ensure => installed,
|
||||
ensure => installed,
|
||||
}
|
||||
|
||||
apache::configfile { "mythweb.conf":
|
||||
|
@ -153,12 +153,12 @@ class mythtv::mythweb {
|
|||
}
|
||||
|
||||
file { "/usr/share/mythweb/data":
|
||||
ensure => directory,
|
||||
mode => 0770,
|
||||
owner => root,
|
||||
group => httpsd,
|
||||
ensure => directory,
|
||||
mode => 0770,
|
||||
owner => root,
|
||||
group => httpsd,
|
||||
seltype => "httpd_sys_rw_content_t",
|
||||
require => Package["mythweb"],
|
||||
require => Package["mythweb"],
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue