nscd: Fix error "cannot stat() file `/etc/netgroup': No such file or directory" from nscd startup.
This commit is contained in:
parent
42b2582bbc
commit
2831f5ae05
1 changed files with 10 additions and 1 deletions
|
@ -10,7 +10,16 @@ class nscd {
|
||||||
service { "nscd":
|
service { "nscd":
|
||||||
ensure => running,
|
ensure => running,
|
||||||
enable => true,
|
enable => true,
|
||||||
require => Package["nscd"],
|
require => [ File["/etc/netgroup"], Package["nscd"], ],
|
||||||
|
}
|
||||||
|
|
||||||
|
if !defined(File["/etc/netgroup"]) {
|
||||||
|
file { "/etc/netgroup":
|
||||||
|
ensure => present,
|
||||||
|
mode => "0644",
|
||||||
|
owner => "root",
|
||||||
|
group => "root",
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue