From 5eba13bcbcb0da1219bd6e2ce150fee314e260bb Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 9 Oct 2018 02:58:12 -0400 Subject: run an initial updatedb --- modules/locate/manifests/init.pp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules/locate') diff --git a/modules/locate/manifests/init.pp b/modules/locate/manifests/init.pp index c977cb7..182e3b4 100644 --- a/modules/locate/manifests/init.pp +++ b/modules/locate/manifests/init.pp @@ -14,4 +14,13 @@ class locate { Class['cron'], ]; } + + exec { "initial updatedb run": + command => "/etc/cron.daily/updatedb", + creates => "/var/lib/mlocate/mlocate.db", + require => [ + File["/etc/cron.daily/updatedb"], + Package['mlocate'], + ] + } } -- cgit v1.2.3-54-g00ecf