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":
|
||||
ensure => link,
|
||||
target => "/usr/share/zoneinfo/${timezone_set}",
|
||||
owner => "root",
|
||||
group => $::operatingsystem ? {
|
||||
"openbsd" => "wheel",
|
||||
default => "root",
|
||||
},
|
||||
}
|
||||
|
||||
case $::operatingsystem {
|
||||
|
@ -39,6 +34,8 @@ class time::zone {
|
|||
file { "/etc/sysconfig/clock":
|
||||
ensure => present,
|
||||
mode => "0644",
|
||||
owner => "root",
|
||||
group => "root",
|
||||
content => template("time/sysconfig_clock.erb"),
|
||||
}
|
||||
}
|
||||
|
@ -46,6 +43,8 @@ class time::zone {
|
|||
file { "/etc/timezone":
|
||||
ensure => present,
|
||||
mode => "0644",
|
||||
owner => "root",
|
||||
group => "root",
|
||||
content => "${timezone_set}\n",
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue