time: Permissions fixes in time::zone
This commit is contained in:
parent
af788fce2b
commit
7b64d3208e
1 changed files with 4 additions and 5 deletions
|
@ -27,11 +27,6 @@ class time::zone {
|
||||||
file { "/etc/localtime":
|
file { "/etc/localtime":
|
||||||
ensure => link,
|
ensure => link,
|
||||||
target => "/usr/share/zoneinfo/${timezone_set}",
|
target => "/usr/share/zoneinfo/${timezone_set}",
|
||||||
owner => "root",
|
|
||||||
group => $::operatingsystem ? {
|
|
||||||
"openbsd" => "wheel",
|
|
||||||
default => "root",
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
case $::operatingsystem {
|
case $::operatingsystem {
|
||||||
|
@ -39,6 +34,8 @@ class time::zone {
|
||||||
file { "/etc/sysconfig/clock":
|
file { "/etc/sysconfig/clock":
|
||||||
ensure => present,
|
ensure => present,
|
||||||
mode => "0644",
|
mode => "0644",
|
||||||
|
owner => "root",
|
||||||
|
group => "root",
|
||||||
content => template("time/sysconfig_clock.erb"),
|
content => template("time/sysconfig_clock.erb"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -46,6 +43,8 @@ class time::zone {
|
||||||
file { "/etc/timezone":
|
file { "/etc/timezone":
|
||||||
ensure => present,
|
ensure => present,
|
||||||
mode => "0644",
|
mode => "0644",
|
||||||
|
owner => "root",
|
||||||
|
group => "root",
|
||||||
content => "${timezone_set}\n",
|
content => "${timezone_set}\n",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue